mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix
This commit is contained in:
parent
09ddffe1b6
commit
475c3aa1e1
1 changed files with 31 additions and 32 deletions
|
|
@ -891,37 +891,6 @@ export type Command = {
|
|||
subtask?: boolean
|
||||
}
|
||||
|
||||
export type Model = {
|
||||
id: string
|
||||
name: string
|
||||
release_date: string
|
||||
attachment: boolean
|
||||
reasoning: boolean
|
||||
temperature: boolean
|
||||
tool_call: boolean
|
||||
cost: {
|
||||
input: number
|
||||
output: number
|
||||
cache_read?: number
|
||||
cache_write?: number
|
||||
}
|
||||
limit: {
|
||||
context: number
|
||||
output: number
|
||||
}
|
||||
modalities?: {
|
||||
input: Array<"text" | "audio" | "image" | "video" | "pdf">
|
||||
output: Array<"text" | "audio" | "image" | "video" | "pdf">
|
||||
}
|
||||
experimental?: boolean
|
||||
options: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
provider?: {
|
||||
npm: string
|
||||
}
|
||||
}
|
||||
|
||||
export type Provider = {
|
||||
api?: string
|
||||
name: string
|
||||
|
|
@ -929,7 +898,37 @@ export type Provider = {
|
|||
id: string
|
||||
npm?: string
|
||||
models: {
|
||||
[key: string]: Model
|
||||
[key: string]: {
|
||||
id: string
|
||||
name: string
|
||||
release_date: string
|
||||
attachment: boolean
|
||||
reasoning: boolean
|
||||
temperature: boolean
|
||||
tool_call: boolean
|
||||
cost: {
|
||||
input: number
|
||||
output: number
|
||||
cache_read?: number
|
||||
cache_write?: number
|
||||
}
|
||||
limit: {
|
||||
context: number
|
||||
output: number
|
||||
}
|
||||
modalities?: {
|
||||
input: Array<"text" | "audio" | "image" | "video" | "pdf">
|
||||
output: Array<"text" | "audio" | "image" | "video" | "pdf">
|
||||
}
|
||||
experimental?: boolean
|
||||
options: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
provider?: {
|
||||
npm: string
|
||||
}
|
||||
providerModelId?: string
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue