Skip to content

Commit

Permalink
Handle optional import
Browse files Browse the repository at this point in the history
  • Loading branch information
riedgar-ms committed May 3, 2024
1 parent cdf679c commit 4281d7f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion guidance/models/_azureai_studio.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
import urllib.parse

import diskcache as dc
import openai
import platformdirs
import requests

from ._model import Chat
from ._grammarless import GrammarlessEngine, Grammarless

try:
import openai
except ImportError:
openai = None

class AzureAIStudioChatEngine(GrammarlessEngine):
def __init__(
Expand Down

0 comments on commit 4281d7f

Please sign in to comment.