#ifndef GPTJ_H #define GPTJ_H #include #include #include #include "llmodel.h" class GPTJPrivate; class GPTJ : public LLModel { public: GPTJ(); ~GPTJ(); bool loadModel(const std::string &modelPath) override; bool loadModel(const std::string &modelPath, std::istream &fin) override; bool isModelLoaded() const override; void prompt(const std::string &prompt, std::function response, PromptContext &ctx) override; void setThreadCount(int32_t n_threads) override; int32_t threadCount() override; private: GPTJPrivate *d_ptr; }; #endif // GPTJ_H