• chiliax

    图片

    图片

    大佬们,怎么给 grok 接入其他模型啊。。。

    主楼
  • yuancjun

    编辑配置文件 ~/.grok/config.toml
    [auth]
    preferred_method = "api_key"

    [models]
    default = "grok-main"

    [model.grok-main]
    name = "GPT-5.6 Sol"
    model = "gpt-5.6-sol"
    base_url = "https://<中转站1的域名>/v1&quot;
    api_key =…

    #1
  • chiliax
    [auth]
    preferred_method = "api_key"
    [models]
    default = "grok-main"
    [model.grok-main]
    name = "GPT-5.6 Sol"
    model = "gpt-5.6-sol"
    base_url = "https://<中转站1的域名>/v1"
    api_key = "<中转站1的APIKEY>"
    api_backend = "responses" # chat_completions/responses
    context_window = 1050000
    [model.grok-build]
    name = "Grok 4.5"
    model = "grok-4.5"
    base_url = "https://<中转站2的域名>/v1"
    api_key = "<中转站2的APIKEY>"
    api_backend = "responses" # chat_completions/responses
    context_window = 500000
    [subagents]
    enabled = true
    [subagents.models]
    grok-build = "grok-build"
    general-purpose = "grok-build"
    explore = "grok-build"
    plan = "grok-build"
    browser-use = "grok-build"
    cursor = "grok-build"
    ```不行的,显示如图1,提示需要登录
    #2
  • yuancjun

    我的环境是

    - macOS 13.7.8 darwin/x64

    - grok 0.2.118 (1e1687c1cf6a)

    - 中转站是 https://hub.linux.do

    可以正常使用

    图片

    图片

    图片

    #3
  • chaos2

    升级了1.0.0 后 gpt-5.6 感觉完全用不了 grok 工具用不了, responses 和 chat_completions 都试了

    #4
  • 郑建国

    蹲一下,我一直都用不了,暂时还没去排查有什么问题

    #5
  • kinda66

    cc switch现在好像支持grok build了吧,虽然我没实测过。

    #6

发表回复

登录后回复