Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[3/n] Config and items for realtime #1070

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

Merged
merged 3 commits into from
Jul 11, 2025
Merged

[3/n] Config and items for realtime #1070

merged 3 commits into from
Jul 11, 2025

Conversation

rm-openai
Copy link
Collaborator

@rm-openai rm-openai commented Jul 11, 2025

Similar to the TS version.

  • Config is the things you can set on the session
  • Items are similar to responses items. I'm using an abstraction instead of reusing the ones in the openai SDK, to reduce the amount of work for other providers

Base automatically changed from rm/pr1068 to main July 11, 2025 16:13


class RealtimeSessionConfig(TypedDict):
api_key: NotRequired[APIKeyOrKeyFunc]
Copy link
Contributor

Choose a reason for hiding this comment

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

this doesn't align with RunConfig where API key is property of the model/model provider

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it's optional, its also a property of the transport (equialent to model provider) here

threshold: NotRequired[float]


class RealtimeSessionConfig(TypedDict):
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be named model config to mirror non realtime?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

no its not a model config. But you're right that I should separate the model specific configs and the other stuff i plan to add to this (e.g. tracing)

@rm-openai rm-openai merged commit 78675ff into main Jul 11, 2025
5 checks passed
@rm-openai rm-openai deleted the rm/pr1069 branch July 11, 2025 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants