Skip to content

Commit

Permalink
Update interface format to accept object to support structured outputs (
Browse files Browse the repository at this point in the history
#171)

* Update interface format to accept object for supporting structured outputs
  • Loading branch information
ParthSareen committed Dec 5, 2024
1 parent 9fe5468 commit e4b6ed6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export interface GenerateRequest {
context?: number[]
stream?: boolean
raw?: boolean
format?: string
format?: string | object
images?: Uint8Array[] | string[]
keep_alive?: string | number

Expand Down Expand Up @@ -99,7 +99,7 @@ export interface ChatRequest {
model: string
messages?: Message[]
stream?: boolean
format?: string
format?: string | object
keep_alive?: string | number
tools?: Tool[]

Expand Down

0 comments on commit e4b6ed6

Please sign in to comment.