Skip to content

Commit e69eb2f

Browse files
committed
fix(genapi): added warning regarding system prompt
1 parent c558413 commit e69eb2f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ai-data/generative-apis/how-to/use-function-calling.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ response = client.chat.completions.create(
146146
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.
147147
</Message>
148148

149+
<Message type="important">
150+
Some models specifically need to 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.
151+
</Message>
152+
149153
### Multi-turn conversation handling
150154

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

0 commit comments

Comments
 (0)