File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- using System . ComponentModel ;
1+ using System . ComponentModel ;
22using System . Runtime . CompilerServices ;
33using System . Text . Json . Serialization ;
44
@@ -28,6 +28,8 @@ public class TranslateAPIConfig : INotifyPropertyChanged
2828 { "pt-BR" , "pt-BR" } ,
2929 { "tr-TR" , "tr-TR" } ,
3030 { "ar-SA" , "ar-SA" } ,
31+ { "vn-EN" , "vn-EN" } ,
32+ { "vi-US" , "vi-US" } ,
3133 } ;
3234
3335 public event PropertyChangedEventHandler ? PropertyChanged ;
@@ -88,17 +90,6 @@ public class Response
8890
8991 private string apiUrl = "http://localhost:11434" ;
9092
91- public int keep_alive = 600 ;
92-
93- public int Keep_alive
94- {
95- get => keep_alive ;
96- set
97- {
98- keep_alive = value ;
99- OnPropertyChanged ( "Keep_alive" ) ;
100- }
101- }
10293 public string ApiUrl
10394 {
10495 get => apiUrl ;
@@ -175,27 +166,6 @@ public string ApiKey
175166 }
176167 }
177168
178- public class LMStudioConfig : BaseLLMConfig
179- {
180- public class Response
181- {
182- public string model { get ; set ; }
183- public string output { get ; set ; }
184- }
185-
186- private string apiUrl = "http://localhost:1234/api/v1" ;
187-
188- public string ApiUrl
189- {
190- get => apiUrl ;
191- set
192- {
193- apiUrl = value ;
194- OnPropertyChanged ( "ApiUrl" ) ;
195- }
196- }
197- }
198-
199169 public class DeepLConfig : TranslateAPIConfig
200170 {
201171 [ JsonIgnore ]
You can’t perform that action at this time.
0 commit comments