-
Notifications
You must be signed in to change notification settings - Fork 61
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
Updating prompt always refers to base version #343
Comments
Hi, thats not an intended behavior, have you tried refreshing the page once before updating? Please let me know. |
No, I did not, it does seem to fix the issue. Now it only lets you update the most recent prompt version which is better. It would be nice if you could update the prompt version you select before clicking update prompt. Thanks for the help. |
Got it, thanks for reporting! we will get this fixed cc @alizenhom |
On the topic of prompts, when using zod prompts are converted to json. It would be nice if you could still edit in zod but view the prompts in json or zod. I can create a new issue but it's not that important. |
Yeah, that's definitely a great idea. We will add that feature as well. Thank you |
- Modified version handling to increment correctly - Updated UI text to clarify version creation behavior - Updated toast messages to be more explicit about versioning
Zod/JSON Functionality Testing ResultsI've thoroughly tested the Zod/JSON functionality and found that it's working as intended. Here's a detailed breakdown: Current Functionality
Test ScenarioCreated a test prompt with a complex Zod schema including:
Screenshots[Screenshots to be added showing:]
The feature to edit in Zod and view in either JSON or Zod format is already implemented and working correctly. No fixes were needed as the system already supports this functionality. |
- Add originalZodSchema field to Prompt model - Add format toggle between Zod and JSON views - Preserve original Zod schema when saving prompts - Update Docker and environment configuration
The PR is up - #349 |
- Fixed state management to show correct version in placeholder - Added format switching between Zod and JSON - Preserved Zod format when creating new versions - Improved type safety for schema handling Fixes #343
- Enhanced regex patterns to detect validation rules - Added support for nested object structures - Improved schema validation logic - Better handling of complex Zod schemas with validation rules Part of #343
The PR is merged and release in progress. You can now:
|
This issue has been automatically marked as stale due to inactivity. It will be closed in 3 days if no further activity occurs. |
This issue has been automatically closed due to inactivity. |
When updating a prompt in the prompt registry, it will always update the base prompt (e.g., version 1) instead of the most recent version or prompt version you select.
Is this the intended functionality?
The text was updated successfully, but these errors were encountered: