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

GOLANG SDK doesn't support model 'DeepSeek', Please add these models into model list #888

Open
woody712 opened this issue Feb 5, 2025 · 1 comment

Comments

@woody712
Copy link

woody712 commented Feb 5, 2025

Feature request

    model := "DeepSeek-V3" // OR DeepSeek-R1
    qianfan.GetConfig().AK = wenXinConf.AppKey
    qianfan.GetConfig().SK = wenXinConf.AppSecret
    client := qianfan.NewChatCompletion(
        qianfan.WithModel(model),
    )

error: model DeepSeek-V3 is not supported, use ModelList() to acquire supported model list

contribution or solutions

No response

@woody712 woody712 changed the title GOLANG SDK doesn't support model 'DeepSeek', Please add these models in model list GOLANG SDK doesn't support model 'DeepSeek', Please add these models into model list Feb 5, 2025
@jemygraw
Copy link

jemygraw commented Feb 13, 2025

DeepSeek只支持 /v2/chat/completions,所以你需要用如下方法初始化一个 client

var client = &Client{
		chat: qianfan.NewChatCompletionV2(),
		ModelName:    modelName,
		temperature:  0.7,
		topP:         0,
		penaltyScore: 1.0,
	}

https://github.com/baidubce/bce-qianfan-sdk/blob/main/docs/go/inference.md#v2-%E8%B0%83%E7%94%A8

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

No branches or pull requests

2 participants