使用 json 格式输出数据 #184
chenxizhang
started this conversation in
Use cases - 简体中文
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
从GPT 4 开始,OpenAI提供了一种能力,就是可以直接输出
json
的数据,以便我们在后续更加简单地利用。在 New-ChatGPTConversation 命令中,我们也提供了这个参数。下面是一个实例。没有指定 json 参数的效果
指定 json 参数的效果
值得注意的是,你不仅需要指定
json
参数,而且需要在prompt
中表达出来你的这个意愿。Beta Was this translation helpful? Give feedback.
All reactions