Skip to content

Commit

Permalink
refactor: organize renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
jschang19 committed Dec 19, 2023
1 parent 3dab78a commit 7a427d2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ChatGPT/include/ChatGPT.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ namespace OpenAI {
class ChatGPT {
public:
explicit ChatGPT(const std::string& token);
OpenAI::ChatCompletion askChatGPT(const std::string& role);
std::string askWhisper(const std::string& audio_path);
OpenAI::ChatCompletion askChatGPT(const std::string& role, bool isEnding);
std::vector< Message > prompts;
void Add_prompt(const Message& prompt);
void addPrompt(const Message& prompt);

private:
std::string m_token;
std::string m_link;

std::string PromptsToStringContent();
std::string formatPrompt(const Message& prompt, bool isLast, bool isEnding);
std::string promptsToStringContent(bool isEnding);
};
}

0 comments on commit 7a427d2

Please sign in to comment.