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

preview #67

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from
Draft

preview #67

wants to merge 17 commits into from

Conversation

lfayoux
Copy link
Contributor

@lfayoux lfayoux commented Aug 23, 2024

This pull request makes changes to the cohere-openapi.yaml file, specifically updating the event type checking logic and adjusting the schema definitions for the content field.

Event Type Checking

  • The condition if event.event_type == "text-generation" has been replaced with if event.type == "content-delta".
  • This change allows the code to specifically target "content-delta" events and extract the text content using event.delta.message.content.text.

Schema Definitions for content Field

  • The type: array definition for the content field has been replaced with oneOf: [].
  • This new definition specifies that the content field can be either a string or an array, with the array having items of type TextContent.
  • The removal of the x-fern-audiences: [] field indicates that the audience specification is no longer required for the array.

Copy link

Copy link

Copy link

Copy link

Copy link

Copy link

Copy link

Copy link

Copy link

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