Skip to content

Commit

Permalink
change import
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin committed Jan 29, 2024
1 parent 319fbb1 commit 2ca7cd4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions posthog/hogql/ai.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from typing import TYPE_CHECKING, Optional
import openai
from openai.types.chat import ChatCompletionMessageParam
from posthog.event_usage import report_user_action
from posthog.hogql.context import HogQLContext
from posthog.hogql.errors import HogQLException
Expand Down Expand Up @@ -69,7 +68,7 @@ def write_sql_from_prompt(prompt: str, *, current_query: Optional[str] = None, t
)
)
instance_region = get_instance_region() or "HOBBY"
messages: list[ChatCompletionMessageParam] = [
messages: list[openai.types.chat.ChatCompletionMessageParam] = [
{"role": "system", "content": IDENTITY_MESSAGE},
{
"role": "system",
Expand Down

0 comments on commit 2ca7cd4

Please sign in to comment.