feat(integration-xai): Add support for X.AI provider with chat and document processing capabilities.

This commit is contained in:
2025-02-05 14:09:06 +01:00
parent d0a4151a2b
commit 4fc1e029e4
5 changed files with 219 additions and 1 deletions

View File

@@ -24,6 +24,14 @@ This command installs the package and adds it to your project's dependencies.
openaiToken: 'your-openai-token'
```
### X.AI
- Models: Grok-2-latest
- Features: Chat, Streaming, Document Processing
- Configuration:
```typescript
xaiToken: 'your-xai-token'
```
### Anthropic
- Models: Claude-3-opus-20240229
- Features: Chat, Streaming, Vision, Document Processing
@@ -75,6 +83,7 @@ import { SmartAi } from '@push.rocks/smartai';
const smartAi = new SmartAi({
openaiToken: 'your-openai-token',
xaiToken: 'your-xai-token',
anthropicToken: 'your-anthropic-token',
perplexityToken: 'your-perplexity-token',
groqToken: 'your-groq-token',