-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Set default value for enforce type * Implemented validation in add llm profile form * Models changes in prompt studio core * Bug fixes in prompt edit card * Bug fixes and UI improvements in prompt studio
- Loading branch information
1 parent
38682d7
commit 0cabd50
Showing
17 changed files
with
466 additions
and
204 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
backend/prompt_studio/prompt_studio/migrations/0005_alter_toolstudioprompt_enforce_type.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Generated by Django 4.2.1 on 2024-02-29 10:30 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("prompt_studio", "0004_alter_toolstudioprompt_prompt"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="toolstudioprompt", | ||
name="enforce_type", | ||
field=models.TextField( | ||
blank=True, | ||
choices=[ | ||
("Text", "Response sent as Text"), | ||
("number", "Response sent as number"), | ||
("email", "Response sent as email"), | ||
("date", "Response sent as date"), | ||
("boolean", "Response sent as boolean"), | ||
("json", "Response sent as json"), | ||
], | ||
db_comment="Field to store the type in which the response to be returned.", | ||
default="Text", | ||
), | ||
), | ||
] |
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
26 changes: 26 additions & 0 deletions
26
...tudio/prompt_studio_core/migrations/0006_alter_customtool_summarize_as_source_and_more.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Generated by Django 4.2.1 on 2024-03-02 07:30 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("prompt_studio_core", "0005_alter_customtool_default_profile_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="customtool", | ||
name="summarize_as_source", | ||
field=models.BooleanField( | ||
db_comment="Flag to use summarized content as source", default=False | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="customtool", | ||
name="summarize_context", | ||
field=models.BooleanField( | ||
db_comment="Flag to summarize content", default=False | ||
), | ||
), | ||
] |
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
Oops, something went wrong.