+
95
-

openai的gpt3如何调用?

openai的gpt3如何调用?


网友回复

+
15
-

1、首先申请一个api key,并安装openai

pip install openai

申请地址:https://beta.openai.com/

2、新建一个json文本文件sample-search.jsonl

{“text”: “The rebuilding of economies after the COVID-19 crisis offers a unique opportunity to transform the global food system and make it resilient to future shocks, ensuring environmentally sustainable and healthy nutrition for all. To make this happen, United Nations agencies like the Food and Agriculture Organization, the United Nations Environment Program, the Intergovernmental Panel on Climate Change, the International Fund for Agricultural Development, and the World Food Program, collectively, suggest four broad shifts in the food system.”,...

点击查看剩余70%

我知道答案,我要回答