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

Co-authored-by: Jaaneek <jankiewiczmilosz@gmail.com>
This commit is contained in:
Jaaneek
2026-03-19 21:09:49 -05:00
committed by GitHub
co-authored by Jaaneek
parent 949191ab74
commit b3d0446d13
4 changed files with 120 additions and 1 deletions
@@ -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,