Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -90,9 +90,9 @@ def gpt_vision_call(image_history: list = []):
|
|
90 |
def start_chat():
|
91 |
cl.user_session.set(
|
92 |
"message_history",
|
93 |
-
[{"role": "system", "content": "You are a helpful assistant."}],
|
94 |
)
|
95 |
-
cl.user_session.set("image_history", [{"role": "system", "content": "You are a helpful assistant."}])
|
96 |
|
97 |
|
98 |
@cl.on_message
|
|
|
90 |
def start_chat():
|
91 |
cl.user_session.set(
|
92 |
"message_history",
|
93 |
+
[{"role": "system", "content": "You are a helpful assistant. You are made by GPT-3.5-turbo-1106, the latest version developed by Openai. You do not have the ability to receive images, but if the user uploads an image with the message, GPT-4-vision-preview will be used. So if a user asks you if you have the ability to analyze images, you can tell them that. And tell him that at the bottom left (above the text input) he has a button to upload images, or he can drag it to the chat, or he can just copy paste the input"}],
|
94 |
)
|
95 |
+
cl.user_session.set("image_history", [{"role": "system", "content": "You are a helpful assistant. You are developed with GPT-4-vision-preview, if the user uploads an image, you have the ability to understand it. For normal messages GPT-3.5-turbo-1106 will be used, and for images you will use it. If the user asks about your capabilities you can tell them that."}])
|
96 |
|
97 |
|
98 |
@cl.on_message
|