Spaces:
Running
Running
[update]add 三国演义.txt
Browse files- data/{three_kingdoms.txt → 三国演义.txt} +0 -0
- main.py +3 -1
data/{three_kingdoms.txt → 三国演义.txt}
RENAMED
File without changes
|
main.py
CHANGED
@@ -122,6 +122,8 @@ def click_list_assistant(openai_api_key: str) -> str:
|
|
122 |
|
123 |
def click_delete_assistant(openai_api_key: str,
|
124 |
assistant_id: str) -> str:
|
|
|
|
|
125 |
logger.info("click delete assistant, assistant_id: {}".format(assistant_id))
|
126 |
|
127 |
client = OpenAI(
|
@@ -568,7 +570,7 @@ def main():
|
|
568 |
"三国演义文档问答测试",
|
569 |
"{\"type\": \"retrieval\"}",
|
570 |
[
|
571 |
-
(project_path / "data
|
572 |
],
|
573 |
"gpt-4-1106-preview",
|
574 |
"刘备和张飞是什么关系。"
|
|
|
122 |
|
123 |
def click_delete_assistant(openai_api_key: str,
|
124 |
assistant_id: str) -> str:
|
125 |
+
assistant_id = assistant_id.strip()
|
126 |
+
|
127 |
logger.info("click delete assistant, assistant_id: {}".format(assistant_id))
|
128 |
|
129 |
client = OpenAI(
|
|
|
570 |
"三国演义文档问答测试",
|
571 |
"{\"type\": \"retrieval\"}",
|
572 |
[
|
573 |
+
(project_path / "data/三国演义.txt").as_posix()
|
574 |
],
|
575 |
"gpt-4-1106-preview",
|
576 |
"刘备和张飞是什么关系。"
|