-
Notifications
You must be signed in to change notification settings - Fork 34
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
CreatorCore prompt generation endpoint #1591
Merged
clpetersonucf
merged 14 commits into
ucfopen:dev/10.3.0
from
clpetersonucf:feature/creator-core-prompt-generation-endpoint
Oct 28, 2024
Merged
CreatorCore prompt generation endpoint #1591
clpetersonucf
merged 14 commits into
ucfopen:dev/10.3.0
from
clpetersonucf:feature/creator-core-prompt-generation-endpoint
Oct 28, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clpetersonucf
changed the base branch from
dev/10.3.0
to
question-generation
September 13, 2024 14:42
- A new 'uses_prompt_generation' property is now defined in the Widget class - The property will be passed into the widget instance, accessible in initNewWidget and initExistingWidget - Widgets can read this property to determine if the Materia instance supports generative AI features/prompt submission - A migration was also created to create this field. We can squish this migration with the is_generable migration when the PR is 100% ready
…ion-endpoint Add 'uses_prompt_generation' field to widgets
clpetersonucf
deleted the
feature/creator-core-prompt-generation-endpoint
branch
October 28, 2024 16:05
Draft
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is built on top of #1582, which should be merged first
Adds a CreatorCore pipeline that builds on top of the question generation feature, enabling widgets to submit prompts through Materia to a generative AI and process the response:
Materia.CreatorCore.submitPrompt(message)
method to the CreatorCore.onPromptResponse(status, message)
callback for widget creators to implement to handle the response of a generative AI prompt.widget_prompt_generate()
API endpoint to facilitate generation.Widget_Question_Generator
class with a newgenerate_from_prompt
method to handle generic prompt requests.Local Testing
Testing this feature end-to-end requires a widget that implements (and has access to) the new CreatorCore method and callback. This in turn requires ucfopen/Materia-Widget-Dev-Kit#123, which implements the new
materia-widget-dependencies
0.4.0
package. To test end-to-end:.env.local
has the required values to enable question generation.dev/3.0.3
locally and useyarn link
to link the repo to a widget of your choosing.Materia.CreatorCore.submitPrompt
andonPromptResponse
in your widget creator.