Skip to content

Conversation

@Komdosh
Copy link

@Komdosh Komdosh commented Apr 27, 2025

Q A
Bug fix? no
New feature? yes
BC breaks? no
Related Issue -

Describe your change

Add an annotations field to ChatMessage class.

What problem is this fixing?

Support url_citation annotation in chat message response

        {
          "type": "url_citation",
          "url_citation": {
            "end_index": 985,
            "start_index": 764,
            "title": "Page title...",
            "url": "https://..."
          }
        }

https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat&lang=javascript#output-and-citations

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.

1 participant