basic code to get list of models and abstract requests more
This commit is contained in:
parent
708eb51755
commit
dfb077be70
4 changed files with 115 additions and 23 deletions
|
@ -6,9 +6,13 @@
|
|||
#include <memory.h>
|
||||
|
||||
#include <iostream>
|
||||
#include <ranges>
|
||||
#include <algorithm>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <regex>
|
||||
|
||||
|
||||
|
||||
|
@ -51,10 +55,18 @@ public:
|
|||
|
||||
Conversation(BHandler* replyTo);
|
||||
virtual ~Conversation() ;
|
||||
virtual void ask(const std::string& prompt);
|
||||
virtual void MessageReceived(BMessage *msg);
|
||||
|
||||
|
||||
std::vector<std::string> FilterTextModels(const json& modelsJson);
|
||||
|
||||
void ask(const std::string& prompt);
|
||||
void loadModels();
|
||||
void PrintAsJsonArray(const std::vector<std::string>& models) ;
|
||||
|
||||
private:
|
||||
|
||||
std::string buildBearerKey();
|
||||
|
||||
|
||||
void sendReply(BMessage message);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue