-
Notifications
You must be signed in to change notification settings - Fork 399
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
OpenAI and Fireworks vision services #121
Conversation
|
||
else: | ||
description = await self.run_vision(frame) | ||
yield TextFrame(description) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't run_vision
be async already?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is, but naming things is hard 😂 the way you implemented the run_vision
method for moondream returns a string that you wrap in a text frame, but the the way the OpenAI module returns completions is an AsyncGenerator, so I needed another run_vision
method. It's clunky but I'm out of ideas
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should make Moondream return AsyncGenerator :-). I'll fix that tomorrow.
e79fdea
to
3255c7f
Compare
ok to close @chadbailey59 ? |
closing because this is stale |
I might try to add Fireworks image gen support tomorrow, but we can also merge this as-is if we need to cut a release