Skip to content
Merged
Changes from 1 commit
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
9 changes: 0 additions & 9 deletions portkey_ai/api_resources/apis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
"""
The following change is brought to handle the cases for pydantic v1 and v2
Including (import sys) and
sys.modules["openai"] = vendored_openai
"""
import sys
from ..._vendor import openai as vendored_openai
from .chat_complete import (
ChatCompletion,
AsyncChatCompletion,
Expand Down Expand Up @@ -139,8 +132,6 @@

from .collections import Collections, AsyncCollections

sys.modules["openai"] = vendored_openai # For pydantic v1 and v2 compatibility

__all__ = [
"Completion",
"AsyncCompletion",
Expand Down