fix: use ai-sdk openai chat language model instead of completion language model (#3204)
Some checks are pending
deploy / deploy (push) Waiting to run
format / format (push) Waiting to run
snapshot / publish (push) Waiting to run
test / test (push) Waiting to run

This commit is contained in:
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

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