Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix uitars oai provider

Dillon DuPont3608491419be
diff --git a/libs/agent/agent/providers/uitars/clients/oaicompat.py b/libs/agent/agent/providers/uitars/clients/oaicompat.py
index 4567360b0f..963fb05b69 100644
--- a/libs/agent/agent/providers/uitars/clients/oaicompat.py
+++ b/libs/agent/agent/providers/uitars/clients/oaicompat.py
@@ -94,8 +94,15 @@ class OAICompatClient(BaseUITarsClient):
"""
headers = {"Content-Type": "application/json", "Authorization": f"Bearer {self.api_key}"}
- final_messages = [{"role": "system", "content": system}]
-
+ final_messages = [
+ {
+ "role": "system",
+ "content": [
+ { "type": "text", "text": system }
+ ]
+ }
+ ]
+
# Process messages
for item in messages:
if isinstance(item, dict):