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
Copy file name to clipboardexpand all lines: main.py
+3-2
Original file line number
Diff line number
Diff line change
@@ -51,11 +51,12 @@ def describe_url(webhook):
51
51
categories= [option["name"] foroptioninoptions]
52
52
53
53
# Generate the prompt
54
-
prompt=f"Describe this webpage ({gem_url}) using only the following tags: {', '.join(categories)}"
54
+
prompt=f"Choose the most relevant tags for this webpage {gem_url} from the following list: {', '.join(categories)}. You are not allowed to use any other tags."
55
55
print("ChatGPT prompt:", prompt)
56
56
57
57
# Get the response from the ChatGPT API
58
58
chatgpt_answer=get_chatgpt_response(prompt)
59
+
print("ChatGPT answer:", chatgpt_answer)
59
60
60
61
# Select Notion categories that were selected by ChatGPT
0 commit comments