个性化参数设置 #185
chenxizhang
started this conversation in
Use cases - 简体中文
个性化参数设置
#185
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
我们为当前的命令提供了主要的一些显式参数,例如
api_key
,endpoint
,model
等,但其实你还可以通过更多细节的个性化参数来改善你的文本生成效果,你可以参考 OpenAI 官方提供的API 文档 https://platform.openai.com/docs/api-reference/chat/create 了解具体的参数, 比较常用的是max_tokens
,seed
,stop
,temperature
等。Note
请注意,虽然你也可以传入
messages
,stream
,tools
等参数,但不推荐,因为模块内部有对其进行实现,传入这些参数可能导致一些不可预期的效果。你可以通过
config
这个参数(或它的别名settings
)来传入个性化参数,例如gpt "我需要你帮我做一份行程规划,上海三日游,预算不限。有小孩和老人,请尽量安排舒适一些" -config @{max_tokens=1000;temperature=1}
Beta Was this translation helpful? Give feedback.
All reactions