> 文章列表 > 使用OpenAI API(或ChatGPTAPI)的时候应该选择哪个model

使用OpenAI API(或ChatGPTAPI)的时候应该选择哪个model

使用OpenAI API(或ChatGPTAPI)的时候应该选择哪个model

这是个简单的问题,但是我发现很多网上的教程都比较老了,例如下面这些:

【ChatGPT】如何使用python调用ChatGPT API? - 腾讯云开发者社区-腾讯云

https://zhuanlan.zhihu.com/p/609341645 

这些教程里用的是text-davinci-003或者text-davinci-002,但是这些并不是最新的model啊,具体有哪些model,我之前也写了怎么列出所有可用的model:

怎么样使用OpenAI的Python API_蛐蛐蛐的博客-CSDN博客

这里介绍了model之间的兼容性:https://platform.openai.com/docs/models/model-endpoint-compatibility

同样是这个网页上,也介绍了:

Our most capable and cost effective model in the GPT-3.5 family is gpt-3.5-turbo which has been optimized for chat but works well for traditional completions tasks as well. 

因为GPT-4并不是人人可用的,所以目前gpt-3.5-turbo是最应该尝试使用的。

具体示例也可以参考一下这里:ChatGPT最新模型指南——gpt-3.5-turbo - 知乎