mirror of
https://github.com/trycua/computer.git
synced 2026-01-05 04:50:08 -06:00
fix uitars oai provider
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user