常见的ai模型的prompt格式

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
}

作者:spike

分类: 资料

创作时间:2024-08-09

更新时间:2024-08-09

联系方式放在中括号之中例如[[email protected]],回复评论在开头加上标号例如:#1