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

Update openai dep and add support for multimodal content #51

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

transitive-bullshit
Copy link
Collaborator

  • updates openai dep to latest (these changes seem mostly trivial)
  • updates typescript dep to latest
  • changes ChatMessage.content to support string | ChatMessageContentPart[] | null

See https://platform.openai.com/docs/api-reference/chat/create for more details.

@rileytomasek
Copy link
Collaborator

i'll have to test this locally with dexter and the internal dexa code. i'm not sure what we'll want to do if it causes issues because we don't have time to update that code right now and don't need the non-text functionality.

also cc @cfortuner because this may conflict with the anthropic efforts that we also don't want to block for functionality we don't need.

@rileytomasek
Copy link
Collaborator

@transitive-bullshit what do you think of making a new type+method specifically for supporting mutimedia chat messages? it would be nice to have, but i dont think it's worth the hassle downstream for a ton of code that doesn't care about it.

@transitive-bullshit
Copy link
Collaborator Author

I think maintaining as much of a 1:1 w OpenAI makes sense. Otherwise they'll just drift apart as OpenAI goes more and more multimodal.

eg see https://platform.openai.com/docs/guides/audio which makes even more changes to the chat completions API to support multiple modalities.

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

Successfully merging this pull request may close these issues.

2 participants