Force Claude 3 models to output JSON object and parse it more reliably (#293)

Co-authored-by: otmane <otmanebenazzou.pro@gmail.com>
This commit is contained in:
Kerem Yilmaz
2024-05-10 00:51:12 -07:00
committed by GitHub
parent 49baf471ab
commit cf01e81ba2
4 changed files with 62 additions and 18 deletions

View File

@@ -10,6 +10,7 @@ class LLMConfig:
model_name: str
required_env_vars: list[str]
supports_vision: bool
add_assistant_prefix: bool
def get_missing_env_vars(self) -> list[str]:
missing_env_vars = []