mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix: use ai-sdk openai chat language model instead of completion language model (#3204)
This commit is contained in:
parent
1c59530115
commit
536934548a
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ export namespace Provider {
|
|||
autoload: false,
|
||||
async getModel(sdk: any, modelID: string, options?: Record<string, any>) {
|
||||
if (options?.["useCompletionUrls"]) {
|
||||
return sdk.completion(modelID)
|
||||
return sdk.chat(modelID)
|
||||
} else {
|
||||
return sdk.responses(modelID)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue