add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

20
pages.zh/common/openai.md Normal file
View File

@@ -0,0 +1,20 @@
# openai
> 命令行工具,提供对 OpenAI API 的访问。
> 更多信息:<https://github.com/openai/openai-python>。
- 列出模型:
`openai api models.list`
- 创建完成:
`openai api completions.create --model {{ada}} --prompt "{{Hello world}}"`
- 创建聊天完成:
`openai api chat_completions.create --model {{gpt-3.5-turbo}} --message {{user "Hello world"}}`
- 通过 DALL·E API 生成图像:
`openai api image.create --prompt "{{two dogs playing chess, cartoon}}" --num-images {{1}}`