Skip to content

Commit 5ddec56

Browse files
committed
Remove image opening from call_ollama_llava
1 parent 6bc5994 commit 5ddec56

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

operate/models/apis.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,9 +479,6 @@ def call_ollama_llava(messages):
479479
screenshot_filename = os.path.join(screenshots_dir, "screenshot.png")
480480
# Call the function to capture the screen with the cursor
481481
capture_screen_with_cursor(screenshot_filename)
482-
483-
with open(screenshot_filename, "rb") as img_file:
484-
img_base64 = base64.b64encode(img_file.read()).decode("utf-8")
485482

486483
if len(messages) == 1:
487484
user_prompt = get_user_first_message_prompt()

0 commit comments

Comments
 (0)