You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug 描述bug
Error code: 403 - {'error': {'message': '免费API限制使用gpt-3.5-turbo,gpt-4 和 embeddings模型
,如有更多需求,请访问 https://buyca.tech 购买付费API。The free account is limited to use gpt-3.5-turbo, gpt-4 and embeddings. If you have additional requirements, please visit https://buyca.tech to purchase a premium key.', 'type': 'chatanywhere_error', 'param': None, 'code': '403 FORBIDDEN'}}
To Reproduce 复现方法
使用Langchain的时候无法使用这个api
Screenshots 截图
Tools or Programming Language 使用的工具或编程语言
python,vscode
The text was updated successfully, but these errors were encountered:
请问您解决了吗?我也遇到了同样的问题
gpt-3.5-turbo 是一个chat model,不再支持completion调用,
改用 langchain.openai 的 ChatOpenAI 类可以解决
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(
model_name = "gpt-3.5-turbo",
temperature = 0,
)
llm.invoke("What is the capital of France?")
Describe the bug 描述bug
Error code: 403 - {'error': {'message': '免费API限制使用gpt-3.5-turbo,gpt-4 和 embeddings模型
,如有更多需求,请访问 https://buyca.tech 购买付费API。The free account is limited to use gpt-3.5-turbo, gpt-4 and embeddings. If you have additional requirements, please visit https://buyca.tech to purchase a premium key.', 'type': 'chatanywhere_error', 'param': None, 'code': '403 FORBIDDEN'}}
To Reproduce 复现方法
使用Langchain的时候无法使用这个api
Screenshots 截图
Tools or Programming Language 使用的工具或编程语言
python,vscode
The text was updated successfully, but these errors were encountered: