feat: switch xai provider to responses API (#18175)

Co-authored-by: Jaaneek <jankiewiczmilosz@gmail.com>
This commit is contained in:
Jaaneek
2026-03-20 02:09:49 +00:00
committed by GitHub
parent 949191ab74
commit b3d0446d13
4 changed files with 120 additions and 1 deletions

View File

@@ -184,6 +184,15 @@ export namespace Provider {
options: {},
}
},
xai: async () => {
return {
autoload: false,
async getModel(sdk: any, modelID: string, _options?: Record<string, any>) {
return sdk.responses(modelID)
},
options: {},
}
},
"github-copilot": async () => {
return {
autoload: false,