Skip to content

Commit

Permalink
handle name changes in helicone
Browse files Browse the repository at this point in the history
  • Loading branch information
ProducerMatt committed Aug 19, 2023
1 parent ba83761 commit 04d0cb2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion api/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
from utilities import utilities, Utilities
from utilities import discordutils
if use_helicone:
from helicone import openai
try:
from helicone import openai
except ImportError:
from helicone import openai_proxy as openai
else:
import openai
import discord
Expand Down
5 changes: 4 additions & 1 deletion modules/chatgpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
from servicemodules.serviceConstants import service_italics_marks, default_italics_mark

if use_helicone:
from helicone import openai
try:
from helicone import openai
except ImportError:
from helicone import openai_proxy as openai
else:
import openai

Expand Down

0 comments on commit 04d0cb2

Please sign in to comment.