如何在cursor中使用bigmodel中转站

Information

中转站地址:api.bigmodel.org/

推荐使用的模型

my-deepseek-coder 和 my-claude3.5sonnet

my-deepseek-coder 对应的模型是 deepseek-coder 便宜且好用

my-claude3.5sonnet 对应的模型是 claude-3-5-sonnet-20240620 写代码能力强

在 cursor 中使用中转站 api

  1. 注册 bigmodel 账号,并生成一个令牌

如果想使用 claude-3-5-sonnet-20240620,请选择混合模型

image

  1. 打开 cursor 进行配置

image

新增模型 my-claude3.5sonnet

image

填写中转站信息

url:https://api.bigmodel.org/v1

key: 刚才创建的 key

需点击后面的 verify

image

  1. 测试使用

如果是 mac 快捷键 command+l 打开聊天框,选择模型 my-claude3.5sonnet

image

然后输入你的问题,回车即可

image

查看对应的消费日志(https://api.bigmodel.org/log)

image

转自:https://www.wangmingchang.com/5507.html