|
@@ -56,6 +56,7 @@ export interface GenerateRequest {
|
|
format?: string | object
|
|
format?: string | object
|
|
images?: Uint8Array[] | string[]
|
|
images?: Uint8Array[] | string[]
|
|
keep_alive?: string | number // a number (seconds) or a string with a duration unit suffix ("300ms", "1.5h", "2h45m", etc)
|
|
keep_alive?: string | number // a number (seconds) or a string with a duration unit suffix ("300ms", "1.5h", "2h45m", etc)
|
|
|
|
+ think?: boolean
|
|
|
|
|
|
options?: Partial<Options>
|
|
options?: Partial<Options>
|
|
}
|
|
}
|
|
@@ -63,6 +64,7 @@ export interface GenerateRequest {
|
|
export interface Message {
|
|
export interface Message {
|
|
role: string
|
|
role: string
|
|
content: string
|
|
content: string
|
|
|
|
+ thinking?: string
|
|
images?: Uint8Array[] | string[]
|
|
images?: Uint8Array[] | string[]
|
|
tool_calls?: ToolCall[]
|
|
tool_calls?: ToolCall[]
|
|
}
|
|
}
|
|
@@ -106,6 +108,7 @@ export interface ChatRequest {
|
|
format?: string | object
|
|
format?: string | object
|
|
keep_alive?: string | number // a number (seconds) or a string with a duration unit suffix ("300ms", "1.5h", "2h45m", etc)
|
|
keep_alive?: string | number // a number (seconds) or a string with a duration unit suffix ("300ms", "1.5h", "2h45m", etc)
|
|
tools?: Tool[]
|
|
tools?: Tool[]
|
|
|
|
+ think?: boolean
|
|
|
|
|
|
options?: Partial<Options>
|
|
options?: Partial<Options>
|
|
}
|
|
}
|
|
@@ -174,6 +177,7 @@ export interface GenerateResponse {
|
|
model: string
|
|
model: string
|
|
created_at: Date
|
|
created_at: Date
|
|
response: string
|
|
response: string
|
|
|
|
+ thinking?: string
|
|
done: boolean
|
|
done: boolean
|
|
done_reason: string
|
|
done_reason: string
|
|
context: number[]
|
|
context: number[]
|