update to rmmi
This commit is contained in:
parent
55e3a8a6f8
commit
301900c507
@ -37,7 +37,7 @@ SOLANA_PLUGIN_EXPORT uint32_t solana_plugin_start(struct SolanaAPI* solana_api)
|
|||||||
auto* completion = PLUG_RESOLVE_INSTANCE(TextCompletionI);
|
auto* completion = PLUG_RESOLVE_INSTANCE(TextCompletionI);
|
||||||
auto* conf = PLUG_RESOLVE_INSTANCE(ConfigModelI);
|
auto* conf = PLUG_RESOLVE_INSTANCE(ConfigModelI);
|
||||||
auto* cr = PLUG_RESOLVE_INSTANCE_VERSIONED(Contact3Registry, "1");
|
auto* cr = PLUG_RESOLVE_INSTANCE_VERSIONED(Contact3Registry, "1");
|
||||||
auto* rmm = PLUG_RESOLVE_INSTANCE(RegistryMessageModel);
|
auto* rmm = PLUG_RESOLVE_INSTANCE(RegistryMessageModelI);
|
||||||
auto* mcd = PLUG_RESOLVE_INSTANCE(MessageCommandDispatcher);
|
auto* mcd = PLUG_RESOLVE_INSTANCE(MessageCommandDispatcher);
|
||||||
|
|
||||||
// static store, could be anywhere tho
|
// static store, could be anywhere tho
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
struct MessagePromptBuilder {
|
struct MessagePromptBuilder {
|
||||||
Contact3Registry& _cr;
|
Contact3Registry& _cr;
|
||||||
const Contact3 _c;
|
const Contact3 _c;
|
||||||
RegistryMessageModel& _rmm;
|
RegistryMessageModelI& _rmm;
|
||||||
|
|
||||||
// lookup table, string_view since no name-components are changed
|
// lookup table, string_view since no name-components are changed
|
||||||
entt::dense_map<Contact3, std::string_view> names;
|
entt::dense_map<Contact3, std::string_view> names;
|
||||||
|
@ -138,7 +138,7 @@ RPBot::RPBot(
|
|||||||
TextCompletionI& completion,
|
TextCompletionI& completion,
|
||||||
ConfigModelI& conf,
|
ConfigModelI& conf,
|
||||||
Contact3Registry& cr,
|
Contact3Registry& cr,
|
||||||
RegistryMessageModel& rmm,
|
RegistryMessageModelI& rmm,
|
||||||
MessageCommandDispatcher* mcd
|
MessageCommandDispatcher* mcd
|
||||||
) : _completion(completion), _conf(conf), _cr(cr), _rmm(rmm), _mcd(mcd) {
|
) : _completion(completion), _conf(conf), _cr(cr), _rmm(rmm), _mcd(mcd) {
|
||||||
//system_prompt = R"sys(Transcript of a group chat, where Bob talks to online strangers.
|
//system_prompt = R"sys(Transcript of a group chat, where Bob talks to online strangers.
|
||||||
|
@ -20,7 +20,7 @@ struct RPBot : public RegistryMessageModelEventI {
|
|||||||
TextCompletionI& _completion;
|
TextCompletionI& _completion;
|
||||||
ConfigModelI& _conf;
|
ConfigModelI& _conf;
|
||||||
Contact3Registry& _cr;
|
Contact3Registry& _cr;
|
||||||
RegistryMessageModel& _rmm;
|
RegistryMessageModelI& _rmm;
|
||||||
MessageCommandDispatcher* _mcd;
|
MessageCommandDispatcher* _mcd;
|
||||||
|
|
||||||
std::minstd_rand _rng{std::random_device{}()};
|
std::minstd_rand _rng{std::random_device{}()};
|
||||||
@ -30,7 +30,7 @@ struct RPBot : public RegistryMessageModelEventI {
|
|||||||
TextCompletionI& completion,
|
TextCompletionI& completion,
|
||||||
ConfigModelI& conf,
|
ConfigModelI& conf,
|
||||||
Contact3Registry& cr,
|
Contact3Registry& cr,
|
||||||
RegistryMessageModel& rmm,
|
RegistryMessageModelI& rmm,
|
||||||
MessageCommandDispatcher* mcd
|
MessageCommandDispatcher* mcd
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user