-
Notifications
You must be signed in to change notification settings - Fork 5
Gemini multimodal support #53
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
base: main
Are you sure you want to change the base?
Conversation
eebe402 to
4b57207
Compare
032485c to
26fc6af
Compare
jph00
left a comment
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.
Looking good! A couple of questions for you.
lisette/core.py
Outdated
| (b'\x00\x00\x01\xb3', 0): 'video/mpeg', | ||
| } | ||
|
|
||
| def _detect_mime(data): |
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.
This is nice! I've added it as fastcore.xtras.detect_mime so you can use that instead. :)
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.
Great thank you so much!
|
|
||
| # %% ../nbs/00_core.ipynb | ||
| @patch | ||
| def print_hist(self:Chat): |
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.
Why are these all removed?
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.
Synthetic history utils aren't used anymore, I think they were added for reconstructing tools from formatted outputs? But afaik Rens made a different implementation which doesn't use them. We can probably add back print_hist though.
26fc6af to
f8c41ca
Compare
|
Made a small fix to AnswerDotAI/fastcore#713 @jph00 I've made the changes to use |
f8c41ca to
4459917
Compare
Merge after: AnswerDotAI/fastcore#713
TODO: Need to update the fastcore version in lisette settings.ini once the fastcore PR above is released.
Here are the changes:
completion(..., caching=True)) for non-claude models whenChat(...,cache=True).AsyncStreamFormatterfor non-claude models like Gemini, where thinking can interleave and can also have generation content at the final thinking chunk.