mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
fix: formatting issues in docstrings (#32265)
Ensures proper reStructuredText formatting by adding the required blank line before closing docstring quotes, which resolves the "Block quote ends without a blank line; unexpected unindent" warning.
This commit is contained in:
@@ -418,7 +418,6 @@ class ChatOllama(BaseChatModel):
|
||||
|
||||
AIMessage(content='The word "strawberry" contains **three \'r\' letters**. Here\'s a breakdown for clarity:\n\n- The spelling of "strawberry" has two parts ... be 3.\n\nTo be thorough, let\'s confirm with an online source or common knowledge.\n\nI can recall that "strawberry" has: s-t-r-a-w-b-e-r-r-y — yes, three r\'s.\n\nPerhaps it\'s misspelled by some, but standard is correct.\n\nSo I think the response should be 3.\n'}, response_metadata={'model': 'deepseek-r1:8b', 'created_at': '2025-07-08T19:33:55.891269Z', 'done': True, 'done_reason': 'stop', 'total_duration': 98232561292, 'load_duration': 28036792, 'prompt_eval_count': 10, 'prompt_eval_duration': 40171834, 'eval_count': 3615, 'eval_duration': 98163832416, 'model_name': 'deepseek-r1:8b'}, id='run--18f8269f-6a35-4a7c-826d-b89d52c753b3-0', usage_metadata={'input_tokens': 10, 'output_tokens': 3615, 'total_tokens': 3625})
|
||||
|
||||
|
||||
""" # noqa: E501, pylint: disable=line-too-long
|
||||
|
||||
model: str
|
||||
@@ -1282,6 +1281,7 @@ class ChatOllama(BaseChatModel):
|
||||
# 'parsed': AnswerWithJustification(answer='They are both the same weight.', justification='Both a pound of bricks and a pound of feathers weigh one pound. The difference lies in the volume and density of the materials, not the weight.'),
|
||||
# 'parsing_error': None
|
||||
# }
|
||||
|
||||
""" # noqa: E501, D301
|
||||
_ = kwargs.pop("strict", None)
|
||||
if kwargs:
|
||||
|
||||
@@ -122,6 +122,7 @@ class OllamaEmbeddings(BaseModel, Embeddings):
|
||||
.. code-block:: python
|
||||
|
||||
[-0.009100092574954033, 0.005071679595857859, -0.0029193938244134188]
|
||||
|
||||
""" # noqa: E501
|
||||
|
||||
model: str
|
||||
|
||||
@@ -33,6 +33,7 @@ class OllamaLLM(BaseLLM):
|
||||
|
||||
model = OllamaLLM(model="llama3")
|
||||
print(model.invoke("Come up with 10 names for a song about parrots"))
|
||||
|
||||
"""
|
||||
|
||||
model: str
|
||||
|
||||
Reference in New Issue
Block a user