Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

code 500错误(需要修改模型名称) #22

Open
cj1357 opened this issue Nov 21, 2023 · 7 comments
Open

code 500错误(需要修改模型名称) #22

cj1357 opened this issue Nov 21, 2023 · 7 comments

Comments

@cj1357
Copy link

cj1357 commented Nov 21, 2023

image

@cj1357
Copy link
Author

cj1357 commented Nov 28, 2023

造成这个错误的原因是模型名称变化了,我修改后测试已经没问题了

参考了KoushikNavuluri/Claude-API#85
需要把请求的模型名称改成"claude-2.1"
claude.go 56行

@cj1357 cj1357 changed the title code 500错误 code 500错误(需要修改模型名称) Nov 28, 2023
@cj1357
Copy link
Author

cj1357 commented Nov 28, 2023

image
不过用chatgpt-next-web调用,返回的格式会带身份信息,这个如果能给优化一下就好了😺

@spammenotinoz
Copy link

The reason for this error is that the model name has changed, and I have modified the test to be fine

Reference KoushikNavuluri/Claude-API #85 Need to change the model name of the request to "claude-2.1" claude.go line 56

Thanks this works.

@cj1357
Copy link
Author

cj1357 commented Jan 2, 2024

模型名称又发生了改变,需要换成"claude-2.0"

Model: "claude-2",

注意不是原先的claude-2

参考了KoushikNavuluri/Claude-API#91

@caicaicaibeiqie
Copy link

我在使用claude_api的send_message时遇到了同样的错误返回,更新了model问题依然存在,还有什么可能的参数问题吗?

@cj1357
Copy link
Author

cj1357 commented Jan 31, 2024

我在使用claude_api的send_message时遇到了同样的错误返回,更新了model问题依然存在,还有什么可能的参数问题吗?

好像官方那边又更新了策略,改模型名称解决不了了,不知道怎么解决

@caicaicaibeiqie
Copy link

@cj1357 You are right, but I still need to decode the "headers" parameter of "send_message". Problem solved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants