We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
目前讯飞deepseek的api是免费使用的,对比了一堆云之后发现百度的api是目前看下来最便宜的。所以想试着调用这两个平台的deepseek。
想知道如何调用这两个平台的api
这是目前参考#6204做的填的,但是失败了,显示 { "error": true, "message": "Failed to fetch" }
似乎是模型名的问题,但是不清楚模型名该怎么填
这是根据讯飞官方文档写的调用api的代码: def chat(self, message): # r1 self.add_message("user", message) model = "xdeepseekv3" try: response = self.client.chat.completions.create( model= model, messages= self.conversation_history, stream=True, temperature=0.7, max_tokens=4096, extra_headers={"lora_id": "0"}, stream_options={"include_usage": True} )
这是讯飞的接口信息:
The text was updated successfully, but these errors were encountered:
Bot detected the issue body's language is not English, translate it automatically.
Title: [Feature Request] How to call iFlytek and Baidu's deepseek model
Sorry, something went wrong.
同问,调用通义千问deepseek返回一样的提示
The same question is called Tongyi Qianwen deepseek to return the same prompt
遇上同样的问题
Encountered the same problem
No branches or pull requests
🥰 需求描述
目前讯飞deepseek的api是免费使用的,对比了一堆云之后发现百度的api是目前看下来最便宜的。所以想试着调用这两个平台的deepseek。
🧐 解决方案
想知道如何调用这两个平台的api
📝 补充信息
这是目前参考#6204做的填的,但是失败了,显示
{
"error": true,
"message": "Failed to fetch"
}
似乎是模型名的问题,但是不清楚模型名该怎么填
这是根据讯飞官方文档写的调用api的代码:
def chat(self, message): # r1
self.add_message("user", message)
model = "xdeepseekv3"
try:
response = self.client.chat.completions.create(
model= model,
messages= self.conversation_history,
stream=True,
temperature=0.7,
max_tokens=4096,
extra_headers={"lora_id": "0"},
stream_options={"include_usage": True}
)
这是讯飞的接口信息:
The text was updated successfully, but these errors were encountered: