mirror of
https://github.com/katanemo/plano.git
synced 2026-04-26 01:06:25 +02:00
Some fixes on model server (#362)
* Some fixes on model server * Remove prompt_prefilling message * Fix logging * Fix poetry issues * Improve logging and update the support for text truncation * Fix tests * Fix tests * Fix tests * Fix modelserver tests * Update modelserver tests
This commit is contained in:
parent
ebda682b30
commit
88a02dc478
25 changed files with 1090 additions and 1666 deletions
|
|
@ -15,7 +15,6 @@ Content-Type: application/json
|
|||
],
|
||||
"tools": [
|
||||
{
|
||||
"id": "weather-112",
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "get_current_weather",
|
||||
|
|
@ -53,32 +52,30 @@ Content-Type: application/json
|
|||
],
|
||||
"tools": [
|
||||
{
|
||||
"id": "weather-112",
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "get_current_weather",
|
||||
"description": "Get current weather at a location.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"location": {
|
||||
"type": "str",
|
||||
"description": "The location to get the weather for",
|
||||
"format": "City, State"
|
||||
},
|
||||
"unit": {
|
||||
"type": "str",
|
||||
"description": "The unit to return the weather in.",
|
||||
"enum": ["celsius", "fahrenheit"],
|
||||
"default": "celsius"
|
||||
},
|
||||
"days": {
|
||||
"type": "str",
|
||||
"description": "the number of days for the request."
|
||||
}
|
||||
},
|
||||
"required": ["location", "days"]
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "get_current_weather",
|
||||
"description": "Get current weather at a location.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"location": {
|
||||
"type": "string",
|
||||
"description": "The location to get the weather for",
|
||||
"format": "City, State"
|
||||
},
|
||||
"unit": {
|
||||
"type": "string",
|
||||
"description": "The unit to return the weather in.",
|
||||
"enum": ["celsius", "fahrenheit"],
|
||||
"default": "celsius"
|
||||
},
|
||||
"days": {
|
||||
"type": "string",
|
||||
"description": "The number of days for the request."
|
||||
}
|
||||
},
|
||||
"required": ["location", "days"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -87,6 +84,7 @@ Content-Type: application/json
|
|||
|
||||
|
||||
|
||||
|
||||
### talk to function calling endpoint
|
||||
POST {{model_server_endpoint}}/function_calling HTTP/1.1
|
||||
Content-Type: application/json
|
||||
|
|
@ -121,7 +119,7 @@ Content-Type: application/json
|
|||
}
|
||||
|
||||
### talk to Arch-Intent directly for completion
|
||||
POST https://api.fc.archgw.com/v1/chat/completions HTTP/1.1
|
||||
POST {{archfc_endpoint}}/v1/chat/completions HTTP/1.1
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
|
|
@ -212,7 +210,6 @@ Content-Type: application/json
|
|||
],
|
||||
"tools": [
|
||||
{
|
||||
"id": "weather-112",
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "weather_forecast",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue