File tree 7 files changed +38
-8
lines changed
7 files changed +38
-8
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2025 Bytedance, Inc. and its affiliates.
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ import { describe , it , expect } from 'vitest' ;
6
+ import { VLMProviderV2 } from './types' ;
7
+
8
+ describe ( 'VLMProviderV2' , ( ) => {
9
+ it ( 'should have correct values for each provider' , ( ) => {
10
+ const cases = [
11
+ [ VLMProviderV2 . ui_tars_1_0 , 'Hugging Face for UI-TARS-1.0' ] ,
12
+ [ VLMProviderV2 . ui_tars_1_5 , 'Hugging Face for UI-TARS-1.5' ] ,
13
+ [ VLMProviderV2 . doubao_1_5 , 'VolcEngine Ark for Doubao-1.5-UI-TARS' ] ,
14
+ ] ;
15
+
16
+ cases . forEach ( ( [ provider , expected ] ) => {
17
+ expect ( provider ) . toBe ( expected ) ;
18
+ } ) ;
19
+ } ) ;
20
+ it ( 'should have correct value for Doubao provider' , ( ) => {
21
+ expect ( VLMProviderV2 . doubao_1_5 ) . toBe (
22
+ 'VolcEngine Ark for Doubao-1.5-UI-TARS' ,
23
+ ) ;
24
+ } ) ;
25
+
26
+ it ( 'should contain exactly three providers' , ( ) => {
27
+ const providerCount = Object . keys ( VLMProviderV2 ) . length ;
28
+ expect ( providerCount ) . toBe ( 3 ) ;
29
+ } ) ;
30
+ } ) ;
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ export enum VlmProvider {
41
41
}
42
42
43
43
export enum VLMProviderV2 {
44
- ui_tars_1_0 = 'OpenAI compatible for UI-TARS-1.0' ,
45
- ui_tars_1_5 = 'OpenAI compatible for UI-TARS-1.5' ,
44
+ ui_tars_1_0 = 'Hugging Face for UI-TARS-1.0' ,
45
+ ui_tars_1_5 = 'Hugging Face for UI-TARS-1.5' ,
46
46
doubao_1_5 = 'VolcEngine Ark for Doubao-1.5-UI-TARS' ,
47
47
}
48
48
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ graph TD
65
65
``` yaml
66
66
name : UI TARS Desktop Example Preset
67
67
language : en
68
- vlmProvider : OpenAI compatible for UI-TARS-1.5
68
+ vlmProvider : Hugging Face for UI-TARS-1.5
69
69
vlmBaseUrl : https://your-endpoint.huggingface.cloud/v1
70
70
vlmApiKey : your_api_key
71
71
vlmModelName : your_model_name
Original file line number Diff line number Diff line change @@ -63,14 +63,14 @@ You can download the [latest release](https://github.com/bytedance/UI-TARS-deskt
63
63
64
64
` ` ` yaml
65
65
Language: en
66
- VLM Provider: OpenAI compatible for UI-TARS-1.5
66
+ VLM Provider: Hugging Face for UI-TARS-1.5
67
67
VLM Base URL: https:xxx
68
68
VLM API KEY: hf_xxx
69
69
VLM Model Name: xxx
70
70
```
71
71
72
72
> [ !NOTE]
73
- > For VLM Provider, make sure to select "** OpenAI compatible for UI-TARS-1.5** " to ensure proper VLM Action parsing.
73
+ > For VLM Provider, make sure to select "** Hugging Face for UI-TARS-1.5** " to ensure proper VLM Action parsing.
74
74
75
75
<img src =" ../apps/ui-tars/images/quick_start/huggingface_setting.png " width =" 500px " />
76
76
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ Select the backend VLM provider to ensure more accurate execution of GUI actions
41
41
| Property | Details |
42
42
| ----------- | ---------------------- |
43
43
| ** Type** | ` string ` |
44
- | ** Options** | - ` OpenAI compatible for UI-TARS-1.0` <br /> - ` OpenAI compatible for UI-TARS-1.5` <br /> - ` VolcEngine Ark for Doubao-1.5-UI-TARS ` |
44
+ | ** Options** | - ` Hugging Face for UI-TARS-1.0` <br /> - ` Hugging Face for UI-TARS-1.5` <br /> - ` VolcEngine Ark for Doubao-1.5-UI-TARS ` |
45
45
| ** Required** | ` true ` |
46
46
47
47
> [ !NOTE]
@@ -100,7 +100,7 @@ In the HuggingFace example in [UI-TARS/README_deploy.md](https://github.com/byte
100
100
101
101
``` yaml
102
102
Language : en
103
- VLM Provider : OpenAI compatible for UI-TARS-1.5
103
+ VLM Provider : Hugging Face for UI-TARS-1.5
104
104
VLM Base URL : https:xxx
105
105
VLM API KEY : hf_xxx
106
106
VLM Model Name : tgi
Original file line number Diff line number Diff line change 1
1
name : UI TARS Desktop Example Preset
2
2
language : en
3
- vlmProvider : OpenAI compatible for UI-TARS-1.5
3
+ vlmProvider : Hugging Face for UI-TARS-1.5
4
4
vlmBaseUrl : https://your-endpoint.huggingface.cloud/v1
5
5
vlmApiKey : your_api_key
6
6
vlmModelName : your_model_name
You can’t perform that action at this time.
0 commit comments