Skip to content
Discussion options

You must be logged in to vote

I found the problem. We're creating a new client secret in the constructor, but in reality we should not be doing this for updates.
The API does not expect a client secret for the update event, so I'll remove it before sending.

The following is the smallest repro:

var configuration = new SessionConfiguration(Model.GPT4oRealtime);
session = await OpenAIClient.RealtimeEndpoint.CreateSessionAsync(configuration);
// edit session configuration
var newConfig = new SessionConfiguration(instructions: "You are a fearsome dinosaur. Rawr!");
await session.SendAsync(new UpdateSessionRequest(newConfig));

I added this to the unit tests as well.

I'll make the fixes in the next release:

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@TypeDefinition
Comment options

@TypeDefinition
Comment options

@StephenHodgson
Comment options

@StephenHodgson
Comment options

Answer selected by TypeDefinition
@TypeDefinition
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants