diff --git a/docs/capabilities/tool-calling.mdx b/docs/capabilities/tool-calling.mdx index ae1ff959..30c994d9 100644 --- a/docs/capabilities/tool-calling.mdx +++ b/docs/capabilities/tool-calling.mdx @@ -15,7 +15,7 @@ Also known as "single-shot" tool calling. ```shell curl -s http://localhost:11434/api/chat -H "Content-Type: application/json" -d '{ "model": "qwen3", - "messages": [{"role": "user", "content": "What's the temperature in New York?"}], + "messages": [{"role": "user", "content": "What is the temperature in New York?"}], "stream": false, "tools": [ { @@ -41,7 +41,7 @@ Also known as "single-shot" tool calling. curl -s http://localhost:11434/api/chat -H "Content-Type: application/json" -d '{ "model": "qwen3", "messages": [ - {"role": "user", "content": "What's the temperature in New York?"}, + {"role": "user", "content": "What is the temperature in New York?"}, { "role": "assistant", "tool_calls": [ @@ -90,7 +90,7 @@ Also known as "single-shot" tool calling. } return temperatures.get(city, "Unknown") - messages = [{"role": "user", "content": "What's the temperature in New York?"}] + messages = [{"role": "user", "content": "What is the temperature in New York?"}] # pass functions directly as tools in the tools list or as a JSON schema response = chat(model="qwen3", messages=messages, tools=[get_temperature], think=True) @@ -146,7 +146,7 @@ Also known as "single-shot" tool calling. }, ] - const messages = [{ role: 'user', content: "What's the temperature in New York?" }] + const messages = [{ role: 'user', content: "What is the temperature in New York?" }] const response = await ollama.chat({ model: 'qwen3', @@ -609,7 +609,7 @@ def get_temperature(city: str) -> str: return temperatures.get(city, 'Unknown') -messages = [{'role': 'user', 'content': "What's the temperature in New York?"}] +messages = [{'role': 'user', 'content': "What is the temperature in New York?"}] while True: stream = chat( @@ -684,7 +684,7 @@ const getTemperatureTool = { } async function agentLoop() { - const messages = [{ role: 'user', content: "What's the temperature in New York?" }] + const messages = [{ role: 'user', content: "What is the temperature in New York?" }] while (true) { const stream = await ollama.chat({