@@ -27,6 +27,14 @@ void GDLlava::_bind_methods() {
27
27
ClassDB::bind_method (D_METHOD (" set_temperature" , " p_temperature" ), &GDLlava::set_temperature);
28
28
ClassDB::add_property (" GDLlava" , PropertyInfo (Variant::FLOAT, " temperature" , PROPERTY_HINT_NONE), " set_temperature" , " get_temperature" );
29
29
30
+ ClassDB::bind_method (D_METHOD (" get_n_threads" ), &GDLlava::get_n_threads);
31
+ ClassDB::bind_method (D_METHOD (" set_n_threads" , " p_n_threads" ), &GDLlava::set_n_threads);
32
+ ClassDB::add_property (" GDLlava" , PropertyInfo (Variant::INT, " n_threads" , PROPERTY_HINT_NONE), " set_n_threads" , " get_n_threads" );
33
+
34
+ ClassDB::bind_method (D_METHOD (" get_escape" ), &GDLlava::get_escape);
35
+ ClassDB::bind_method (D_METHOD (" set_escape" , " p_escape" ), &GDLlava::set_escape);
36
+ ClassDB::add_property (" GDLlava" , PropertyInfo (Variant::BOOL, " escape" , PROPERTY_HINT_NONE), " set_escape" , " get_escape" );
37
+
30
38
ClassDB::bind_method (D_METHOD (" get_n_batch" ), &GDLlava::get_n_batch);
31
39
ClassDB::bind_method (D_METHOD (" set_n_batch" , " p_n_batch" ), &GDLlava::set_n_batch);
32
40
ClassDB::add_property (" GDLlava" , PropertyInfo (Variant::INT, " n_batch" , PROPERTY_HINT_NONE), " set_n_batch" , " get_n_batch" );
@@ -140,6 +148,22 @@ void GDLlava::set_temperature(const float p_temperature) {
140
148
params.sparams .temp = p_temperature;
141
149
}
142
150
151
+ int32_t GDLlava::get_n_threads () const {
152
+ return params.n_threads ;
153
+ }
154
+
155
+ void GDLlava::set_n_threads (const int32_t p_n_threads) {
156
+ params.n_threads = p_n_threads;
157
+ }
158
+
159
+ bool GDLlava::get_escape () const {
160
+ return params.escape ;
161
+ }
162
+
163
+ void GDLlava::set_escape (const bool p_escape) {
164
+ params.escape = p_escape;
165
+ }
166
+
143
167
int32_t GDLlava::get_n_batch () const {
144
168
return params.n_batch ;
145
169
}
0 commit comments