hallucination with log probs (#281)

* first init

* fix

* fix test

* new implemenetation

* fix bug

* fix bug

* fix bug

* address issue

* address issues

* address comments

* fix test

* fix

* move constatns

* remove consts
This commit is contained in:
CTran 2024-11-27 15:17:02 -08:00 committed by GitHub
parent f5cdafb7c8
commit cadd3cdaf9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 1269 additions and 1 deletions

View file

@ -134,4 +134,4 @@ class ArchFunctionHandler:
fixed_str += opening_bracket[unmatched_opening]
# Attempt to parse the corrected string to ensure its valid JSON
return fixed_str
return fixed_str.replace("'", '"')