Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions ollama/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,6 @@ def generate(
"""
Create a response using the requested model.

Raises `RequestError` if a model is not provided.

Raises `ResponseError` if the request could not be fulfilled.

Returns `GenerateResponse` if `stream` is `False`, otherwise returns a `GenerateResponse` generator.
Expand Down Expand Up @@ -382,8 +380,6 @@ def add_two_numbers(a: int, b: int) -> int:

client.chat(model='llama3.2', tools=[add_two_numbers], messages=[...])

Raises `RequestError` if a model is not provided.

Raises `ResponseError` if the request could not be fulfilled.

Returns `ChatResponse` if `stream` is `False`, otherwise returns a `ChatResponse` generator.
Expand Down Expand Up @@ -935,8 +931,6 @@ async def generate(
"""
Create a response using the requested model.

Raises `RequestError` if a model is not provided.

Raises `ResponseError` if the request could not be fulfilled.

Returns `GenerateResponse` if `stream` is `False`, otherwise returns an asynchronous `GenerateResponse` generator.
Expand Down Expand Up @@ -1041,8 +1035,6 @@ def add_two_numbers(a: int, b: int) -> int:

await client.chat(model='llama3.2', tools=[add_two_numbers], messages=[...])

Raises `RequestError` if a model is not provided.

Raises `ResponseError` if the request could not be fulfilled.

Returns `ChatResponse` if `stream` is `False`, otherwise returns an asynchronous `ChatResponse` generator.
Expand Down