Openai
{
model = "text-davinci-002", // 指定使用的模型
prompt = "Write a short story about a robot discovering the meaning of life.", // 你的prompt
max_tokens = 50, // 生成的最大token数量
temperature = 0.7, // 随机性参数
top_p = 1.0, // 核采样参数
frequency_penalty = 0.0, // 频率惩罚
presence_penalty = 0.6 // 存在惩罚
}
Deepseek
{
"messages": [
{
"content": "You are a helpful assistant",
"role": "system"
},
{
"content": "Hi",
"role": "user"
}
],
"model": "deepseek-coder",
"frequency_penalty": 0,
"max_tokens": 2048,
"presence_penalty": 0,
"response_format": {
"type": "text"
},
"stop": null,
"stream": false,
"stream_options": null,
"temperature": 1,
"top_p": 1,
"tools": null,
"tool_choice": "none",
"logprobs": false,
"top_logprobs": null
}