库
Python库
$ pip install openaiimport os
import openai
# Load your API key from an environment variable or secret management service
openai.api_key = os.getenv("OPENAI_API_KEY")
response = openai.Completion.create(model="text-davinci-003", prompt="Say this is a test", temperature=0, max_tokens=7)$ openai api completions.create -m text-davinci-003 -p "Say this is a test" -t 0 -M 7 --streamNode.js库
$ npm install openai社区库
C# / .NET
Crystal
Go
Java
Kotlin
Node.js
PHP
R
Ruby
Scala
Swift
Unity
Unreal Engine
最后更新于