diff --git a/docs/quickstart/connect-llms.mdx b/docs/quickstart/connect-llms.mdx index adfbc664..468a9f4b 100644 --- a/docs/quickstart/connect-llms.mdx +++ b/docs/quickstart/connect-llms.mdx @@ -102,6 +102,8 @@ response = client.chat.completions.create( model=model, messages=messages, tools=tools, + # Force the model to call execute_python instead of letting it answer directly + tool_choice={"type": "function", "function": {"name": "execute_python"}}, ) # Append the response message to the messages list