mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-20 19:36:08 +00:00
增加xAI模型支持
推荐llm-models.json新增
```json
,
{
"name": "grok-2-vision-1212",
"model_name": "grok-2-vision-1212",
"requester": "grok-chat-completions",
"token_mgr": "grok",
"vision_supported": true
}
```
provider.json requester增加
```json
,
"grok-chat-completions": {
"args": {},
"base-url": "https://api.x.ai/v1",
"timeout": 120
}
```
keys增加:
```json
,
"grok": [
"xai-your-key"
]
```
This commit is contained in:
@@ -6,7 +6,7 @@ from . import entities, requester
|
||||
from ...core import app
|
||||
|
||||
from . import token
|
||||
from .requesters import chatcmpl, anthropicmsgs, moonshotchatcmpl, deepseekchatcmpl, ollamachat, giteeaichatcmpl
|
||||
from .requesters import chatcmpl, anthropicmsgs, moonshotchatcmpl, deepseekchatcmpl, ollamachat, giteeaichatcmpl, grokchatcmpl
|
||||
|
||||
FETCH_MODEL_LIST_URL = "https://api.qchatgpt.rockchin.top/api/v2/fetch/model_list"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user