Skip to content

Conversation

aakankshaduggal
Copy link
Contributor

Replace chat_completion calls with openai_chat_completion to eliminate dependency on legacy inference APIs.

What does this PR do?

Closes #3067

Test Plan

Replace chat_completion calls with openai_chat_completion
to eliminate dependency on legacy inference APIs.
continue
elif event.event_type == ChatCompletionResponseEventType.complete:
stop_reason = StopReason.end_of_turn
stop_reason = event.stop_reason or StopReason.end_of_turn
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update implementation for Agents API to use newer inference APIs
2 participants