diff --git a/mealie/services/openai/openai.py b/mealie/services/openai/openai.py index 09c391d56..5d74d9309 100644 --- a/mealie/services/openai/openai.py +++ b/mealie/services/openai/openai.py @@ -7,7 +7,7 @@ from pathlib import Path from textwrap import dedent from openai import NOT_GIVEN, AsyncOpenAI -from openai.resources.chat.completions import ChatCompletion +from openai.types.chat import ChatCompletion from pydantic import BaseModel, field_validator from mealie.core.config import get_app_settings diff --git a/poetry.lock b/poetry.lock index d4b8767f8..d343d96c0 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1653,14 +1653,14 @@ signedtoken = ["cryptography (>=3.0.0)", "pyjwt (>=2.0.0,<3)"] [[package]] name = "openai" -version = "1.61.1" +version = "1.63.0" description = "The official Python library for the openai API" optional = false python-versions = ">=3.8" groups = ["main"] files = [ - {file = "openai-1.61.1-py3-none-any.whl", hash = "sha256:72b0826240ce26026ac2cd17951691f046e5be82ad122d20a8e1b30ca18bd11e"}, - {file = "openai-1.61.1.tar.gz", hash = "sha256:ce1851507218209961f89f3520e06726c0aa7d0512386f0f977e3ac3e4f2472e"}, + {file = "openai-1.63.0-py3-none-any.whl", hash = "sha256:a664dfc78f0a05ca46c3e21f344f840cf6bf7174f13cfa9de214ed28bfca1dda"}, + {file = "openai-1.63.0.tar.gz", hash = "sha256:597d7a1b35b113e5a09fcb953bdb1eef44f404a39985f3d7573b3ab09221fd66"}, ] [package.dependencies] @@ -3554,4 +3554,4 @@ pgsql = ["psycopg2-binary"] [metadata] lock-version = "2.1" python-versions = "^3.12" -content-hash = "9b9bb87e23f58b14a1d010aeca8093f52df30d794ee5a5028f853dbb8ba883f6" +content-hash = "3442bd32ecbf82e5d49975511c3b01b0baa877712d9c786b12cfb5dfdda0c08f" diff --git a/pyproject.toml b/pyproject.toml index 6085399cf..6447766ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ paho-mqtt = "^1.6.1" pydantic-settings = "^2.1.0" pillow-heif = "^0.21.0" pyjwt = "^2.8.0" -openai = "^1.27.0" +openai = "^1.63.0" typing-extensions = "^4.12.2" itsdangerous = "^2.2.0"