mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-31 08:51:55 +00:00 
			
		
		
		
	server : (docs) Update wrong tool calling example (#11809)
Call updated to match the tool used in the output just below, following the example in https://github.com/ggerganov/llama.cpp/pull/9639
This commit is contained in:
		| @@ -1437,17 +1437,17 @@ curl http://localhost:8080/v1/chat/completions \ | |||||||
|       { |       { | ||||||
|         "type":"function", |         "type":"function", | ||||||
|         "function":{ |         "function":{ | ||||||
|           "name":"get_current_weather", |           "name":"python", | ||||||
|           "description":"Get the current weather in a given location", |           "description":"Runs code in an ipython interpreter and returns the result of the execution after 60 seconds.", | ||||||
|           "parameters":{ |           "parameters":{ | ||||||
|             "type":"object", |             "type":"object", | ||||||
|             "properties":{ |             "properties":{ | ||||||
|               "location":{ |               "code":{ | ||||||
|                 "type":"string", |                 "type":"string", | ||||||
|                 "description":"The city and state, e.g. San Francisco, CA" |                 "description":"The code to run in the ipython interpreter." | ||||||
|               } |               } | ||||||
|             }, |             }, | ||||||
|             "required":["location"] |             "required":["code"] | ||||||
|           } |           } | ||||||
|         } |         } | ||||||
|       } |       } | ||||||
| @@ -1455,7 +1455,7 @@ curl http://localhost:8080/v1/chat/completions \ | |||||||
|     "messages": [ |     "messages": [ | ||||||
|       { |       { | ||||||
|         "role": "user", |         "role": "user", | ||||||
|         "content": "What is the weather like in Istanbul?." |         "content": "Print a hello world message with python." | ||||||
|       } |       } | ||||||
|     ] |     ] | ||||||
|   }' |   }' | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Reza Rahemtola
					Reza Rahemtola