fix: use ai-sdk openai chat language model instead of completion language model (#3204)

pull/2488/head
seridescent 2025-10-16 01:59:49 -04:00 committed by GitHub
parent 1c59530115
commit 536934548a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}