Skip to content

Commit

Permalink
Merge pull request #331 from parea-ai/fix-openai-v0
Browse files Browse the repository at this point in the history
fix: typo error
  • Loading branch information
joschkabraun committed Jan 17, 2024
2 parents 5b9d21f + f5e262d commit 2f6b04b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions parea/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from attrs import asdict, define, field
from cattrs import structure
from dotenv import load_dotenv
from openai import OpenAI

from parea.api_client import HTTPClient
from parea.cache import InMemoryCache, RedisCache
Expand Down Expand Up @@ -51,7 +50,8 @@ def __attrs_post_init__(self):
parea_logger.set_redis_cache(self.cache)
_init_parea_wrapper(logger_all_possible, self.cache)

def wrap_openai_client(self, client: OpenAI) -> None:
def wrap_openai_client(self, client: "OpenAI") -> None:
"""Only necessary for instance client with OpenAI version >= 1.0.0"""
OpenAIWrapper().init(log=logger_all_possible, cache=self.cache, module_client=client)

def completion(self, data: Completion) -> CompletionResponse:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "parea-ai"
packages = [{ include = "parea" }]
version = "0.2.33"
version = "0.2.34"
description = "Parea python sdk"
readme = "README.md"
authors = ["joel-parea-ai <[email protected]>"]
Expand Down
6 changes: 0 additions & 6 deletions requirements.txt

This file was deleted.

0 comments on commit 2f6b04b

Please sign in to comment.