Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ai-data/generative-apis/how-to/use-function-calling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ response = client.chat.completions.create(
The model automatically decides which functions to call. However, you can specify a particular function by using the `tool_choice` parameter. In the example above, you can replace `tool_choice=auto` with `tool_choice={"type": "function", "function": {"name": "get_flight_schedule"}}` to explicitly call the desired function.
</Message>

<Message type="important">
Some models shall be told they can use external functions in system prompt. If you don't provide a system prompt when using tools, Scaleway will automatically add one that works best for that specific model.
</Message>

### Multi-turn conversation handling

For more complex interactions, you will need to handle multiple turns of conversation:
Expand Down