Skip to content
New issue

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

[Feature Request] 如何调用讯飞和百度的deepseek模型 #6256

Open
Noah-zero opened this issue Feb 19, 2025 · 5 comments
Open

[Feature Request] 如何调用讯飞和百度的deepseek模型 #6256

Noah-zero opened this issue Feb 19, 2025 · 5 comments
Labels
enhancement New feature or request

Comments

@Noah-zero
Copy link

🥰 需求描述

目前讯飞deepseek的api是免费使用的,对比了一堆云之后发现百度的api是目前看下来最便宜的。所以想试着调用这两个平台的deepseek。

🧐 解决方案

想知道如何调用这两个平台的api

📝 补充信息

Image
这是目前参考#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}
)

这是讯飞的接口信息:

Image

@Noah-zero Noah-zero added the enhancement New feature or request label Feb 19, 2025
@Issues-translate-bot
Copy link

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

@Kylewwb
Copy link

Kylewwb commented Feb 20, 2025

同问,调用通义千问deepseek返回一样的提示

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


The same question is called Tongyi Qianwen deepseek to return the same prompt

@ranoa2006
Copy link

遇上同样的问题

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Encountered the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants