-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Support to pull prompt templates and model configuration from MakerSuiteHub #2733
Conversation
Test data template and model.
Test same.
…low for connections to other Google APIs
…low for connections to other Google APIs
Implement forceLoad() Bug fixes in cache and logic.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
return ret; | ||
} | ||
|
||
async load(id: string): Promise<MakerSuitePrompt> { |
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.
Strong preference between load
vs. pull
?
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.
Changing to pull() and forcePull()
return ret; | ||
} | ||
|
||
toModel(): LLM | BaseChatModel { |
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 can just be BaseLanguageModel
So sorry about the delay - this seems reasonable, just missing entrypoints and docs |
@@ -0,0 +1,358 @@ | |||
import { protos } from "@google-ai/generativelanguage"; |
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.
Use import type
@@ -0,0 +1,358 @@ | |||
import { protos } from "@google-ai/generativelanguage"; | |||
import { google } from "@google-ai/generativelanguage/build/protos/protos.js"; |
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.
Here as well I think?
Chage some imports to import type.
@jacoblee93 - I think (hope) this is ready for final review and merge. |
Thank you, will look tomorrow! |
Should be good to go! Thank you |
Addresses #2564
This creates a MakerSuiteHub class with methods to load (with cache) a text, "data", or chat prompt that has been saved via makersuite.google.com. This prompt has methods to convert to a template, a prompt-free model, or to a chain which combines the two.
There are also some changes in the base connection class and types to allow for more generic calls to other Google REST APIs (in this case, Google Drive).
Examples and other documentation are pending initial review to make sure this looks good, but the tests should be complete.