feat: 算力引擎 Go 后端核心(new-api)
- 统一 OpenAI 兼容 /v1 中继 + 渠道/额度/令牌/流水 - 各领域包:relay 模型网关、model 数据层、controller 管理 API
This commit is contained in:
+54
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"model": "claude-test",
|
||||
"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": "toolu_abc",
|
||||
"name": "get_weather",
|
||||
"type": "function_call"
|
||||
},
|
||||
{
|
||||
"call_id": "toolu_abc",
|
||||
"output": "15 degrees",
|
||||
"type": "function_call_output"
|
||||
}
|
||||
],
|
||||
"instructions": "You are a helpful assistant.",
|
||||
"max_output_tokens": 1024,
|
||||
"stream": true,
|
||||
"tools": [
|
||||
{
|
||||
"description": "Get weather by city",
|
||||
"name": "get_weather",
|
||||
"parameters": {
|
||||
"properties": {
|
||||
"city": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"city"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"type": "function"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user