We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9144457 commit 443e454Copy full SHA for 443e454
packages/agent/src/core/llm/providers/xai.ts
@@ -105,7 +105,8 @@ export class XAIProvider implements LLMProvider {
105
constructor(model: string, options: XAIOptions = {}) {
106
this.model = model;
107
this.apiKey = options.apiKey || process.env.XAI_API_KEY || '';
108
- this.baseUrl = options.baseUrl || 'https://api.x.ai/v1';
+ // Use Claude-compatible endpoint
109
+ this.baseUrl = options.baseUrl || 'https://api.anthropic.com';
110
111
if (!this.apiKey) {
112
throw new Error('XAI API key is required');
0 commit comments