orgo 0.0.15__tar.gz → 0.0.16__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {orgo-0.0.15 → orgo-0.0.16}/PKG-INFO +1 -1
- {orgo-0.0.15 → orgo-0.0.16}/pyproject.toml +1 -1
- {orgo-0.0.15 → orgo-0.0.16}/src/orgo/prompt.py +17 -1
- {orgo-0.0.15 → orgo-0.0.16}/src/orgo.egg-info/PKG-INFO +1 -1
- {orgo-0.0.15 → orgo-0.0.16}/README.md +0 -0
- {orgo-0.0.15 → orgo-0.0.16}/setup.cfg +0 -0
- {orgo-0.0.15 → orgo-0.0.16}/src/orgo/__init__.py +0 -0
- {orgo-0.0.15 → orgo-0.0.16}/src/orgo/api/__init__.py +0 -0
- {orgo-0.0.15 → orgo-0.0.16}/src/orgo/api/client.py +0 -0
- {orgo-0.0.15 → orgo-0.0.16}/src/orgo/computer.py +0 -0
- {orgo-0.0.15 → orgo-0.0.16}/src/orgo/project.py +0 -0
- {orgo-0.0.15 → orgo-0.0.16}/src/orgo/utils/__init__.py +0 -0
- {orgo-0.0.15 → orgo-0.0.16}/src/orgo/utils/auth.py +0 -0
- {orgo-0.0.15 → orgo-0.0.16}/src/orgo.egg-info/SOURCES.txt +0 -0
- {orgo-0.0.15 → orgo-0.0.16}/src/orgo.egg-info/dependency_links.txt +0 -0
- {orgo-0.0.15 → orgo-0.0.16}/src/orgo.egg-info/requires.txt +0 -0
- {orgo-0.0.15 → orgo-0.0.16}/src/orgo.egg-info/top_level.txt +0 -0
|
@@ -323,12 +323,28 @@ class AnthropicProvider:
|
|
|
323
323
|
response = api_client.get_screenshot(computer_id)
|
|
324
324
|
if callback:
|
|
325
325
|
callback("tool_result", {"type": "image", "action": "screenshot"})
|
|
326
|
+
|
|
327
|
+
# The API now returns a URL instead of base64 data
|
|
328
|
+
# We need to fetch the image from the URL and convert it to base64
|
|
329
|
+
image_url = response.get("image", "")
|
|
330
|
+
|
|
331
|
+
if not image_url:
|
|
332
|
+
raise ValueError("No image URL received from API")
|
|
333
|
+
|
|
334
|
+
# Fetch the image from the URL
|
|
335
|
+
import requests
|
|
336
|
+
img_response = requests.get(image_url)
|
|
337
|
+
img_response.raise_for_status()
|
|
338
|
+
|
|
339
|
+
# Convert to base64
|
|
340
|
+
image_base64 = base64.b64encode(img_response.content).decode('utf-8')
|
|
341
|
+
|
|
326
342
|
return {
|
|
327
343
|
"type": "image",
|
|
328
344
|
"source": {
|
|
329
345
|
"type": "base64",
|
|
330
346
|
"media_type": "image/jpeg",
|
|
331
|
-
"data":
|
|
347
|
+
"data": image_base64
|
|
332
348
|
}
|
|
333
349
|
}
|
|
334
350
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|