Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.9.18
3.10
4 changes: 1 addition & 3 deletions examples/tool_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ def run(stream: bool = False) -> None:
)
tool_call["function"]["name"] = chunk.event.delta.function.name
if chunk.event.delta.function.arguments:
tool_call["function"][
"arguments"
] += chunk.event.delta.function.arguments
tool_call["function"]["arguments"] += chunk.event.delta.function.arguments
print(chunk.event.delta.function.arguments, end="", flush=True)

if chunk.event.stop_reason is not None:
Expand Down
7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ dependencies = [
"sniffio",
]

requires-python = ">= 3.9"
requires-python = ">= 3.10"
classifiers = [
"Typing :: Typed",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand Down Expand Up @@ -143,7 +142,7 @@ filterwarnings = [
# there are a couple of flags that are still disabled by
# default in strict mode as they are experimental and niche.
typeCheckingMode = "strict"
pythonVersion = "3.9"
pythonVersion = "3.10"

exclude = [
"_dev",
Expand Down Expand Up @@ -213,7 +212,7 @@ ignore_missing_imports = true
[tool.ruff]
line-length = 120
output-format = "grouped"
target-version = "py38"
target-version = "py310"

[tool.ruff.format]
docstring-code-format = true
Expand Down