Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OpenAI] Improved logging and specific handlers #43460

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jpalvarezl
Copy link
Member

Description

Writing a sample for this library, I noticed a lot of issues with logging and with keep-alive timeouts:

  • Removed AtomicReference<ClientLogger> types, as it didn't seem to contribute into anything. Using private static final ClientLogger instead
  • Added more atVerbose and better exception handling with the client logger
  • Separated the ping/pong handling logic into its own web socket handler.
  • Added an idle event handler with a corresponding time out.

I run into several issues developing the sample hitting the public OpenAI realtime WSS endpoint, however using the Azure one made things work well for me. I thought the improvements introduced in this PR, even though they didn't solve anything in the end, are valuable moving forward.

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@jpalvarezl jpalvarezl enabled auto-merge (squash) December 18, 2024 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants