Skip to content

Commit

Permalink
Use public import for ChatCompletionStreamState (#398)
Browse files Browse the repository at this point in the history
* Bump openai req to 1.56.0

* Use public import for ChatCompletionStreamState
  • Loading branch information
jackmpcollins authored Jan 6, 2025
1 parent 635fabc commit fd0d03e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ requires-python = ">=3.10"
dependencies = [
"filetype>=1.2.0",
"logfire-api>=0.1.0",
"openai>=1.40.0",
"openai>=1.56.0",
"pydantic>=2.10.0",
"pydantic-settings>=2.0.0",
"typing-extensions>=4.5.0",
Expand Down
2 changes: 1 addition & 1 deletion src/magentic/chat_model/litellm_chat_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import Any, Literal, TypeVar, cast, overload

import openai
from openai.lib.streaming.chat._completions import ChatCompletionStreamState
from openai.lib.streaming.chat import ChatCompletionStreamState
from openai.types.chat import ChatCompletionNamedToolChoiceParam

from magentic._parsing import contains_string_type
Expand Down
2 changes: 1 addition & 1 deletion src/magentic/chat_model/openai_chat_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing import Any, Generic, Literal, TypeVar, cast, overload

import openai
from openai.lib.streaming.chat._completions import ChatCompletionStreamState
from openai.lib.streaming.chat import ChatCompletionStreamState
from openai.types.chat import (
ChatCompletionChunk,
ChatCompletionContentPartParam,
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fd0d03e

Please sign in to comment.