-
Notifications
You must be signed in to change notification settings - Fork 53
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
支持一下sdk的实例化 #672
Labels
Comments
感谢反馈,可以进一步描述下根据实例区分的最主要的配置是哪些吗(比如ACCESS_KEY、SECRET_KEY?),我们会重点看一下
|
嗯,最好能加上 BaseURL ,方便 mock。🙏🏻 |
是指的希望创建多个ChatCompletion,每个指定一个BaseURL? from qianfan import ChatCompletion
conf1 = Config(
access_key=''.
secret_key='',
base_url='xxx'
)
# run in custom base_url:
chat_custom = ChatCompletion(conf)
chat_custom.do()
# run in baidubce.com:
chat1 = ChatCompletion(conf)
chat1.do() |
多个 instance 吧。 instance := NewInstance(Config{})
chat := instance.NewChatCompletion(
qianfan.WithModel("ERNIE-Bot-4"),
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature request
现在sdk是都使用全局配置,不能初始化成多个实例使用。
contribution or solutions
No response
The text was updated successfully, but these errors were encountered: