Skip to content

Conversation

@christothes
Copy link
Collaborator

@christothes christothes commented Jul 30, 2025

related #520

public ChatOutputAudio Audio { get; }
public string Content { get; }
public string Id { get; }
public string Refusal { get; }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can be done in a separate PR: This class appears to be missing a few properties:

  • content_parts
  • function_call
  • name

@christothes christothes merged commit 45f9ea5 into openai:main Jul 31, 2025
1 check passed
public IReadOnlyList<ChatToolCall> ToolCalls { get; }

public IList<ChatMessageAnnotation> Annotations { get; }
public IReadOnlyList<ChatMessageAnnotation> Annotations { get; }
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is this readonly? messages are input models.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This looks like a ChatMessage but it is not. It's a read-only representation of the chat messages corresponding to a stored chat completion. While they look very similar, they unfortunately have a few differences and hence we couldn't reuse the ChatMessage class. For now, we're introducing this class as experimental. I will share offline a few considerations that we have been discussing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants