We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 88bdb23 + 10c93e8 commit c0ff5aeCopy full SHA for c0ff5ae
synthgenai/llm.py
@@ -232,6 +232,9 @@ def check_response_format(self) -> bool:
232
custom_llm_provider = None
233
if self.model.startswith("gpt") or self.model.startswith("claude"):
234
if "response_format" in get_supported_openai_params(
235
+ model=self.model,
236
+ custom_llm_provider=custom_llm_provider,
237
+ ) and supports_response_schema(
238
model=self.model, custom_llm_provider=custom_llm_provider
239
):
240
logger.info(f"JSON format is supported by the LLM model: {self.model}")
0 commit comments