Skip to content

Commit

Permalink
Log tool calls in example
Browse files Browse the repository at this point in the history
  • Loading branch information
cephalization committed Jan 23, 2025
1 parent 105ff11 commit 6b6e92f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/packages/phoenix-client/examples/apply_prompt_openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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?",
},
});

Expand Down Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 6b6e92f

Please sign in to comment.