fix tests

This commit is contained in:
Adil Hafeez 2024-12-10 18:51:29 -08:00
parent 2405fb36e3
commit 94c18925de
8 changed files with 318 additions and 32 deletions

View file

@ -234,3 +234,61 @@ Content-Type: application/json
],
"stream": false
}
### archgw to model_server 2
POST {{model_server_endpoint}}/function_calling HTTP/1.1
Content-Type: application/json
{
"model": "--",
"messages": [
{
"role": "user",
"content": "how is the weather in seattle for next 10 days"
}
],
"tools": [
{
"type": "function",
"function": {
"name": "get_current_weather",
"description": "Get current weather at a location.",
"parameters": {
"properties": {
"location": {
"type": "str",
"description": "The location to get the weather for"
},
"days": {
"type": "str",
"description": "the number of days for the request"
},
"units": {
"type": "str",
"description": "The unit to return the weather in",
"default": "fahrenheit",
"enum": ["celsius", "fahrenheit"]
}
},
"required": [
"location",
"days"
]
}
}
},
{
"type": "function",
"function": {
"name": "default_target",
"description": "This is the default target for all unmatched prompts.",
"parameters": {
"properties": {}
}
}
}
],
"stream": false
}