-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): Support system code for feedback and prompt (#873)
- Loading branch information
Showing
7 changed files
with
71 additions
and
26 deletions.
There are no files selected for viewing
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
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
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
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
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
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 |
---|---|---|
@@ -1,24 +1,44 @@ | ||
from typing import List | ||
|
||
from pydantic import BaseModel | ||
from typing import Optional | ||
from pydantic import BaseModel | ||
|
||
|
||
class PromptManageRequest(BaseModel): | ||
"""chat_scene: for example: chat_with_db_execute, chat_excel, chat_with_db_qa""" | ||
|
||
chat_scene: str = None | ||
|
||
"""sub_chat_scene: sub chat scene""" | ||
sub_chat_scene: str = None | ||
|
||
"""prompt_type: common or private""" | ||
prompt_type: str = None | ||
|
||
"""content: prompt content""" | ||
content: str = None | ||
|
||
"""user_name: user name""" | ||
user_name: str = None | ||
|
||
"""prompt_name: prompt name""" | ||
prompt_name: str = None | ||
"""Model for managing prompts.""" | ||
|
||
chat_scene: Optional[str] = None | ||
""" | ||
The chat scene, e.g. chat_with_db_execute, chat_excel, chat_with_db_qa. | ||
""" | ||
|
||
sub_chat_scene: Optional[str] = None | ||
""" | ||
The sub chat scene. | ||
""" | ||
|
||
prompt_type: Optional[str] = None | ||
""" | ||
The prompt type, either common or private. | ||
""" | ||
|
||
content: Optional[str] = None | ||
""" | ||
The prompt content. | ||
""" | ||
|
||
user_name: Optional[str] = None | ||
""" | ||
The user name. | ||
""" | ||
|
||
sys_code: Optional[str] = None | ||
""" | ||
System code | ||
""" | ||
|
||
prompt_name: Optional[str] = None | ||
""" | ||
The prompt name. | ||
""" |
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