dmkilday / GameMaster-GPT

GameMasterGPT is an exciting new open-source project aimed at revolutionizing the world of role-playing games (RPGs) by introducing an AI-powered Game Master. With the power of OpenAI's cutting-edge language model, this project enables the creation and facilitation of immersive RPG adventures like never before.
GNU General Public License v3.0
5 stars 1 forks source link

Bug in invoke_gm function: Chat Completion response structure not as expected (crash) #23

Closed dmkilday closed 1 year ago

dmkilday commented 1 year ago

Here is the error from gm-gpt.py. It looks like ...finish_reason is not in the Chat Completion response.

File "/home/dmkilday/code/GameMaster-GPT/chat.py", line 37, in is_function_call finish_reason = completion.choices[0].finish_reason

This doesn't happen every time...intermittent issue.