SimpleChatToolCalling: Test/Explore srvr initial hs using cmdline
This commit is contained in:
parent
817d743cc1
commit
4282a4277a
|
|
@ -0,0 +1,83 @@
|
||||||
|
echo "DONT FORGET TO RUN llama-server"
|
||||||
|
echo "build/bin/llama-server -m ~/Downloads/GenAi.Text/gemma-3n-E4B-it-Q8_0.gguf --path tools/server/public_simplechat --jinja"
|
||||||
|
curl http://localhost:8080/v1/chat/completions -d '{
|
||||||
|
"model": "gpt-3.5-turbo",
|
||||||
|
"tools": [
|
||||||
|
{
|
||||||
|
"type":"function",
|
||||||
|
"function":{
|
||||||
|
"name":"javascript",
|
||||||
|
"description":"Runs code in an javascript interpreter and returns the result of the execution after 60 seconds.",
|
||||||
|
"parameters":{
|
||||||
|
"type":"object",
|
||||||
|
"properties":{
|
||||||
|
"code":{
|
||||||
|
"type":"string",
|
||||||
|
"description":"The code to run in the javascript interpreter."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required":["code"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type":"function",
|
||||||
|
"function":{
|
||||||
|
"name":"web_fetch",
|
||||||
|
"description":"Connects to the internet and fetches the specified url, may take few seconds",
|
||||||
|
"parameters":{
|
||||||
|
"type":"object",
|
||||||
|
"properties":{
|
||||||
|
"url":{
|
||||||
|
"type":"string",
|
||||||
|
"description":"The url to fetch from internet."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required":["url"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type":"function",
|
||||||
|
"function":{
|
||||||
|
"name":"simple_calc",
|
||||||
|
"description":"Calculates the provided arithmatic expression using javascript interpreter and returns the result of the execution after few seconds.",
|
||||||
|
"parameters":{
|
||||||
|
"type":"object",
|
||||||
|
"properties":{
|
||||||
|
"arithexp":{
|
||||||
|
"type":"string",
|
||||||
|
"description":"The arithmatic expression that will be calculated using javascript interpreter."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required":["arithexp"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"messages": [
|
||||||
|
{
|
||||||
|
"role": "user",
|
||||||
|
"content": "Add 324 to todays temperature in celcius in kochi. Dont forget to get todays weather info about kochi so that the temperature is valid. Use a free weather info site which doesnt require any api keys to get the info"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}'
|
||||||
|
|
||||||
|
|
||||||
|
exit
|
||||||
|
|
||||||
|
|
||||||
|
"content": "Print a hello world message with python."
|
||||||
|
"content": "Print a hello world message with javascript."
|
||||||
|
"content": "Calculate the sum of 5 and 27."
|
||||||
|
"content": "Can you get me todays date."
|
||||||
|
"content": "Can you get todays date. And inturn add 10 to todays date"
|
||||||
|
"content": "Who is known as father of the nation in India, also is there a similar figure for USA as well as UK"
|
||||||
|
"content": "Who is known as father of the nation in India, Add 10 to double his year of birth and show me the results."
|
||||||
|
"content": "How is the weather today in london."
|
||||||
|
"content": "How is the weather today in london. Add 324 to todays temperature in celcius in london"
|
||||||
|
"content": "How is the weather today in london. Add 324 to todays temperature in celcius in kochi"
|
||||||
|
"content": "Add 324 to todays temperature in celcius in london"
|
||||||
|
"content": "Add 324 to todays temperature in celcius in delhi. Dont forget to get todays weather info about delhi so that the temperature is valid"
|
||||||
|
"content": "Add 324 to todays temperature in celcius in mumbai. Dont forget to get todays weather info about mumbai so that the temperature is valid. Use a free weather info site which doesnt require any api keys to get the info"
|
||||||
|
"content": "Can you get the cutoff rank for all the deemed medical universities in India for UGNeet 25"
|
||||||
Loading…
Reference in New Issue