You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When editing default prompts, such as changing the label of the "AI Correction" prompt, the Prompt.prompt field's value changes from NULL to an empty string. This causes an empty prompt_value, resulting in incorrect outputs when used in the editor.
To reproduce:
edit default prompt or just open and save it
use it in the editor
Proposed Fixes:
Prompt.prompt should not be nullable; its default should be an empty string
Prompt.prompt_value should test truthiness instead of explicitly checking for None
I can submit a pull request if needed.
The text was updated successfully, but these errors were encountered:
When editing default prompts, such as changing the label of the "AI Correction" prompt, the
Prompt.prompt
field's value changes fromNULL
to an empty string. This causes an emptyprompt_value
, resulting in incorrect outputs when used in the editor.To reproduce:
Proposed Fixes:
Prompt.prompt
should not be nullable; its default should be an empty stringPrompt.prompt_value
should test truthiness instead of explicitly checking forNone
I can submit a pull request if needed.
The text was updated successfully, but these errors were encountered: