Skip to content

Commit 3a36f6a

Browse files
committed
chore: flake python errors
1 parent eb6bd0f commit 3a36f6a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

posthog/ai/providers/openai/openai.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
import time
2-
from typing import Any, Dict, Optional, Union, AsyncGenerator
1+
from typing import Any, Dict, Optional, Union
32

43
try:
54
import openai
65
except ImportError:
76
raise ModuleNotFoundError("Please install OpenAI to use this feature: 'pip install openai'")
87

98
from posthog.client import Client as PostHogClient
10-
from posthog.ai.utils import get_model_params, format_response, process_sync_streaming_response, track_usage
9+
from posthog.ai.utils import process_sync_streaming_response, track_usage
1110

1211

1312
class OpenAI:

posthog/ai/providers/openai/openai_async.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
import time
2-
from typing import Any, Dict, Optional, Union, AsyncGenerator
1+
from typing import Any, Dict, Optional, Union
32

43
try:
54
import openai
65
except ImportError:
76
raise ModuleNotFoundError("Please install OpenAI to use this feature: 'pip install openai'")
87

98
from posthog.client import Client as PostHogClient
10-
from posthog.ai.utils import get_model_params, format_response, process_async_streaming_response, track_usage_async
9+
from posthog.ai.utils import process_async_streaming_response, track_usage_async
1110

1211

1312
class AsyncOpenAI:

0 commit comments

Comments
 (0)