Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -37,12 +37,6 @@ def handle_vision_call(msg, image_history):
|
|
37 |
"role": "user",
|
38 |
"content": [
|
39 |
{"type": "text", "text": msg.content},
|
40 |
-
{
|
41 |
-
"type": "image_url",
|
42 |
-
"image_url": {
|
43 |
-
"url": f"data:image/jpeg;base64,{image_base64}"
|
44 |
-
}
|
45 |
-
},
|
46 |
],
|
47 |
}
|
48 |
)
|
@@ -68,7 +62,7 @@ def gpt_vision_call(image_history: list = []):
|
|
68 |
stream = client.chat.completions.create(
|
69 |
model=model_vision,
|
70 |
messages=image_history,
|
71 |
-
max_tokens=
|
72 |
stream=True,
|
73 |
)
|
74 |
|
|
|
37 |
"role": "user",
|
38 |
"content": [
|
39 |
{"type": "text", "text": msg.content},
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
],
|
41 |
}
|
42 |
)
|
|
|
62 |
stream = client.chat.completions.create(
|
63 |
model=model_vision,
|
64 |
messages=image_history,
|
65 |
+
max_tokens=300,
|
66 |
stream=True,
|
67 |
)
|
68 |
|