forked from lobehub/lobe-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat: add support xAI provider (lobehub#4627)
* ✨ feat: add support xAI provider * 💄 style: update model info * 🐛 fix: fix CI error * 👷 build: add docker env * 💄 style: add desc for xAI
- Loading branch information
1 parent
308d97d
commit 49e1e08
Showing
14 changed files
with
345 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { ModelProviderCard } from '@/types/llm'; | ||
|
||
// ref: https://x.ai/about | ||
const XAI: ModelProviderCard = { | ||
chatModels: [ | ||
{ | ||
description: '拥有与 Grok 2 相当的性能,但具有更高的效率、速度和功能。', | ||
displayName: 'Grok Beta', | ||
enabled: true, | ||
functionCall: true, | ||
id: 'grok-beta', | ||
pricing: { | ||
input: 5, | ||
output: 15, | ||
}, | ||
tokens: 131_072, | ||
}, | ||
], | ||
checkModel: 'grok-beta', | ||
description: | ||
'xAI 是一家致力于构建人工智能以加速人类科学发现的公司。我们的使命是推动我们对宇宙的共同理解。', | ||
id: 'xai', | ||
modelList: { showModelFetcher: true }, | ||
modelsUrl: 'https://docs.x.ai/docs#models', | ||
name: 'xAI', | ||
url: 'https://console.x.ai', | ||
}; | ||
|
||
export default XAI; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.