【求助】Elysiver 如何在 Pi 中使用 DeepSeek V4

科瑞颇 2026-06-04 11:10 1



RT,一直 connection error,开关代理/虚拟网卡无好转,在 Cherry Studio 上可以正常使用

最新回复 (16)
  • println 06-04 11:13
    1

    试试,我最开始403,昨天让codex帮我修好的

    models.json


        "deepseek": {
    "baseUrl": "https://你的baseurl/v1",
    "api": "openai-completions",
    "apiKey": "sk-xxx",
    "headers": {
    "User-Agent": ""
    },
    "compat": {
    "supportsDeveloperRole": false,
    "maxTokensField": "max_tokens"
    }
    }

    auth.json


      "deepseek": {
    "type": "api_key",
    "key": "sk-xxx"
    }
  • 科瑞颇 楼主 06-04 11:14
    2

    我是用 oh-pi 配置的,之前在 omp 上能用,确定不是我的网络问题,不是接口问题(换成 completions/responses 一样无好转)

  • hideur 06-04 11:14
    3


    这个是给claude code用的吧

  • 甘棠 06-04 11:14
    4

    你图片的模型是带2cc后缀,应该要走a/接口吧,佬友走的什么

  • 科瑞颇 楼主 06-04 11:17
    5

    似乎还是不行 ^-^ 还有佬友这似乎不是 pi 的配置格式阿

  • 科瑞颇 楼主 06-04 11:18
    6

    是走的 anthropic-message

  • 科瑞颇 楼主 06-04 11:18
    7

    是走的 anthropic-message,确定不是接口问题了

  • println 06-04 11:28
    9

    不是吗,我是从 .pi/agents/ 里面复制出来的 ^-^

  • 科瑞颇 楼主 06-04 11:42
    10

    嗯,不 connection error 了,这次是格式不对 ^-^



    但是我配置的是 completion 阿

  • xyzhuanjian 06-04 11:44
    11

    2cc是检查客户端,要改useragent,或者用openai的版本

  • 科瑞颇 楼主 06-04 11:45
    12

    用 responses 不带 2cc 的模型无好转

  • xyzhuanjian 06-04 11:46
    13

    别用这个responses,这个仅支持gpt的模型啊

  • 科瑞颇 楼主 06-04 11:48
    14

    了解了,但是之前用 completion 也不好使

  • fimmy 06-18 22:06
    16

    我今天试了一下使用chat completions是可以调deepseek v4 flash的,但是会报错不支持tool calling

  • JsonSong89 06-18 22:09
    17

    你这配置是走的 openai啊

    不是a/的格式

  • 参商 06-18 22:23
    18

    用 oh-pi 配置的



    按 官方文档 直接配置 ~/.pi/agent/models.json 试试?


    {
    "providers": {
    "elysiver": {
    "baseUrl": "http://baseUrl",
    "api": "anthropic-messages",
    "apiKey": "xxx",
    "models": [
    {
    "id": "model-id",
    "reasoning": true
    }
    ]
    }
    }
    }
* 帖子来源Linux.do
返回