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

增加豆包大模型支持 #1438

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

klb3713
Copy link

@klb3713 klb3713 commented May 16, 2024

close #1436

我已确认该 PR 已自测通过,相关截图如下:
image

@zsinba
Copy link

zsinba commented May 18, 2024

闪退
image

@RexWzh
Copy link

RexWzh commented May 18, 2024

调用和 Azure 类似,是需要部署才能用对吗?

是的话,这段配置好像就没意义了,curl 命令里也没用到模型

var ModelList = []string{
	"Doubao-pro-128k",
	"Doubao-pro-32k",
	"Doubao-pro-4k",
	"Doubao-lite-128k",
	"Doubao-lite-32k",
	"Doubao-lite-4k",
	"Doubao-embedding",
}

另外, 你代码好像只改了 ChatCompletions 的 URI。

if meta.Mode == relaymode.ChatCompletions {
		return fmt.Sprintf("%s/api/v3/chat/completions", meta.BaseURL), nil
	}

@c121914yu
Copy link
Contributor

我建议给oneapi增加一个 /chat/complections 的路由,而不只有 /v1/chat/completions 的路由。
豆包的接口对齐了 openai,,完全可以直接通过代理转发解决~

@XiandanErizo
Copy link

mark一下 合并了我也更新下

@songquanpeng
Copy link
Owner

上周末完全没时间,我尽量最近处理

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

Successfully merging this pull request may close these issues.

支持豆包系列大模型API
6 participants