Skip to content

Commit 09fc6c8

Browse files
committed
fix(ai): added menu items
1 parent d507eef commit 09fc6c8

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ response = client.chat.completions.create(
144144
```
145145

146146
<Message type="note">
147-
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.
147+
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.
148148
</Message>
149149

150150
### Multi-turn conversation handling

menu/navigation.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,10 @@
591591
"label": "OpenAI API compatibility",
592592
"slug": "openai-compatibility"
593593
},
594+
{
595+
"label": "Support for function calling",
596+
"slug": "function-calling-support"
597+
},
594598
{
595599
"label": "Llama-3-8b-instruct model",
596600
"slug": "llama-3-8b-instruct"
@@ -666,6 +670,10 @@
666670
{
667671
"label": "Use structured outputs",
668672
"slug": "use-structured-outputs"
673+
},
674+
{
675+
"label": "Use function calling",
676+
"slug": "use-function-calling"
669677
}
670678
],
671679
"label": "How to",

0 commit comments

Comments
 (0)