Skip to content

Commit 98bf835

Browse files
committed
fix: similarity_cos_string dead loop
1 parent f2e0e74 commit 98bf835

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func _ready():
4242
3. Generate text starting from "Hello"
4343
```
4444
var generated_text = gdllama.generate_text_simple("Hello")
45-
print(hello)
45+
print(generated_text)
4646
```
4747
4. Text generation is slow, you may want to call `gdllama.run_generate_text("Hello", "", "")` to run the generation in background, then handle the `generate_text_updated` or `generate_text_finished` signals
4848

src/gdembedding.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ float GDEmbedding::similarity_cos_string(String s1, String s2) {
282282

283283
func_mutex->unlock();
284284

285-
float similarity = similarity_cos_string(s1, s2);
285+
float similarity = similarity_cos_string_internal(s1, s2);
286286

287287
glog_verbose("similarity_cos_string -- done");
288288

0 commit comments

Comments
 (0)