28e53d90fc
- 统一 OpenAI 兼容 /v1 中继 + 渠道/额度/令牌/流水 - 各领域包:relay 模型网关、model 数据层、controller 管理 API
56 lines
1.1 KiB
JSON
56 lines
1.1 KiB
JSON
{
|
|
"model": "upstream-model",
|
|
"input": [
|
|
{
|
|
"content": [
|
|
{
|
|
"text": "What is in this image?",
|
|
"type": "input_text"
|
|
},
|
|
{
|
|
"image_url": "data:image/png;base64,aGVsbG8=",
|
|
"type": "input_image"
|
|
}
|
|
],
|
|
"role": "user"
|
|
},
|
|
{
|
|
"content": "",
|
|
"role": "assistant"
|
|
},
|
|
{
|
|
"arguments": "{\"city\":\"Paris\"}",
|
|
"call_id": "call_1",
|
|
"name": "get_weather",
|
|
"type": "function_call"
|
|
},
|
|
{
|
|
"call_id": "call_0",
|
|
"output": "{\"result\":\"15 degrees\"}",
|
|
"type": "function_call_output"
|
|
}
|
|
],
|
|
"instructions": "You are a helpful assistant.",
|
|
"max_output_tokens": 1024,
|
|
"stream": false,
|
|
"temperature": 0.7,
|
|
"tools": [
|
|
{
|
|
"description": "Get weather by city",
|
|
"name": "get_weather",
|
|
"parameters": {
|
|
"properties": {
|
|
"city": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"city"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"type": "function"
|
|
}
|
|
]
|
|
}
|