Skip to content

数据模型: ClaudeRequest

ClaudeMessage

字段类型必选描述
rolestring
contentany

数据模型示例

json
{
  "role": "string",
  "content": null
}

ClaudeRequest

字段类型必选描述
modelstring
messagesarray of any
systemany
max_tokensinteger
temperaturenumber
top_pnumber
top_kinteger
streamboolean
stop_sequencesarray of string
toolsarray of object
tools[].namestring
tools[].descriptionstring
tools[].input_schemaobject
tool_choiceany
thinkingobject
thinking.typestring
thinking.budget_tokensinteger
metadataobject
metadata.user_idstring

数据模型示例

json
{
  "model": "claude-3-opus-20240229",
  "messages": [
    {
      "role": "string",
      "content": null
    }
  ],
  "system": null,
  "max_tokens": 0,
  "temperature": 0,
  "top_p": 0,
  "top_k": 0,
  "stream": true,
  "stop_sequences": [
    "string"
  ],
  "tools": [
    {
      "name": "string",
      "description": "string",
      "input_schema": {}
    }
  ],
  "tool_choice": null,
  "thinking": {
    "type": "string",
    "budget_tokens": 0
  },
  "metadata": {
    "user_id": "string"
  }
}

Released under the MIT License.