Spaces:
Running
on
Zero
Running
on
Zero
test
Browse files
mysite/interpreter/prompt.py
CHANGED
@@ -32,7 +32,7 @@ def test_prompt(prompt,question):
|
|
32 |
)
|
33 |
|
34 |
print(completion.choices[0].message)
|
35 |
-
return completion.choices[0].message
|
36 |
|
37 |
|
38 |
|
|
|
32 |
)
|
33 |
|
34 |
print(completion.choices[0].message)
|
35 |
+
return completion.choices[0].message.content
|
36 |
|
37 |
|
38 |
|
mysite/routers/fastapi.py
CHANGED
@@ -103,7 +103,7 @@ def setup_webhook_routes(app: FastAPI):
|
|
103 |
|
104 |
#test_prompt
|
105 |
res = test_prompt(prompt_res,title)
|
106 |
-
send_google_chat_card(webhook_url, "銉椼儹銉炽儣銉堛儐銈广儓"+first_line, res, link_text, link_url)
|
107 |
|
108 |
|
109 |
#
|
|
|
103 |
|
104 |
#test_prompt
|
105 |
res = test_prompt(prompt_res,title)
|
106 |
+
send_google_chat_card(webhook_url, "銉椼儹銉炽儣銉堛儐銈广儓"+first_line, str(res), link_text, link_url)
|
107 |
|
108 |
|
109 |
#
|