Skip to content

Commit

Permalink
docs: remove the extra period in docstring (langchain-ai#25414)
Browse files Browse the repository at this point in the history
Remove the period after the hyperlink in the docstring of
BaseChatOpenAI.with_structured_output.

I have repeatedly copied the extra period at the end of the hyperlink,
which results in a "Page not found" page when pasted into the browser.
  • Loading branch information
gbaian10 authored and olgamurraft committed Aug 16, 2024
1 parent 16f5925 commit 46314af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/partners/openai/langchain_openai/chat_models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ def with_structured_output(
API: https://platform.openai.com/docs/guides/function-calling
- "json_schema":
Uses OpenAI's Structured Output API:
https://platform.openai.com/docs/guides/structured-outputs.
https://platform.openai.com/docs/guides/structured-outputs
Supported for "gpt-4o-mini", "gpt-4o-2024-08-06", and later
models.
- "json_mode":
Expand Down Expand Up @@ -1178,7 +1178,7 @@ def with_structured_output(
- True:
Model output is guaranteed to exactly match the schema.
The input schema will also be validated according to
https://platform.openai.com/docs/guides/structured-outputs/supported-schemas.
https://platform.openai.com/docs/guides/structured-outputs/supported-schemas
- False:
Input schema will not be validated and model output will not be
validated.
Expand Down

0 comments on commit 46314af

Please sign in to comment.