Skip to content

Commit

Permalink
fix: fix issue #347 (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
cxjava committed Oct 30, 2023
1 parent 4d6d820 commit a05142d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xiaogpt/bot/chatgptapi_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async def ask_stream(self, query, **options):
ms.append({"role": "user", "content": f"{query}"})
kwargs = {"model": "gpt-3.5-turbo", **options}
if openai.api_type == "azure":
kwargs["deployment_id"] = self.deployment_id
kwargs["deployment_id"] = self.default_options["engine"]
try:
completion = await openai.ChatCompletion.acreate(
messages=ms, stream=True, **kwargs
Expand Down

0 comments on commit a05142d

Please sign in to comment.