Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加xAI模型支持 #958

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

zhihuanwang
Copy link

推荐llm-models.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增加

,
        "grok-chat-completions": {
            "args": {},
            "base-url": "https://api.x.ai/v1",
            "timeout": 120
        }

keys增加:

,
"grok": [
            "xai-your-key"
        ]

概述

实现/解决/优化的内容:
增加xAI模型支持

检查清单

PR 作者完成

*请在方括号间写x以打勾

  • [ x ] 阅读仓库贡献指引了吗?
  • [ x ] 与项目所有者沟通过了吗?
  • [ ] 我确定已自行测试所作的更改,确保功能符合预期。

项目所有者完成

  • 相关 issues 链接了吗?
  • 配置项写好了吗?迁移写好了吗?生效了吗?
  • 依赖写到 requirements.txt 和 core/bootutils/deps.py 了吗
  • 文档编写了吗?

推荐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"
        ]
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants