27 lines
396 B
C++
27 lines
396 B
C++
#include "Archimedes.h"
|
|
|
|
#include <curl/curl.h>
|
|
#include <nlohmann/json.hpp>
|
|
|
|
class Ollama : public Archimedes::Module {
|
|
|
|
public:
|
|
Ollama(Archimedes::App*, void*);
|
|
|
|
Ollama() { name = "Ollama"; }
|
|
~Ollama();
|
|
|
|
void onLoad();
|
|
|
|
void run();
|
|
|
|
private:
|
|
CURL* curl;
|
|
|
|
};
|
|
|
|
#ifdef OLLAMA_DYNAMIC
|
|
#define MODULE_TYPE Ollama
|
|
#include "endModule.h"
|
|
#endif
|