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

3/n add to model parser registry on init #987

Merged
merged 3 commits into from
Jan 26, 2024
Merged

3/n add to model parser registry on init #987

merged 3 commits into from
Jan 26, 2024

Conversation

Ankush-lastmile
Copy link
Member

@Ankush-lastmile Ankush-lastmile commented Jan 19, 2024

3/n add to model parser registry on init

  • add Gemini Parser to Model Parser Registry
  • reorganize imports to avoid circular dependency imports

Testplan

Screenshot 2024-01-25 at 1 06 03 AM

Stack created with Sapling. Best reviewed with ReviewStack.

Ankush Pala ankush@lastmileai.dev added 3 commits January 25, 2024 00:55
- This diff copy pastes the source code for the Gemini Model parser.
- - Removed the the auto register to model parser
- doesn't link with the sdk in any way. Just makes class importable. Trying to import this will break/throw.
- more to come on top

Taken from extensions/gemini/gemini.py.
title

Part of a diff stack to incorporate Gemini in the core sdk.
- add Gemini Parser to Model Parser Registry
- reorganize imports to avoid circular dependency imports

## Testplan

<img width="1554" alt="Screenshot 2024-01-25 at 1 06 03 AM" src="https://github.com/lastmile-ai/aiconfig/assets/141073967/54157e31-76ea-49a1-bbd3-f96e6ef7d71f">
Comment on lines +59 to +60
ModelParserRegistry.register_model_parser(PaLMChatParser())
ModelParserRegistry.register_model_parser(PaLMTextParser())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can axe PaLM registry by default soon?

@Ankush-lastmile
Copy link
Member Author

Ankush-lastmile commented Jan 26, 2024

Maybe we can axe PaLM registry by default soon?

Yea, we need to figure out what our gameplan is for having a model as core or not.

It does use the api dependency as Gemini though so that's something to think about.

@Ankush-lastmile Ankush-lastmile merged commit 94b8eb6 into main Jan 26, 2024
1 check passed
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.

2 participants