Skip to content

Commit 2b91dbf

Browse files
tgenaitaybene2k1nerda-codesSamyOubouaziz
authored
fix(genapi): added warning regarding system prompt (#3975)
* fix(genapi): added warning regarding system prompt * fix(genapi): added warning regarding system prompt 2 * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: SamyOubouaziz <soubouaziz@scaleway.com> --------- Co-authored-by: Benedikt Rollik <brollik@scaleway.com> Co-authored-by: nerda-codes <87707325+nerda-codes@users.noreply.github.com> Co-authored-by: SamyOubouaziz <soubouaziz@scaleway.com>
1 parent dc2e1ef commit 2b91dbf

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 must be told they can use external functions in the system prompt. If you do not 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)