Skip to content

Commit

Permalink
fix: fix issue yihong0618#347
Browse files Browse the repository at this point in the history
  • Loading branch information
cxjava authored Oct 30, 2023
1 parent 4d6d820 commit f765315
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 f765315

Please sign in to comment.