[openai]参数项
| 选项名称 | 可选值 | 含义 |
|---|---|---|
| api_time | 秒数值 | API请求的最高等待时间 |
| timeout | 秒数值 | 网络请求的最高等待时间 |
| max_tokens | 1024-3500之间的整数 | 一次向OpenAI发送的token尺寸 |
| model_engine | text-davinci-002, text-davinci-003 | 文字模型设置 |
| temperature | 0 到 1 之间的小数 | 控制生成文本的多样性 |
| debug_info | 1, 0 | 是否开启返回信息Debug |
| output_format | code | 生成代码的格式 |
# OPENAI 模型相关设置[openai]# 设置API请求最高等待时间,默认为1s,单位秒api_time = 1# 设置网络请求最高等待时间,默认为10-20s,单位秒timeout = 60# 一次向openai发送的token尺寸,建议设置在1024-3500,不可超过范围max_tokens = 3000# openai文字模型设置,支持可选 text-davinci-003 text-davinci-002model_engine = text-davinci-003# 控制多样性,越接近1 多样性越大 建议0.3-0.8temperature = 0.5# 返回信息Debug 1是开启 0是关闭debug_info = 0# 代码格式 暂不可用output_format = code
