fix: cloudflare-ai-gateway sdk.chat undefined error (#6407)

pull/6659/head^2
Mike English 2026-01-02 12:24:13 -05:00 committed by GitHub
parent d8753cda02
commit 70881b2937
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -374,7 +374,7 @@ export namespace Provider {
return {
autoload: true,
async getModel(sdk: any, modelID: string, _options?: Record<string, any>) {
return sdk.chat(modelID)
return sdk.languageModel(modelID)
},
options: {
baseURL: `https://gateway.ai.cloudflare.com/v1/${accountId}/${gateway}/compat`,