Skip to content

Commit

Permalink
Fix the openai choices model attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Flagro committed Oct 26, 2024
1 parent 7ce7c45 commit bbe48ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/rp_bot/ai_agent/ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ async def get_reply(self, user_input: str, system_prompt: str) -> str:
stream=False,
temperature=self.ai_config.TextGeneration.temperature,
)
return response.choices[0].delta.content
return response.choices[0].message.content

async def get_streaming_reply(
self, user_input: str, system_prompt: str
Expand Down

0 comments on commit bbe48ca

Please sign in to comment.