Skip to content

Commit

Permalink
fix: change wrong terminal flush
Browse files Browse the repository at this point in the history
  • Loading branch information
jschang19 committed Dec 19, 2023
1 parent d20f7e5 commit d5c9d55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ int main(){
OpenAI::Message prompt = game.generateStoryPrompt(i);
game.addPrompt(chatGpt, prompt, false);
auto chatCompletion = game.sendToChatGPT(chatGpt, false);
game.parseGPTResponse(chatCompletion, story_id);
std::cout << "\033[2J\033[H";


game.parseGPTResponse(chatCompletion, story_id);
game.printOptions(story_id);
std::cout<<std::endl;

Expand Down

0 comments on commit d5c9d55

Please sign in to comment.