Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed May 22, 2024
1 parent 75fcc34 commit 0d6fbc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/openai_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ def generate_chatgpt_response(
return openai_response.model_dump()["choices"][0]["message"]["content"]


def create_openai_client(context: BoltContext) -> OpenAI | AzureOpenAI:
def create_openai_client(context: BoltContext) -> Union[OpenAI, AzureOpenAI]:
if context.get("OPENAI_API_TYPE") == "azure":
return AzureOpenAI(
api_key=context.get("OPENAI_API_KEY"),
Expand Down

0 comments on commit 0d6fbc3

Please sign in to comment.