diff --git a/js/packages/phoenix-client/examples/apply_prompt_openai.ts b/js/packages/phoenix-client/examples/apply_prompt_openai.ts index 2e9ff8f8e1..f4aa7eda8d 100644 --- a/js/packages/phoenix-client/examples/apply_prompt_openai.ts +++ b/js/packages/phoenix-client/examples/apply_prompt_openai.ts @@ -38,7 +38,7 @@ const main = async () => { prompt, sdk: "openai", variables: { - question: "What is the capital of France?", + question: "When does Monster Hunter Wilds come out?", }, }); @@ -70,6 +70,8 @@ const main = async () => { } catch { console.log(responseText); } + } else if (chunk.choices[0]?.delta?.tool_calls) { + console.log(chunk.choices[0]?.delta?.tool_calls); } }