Skip to content

Commit

Permalink
Raise ValueError if .with_structured_output is called with an unsuppo…
Browse files Browse the repository at this point in the history
…rted model
  • Loading branch information
GlennViroux committed Jan 22, 2025
1 parent 784445c commit dc3b079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/aws/langchain_aws/chat_models/bedrock.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ class AnswerWithJustification(BaseModel):
schema, include_raw=include_raw, **kwargs
)
if "claude-3" not in self._get_model():
ValueError(
raise ValueError(
f"Structured output is not supported for model {self._get_model()}"
)

Expand Down

0 comments on commit dc3b079

Please sign in to comment.