cua-agent 0.1.39__py3-none-any.whl → 0.1.41__py3-none-any.whl
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.
Potentially problematic release.
This version of cua-agent might be problematic. Click here for more details.
- agent/ui/gradio/app.py +14 -7
- {cua_agent-0.1.39.dist-info → cua_agent-0.1.41.dist-info}/METADATA +1 -1
- {cua_agent-0.1.39.dist-info → cua_agent-0.1.41.dist-info}/RECORD +5 -5
- {cua_agent-0.1.39.dist-info → cua_agent-0.1.41.dist-info}/WHEEL +0 -0
- {cua_agent-0.1.39.dist-info → cua_agent-0.1.41.dist-info}/entry_points.txt +0 -0
agent/ui/gradio/app.py
CHANGED
|
@@ -818,6 +818,7 @@ if __name__ == "__main__":
|
|
|
818
818
|
# Custom model fields visibility
|
|
819
819
|
gr.update(visible=is_any_custom), # Custom model name always visible for any custom option
|
|
820
820
|
gr.update(visible=is_custom_openai_api), # Provider base URL only for OpenAI compatible API
|
|
821
|
+
gr.update(visible=is_custom_openai_api), # Provider API key only for OpenAI compatible API
|
|
821
822
|
# Update the hidden model_choice field
|
|
822
823
|
gr.update(value=model_choice_value)
|
|
823
824
|
]
|
|
@@ -1017,12 +1018,18 @@ if __name__ == "__main__":
|
|
|
1017
1018
|
model_string_to_analyze = model_choice_value # Use the full UI string initially
|
|
1018
1019
|
|
|
1019
1020
|
try:
|
|
1020
|
-
# Special case for UITARS - use MLXVLM provider
|
|
1021
|
+
# Special case for UITARS - use MLXVLM provider or OAICOMPAT for custom
|
|
1021
1022
|
if agent_loop_choice == "UITARS":
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1023
|
+
if is_custom_openai_api:
|
|
1024
|
+
provider = LLMProvider.OAICOMPAT
|
|
1025
|
+
cleaned_model_name_from_func = custom_model_value
|
|
1026
|
+
agent_loop_type = AgentLoop.UITARS
|
|
1027
|
+
print(f"Using OAICOMPAT provider for custom UITARS model: {custom_model_value}")
|
|
1028
|
+
else:
|
|
1029
|
+
provider = LLMProvider.MLXVLM
|
|
1030
|
+
cleaned_model_name_from_func = model_string_to_analyze
|
|
1031
|
+
agent_loop_type = AgentLoop.UITARS
|
|
1032
|
+
print(f"Using MLXVLM provider for UITARS model: {model_string_to_analyze}")
|
|
1026
1033
|
# Special case for Ollama custom model
|
|
1027
1034
|
elif is_custom_ollama and agent_loop_choice == "OMNI":
|
|
1028
1035
|
provider = LLMProvider.OLLAMA
|
|
@@ -1045,8 +1052,8 @@ if __name__ == "__main__":
|
|
|
1045
1052
|
else cleaned_model_name_from_func
|
|
1046
1053
|
)
|
|
1047
1054
|
|
|
1048
|
-
# Determine if OAICOMPAT should be used (
|
|
1049
|
-
is_oaicompat = is_custom_openai_api
|
|
1055
|
+
# Determine if OAICOMPAT should be used (for OpenAI compatible API custom model)
|
|
1056
|
+
is_oaicompat = is_custom_openai_api
|
|
1050
1057
|
|
|
1051
1058
|
# Get API key based on provider determined by get_provider_and_model
|
|
1052
1059
|
if is_oaicompat and custom_api_key:
|
|
@@ -79,8 +79,8 @@ agent/providers/uitars/utils.py,sha256=493STTEEJcVhVbQgR0e8rNTI1DjkxUx8IgIv3wkJ1
|
|
|
79
79
|
agent/telemetry.py,sha256=pVGxbj0ewnvq4EGj28CydN4a1iOfvZR_XKL3vIOqhOM,390
|
|
80
80
|
agent/ui/__init__.py,sha256=ohhxJLBin6k1hl5sKcmBST8mgh23WXgAXz3pN4f470E,45
|
|
81
81
|
agent/ui/gradio/__init__.py,sha256=ANKZhv1HqsLheWbLVBlyRQ7Q5qGeXuPi5jDs8vu-ZMo,579
|
|
82
|
-
agent/ui/gradio/app.py,sha256
|
|
83
|
-
cua_agent-0.1.
|
|
84
|
-
cua_agent-0.1.
|
|
85
|
-
cua_agent-0.1.
|
|
86
|
-
cua_agent-0.1.
|
|
82
|
+
agent/ui/gradio/app.py,sha256=-ccsE6LrXFfxnPeMlEqm49QGvdjCgm-l6TudZZEM9r0,68241
|
|
83
|
+
cua_agent-0.1.41.dist-info/METADATA,sha256=4Zoo2A6D9Iute9eQcTaFLqcp0A9ca7A6JGsNgz-BEig,12689
|
|
84
|
+
cua_agent-0.1.41.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
|
85
|
+
cua_agent-0.1.41.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
|
86
|
+
cua_agent-0.1.41.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|