Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,14 @@ static cell AMX_NATIVE_CALL n_SetModel(AMX* amx, cell* params)
return 0;
}

static cell AMX_NATIVE_CALL n_GetChatBotType(AMX* amx, cell* params)
{
paramsLock.lock();
int type = botParams.botType;
paramsLock.unlock();
return type;
}

AMX_NATIVE_INFO natives[] =
{
{ "SetChatBotEncoding", n_SetChatBotEncoding },
Expand All @@ -281,6 +289,7 @@ AMX_NATIVE_INFO natives[] =
{ "SetAPIKey", n_SetAPIKey },
{ "SetSystemPrompt", n_SetSystemPrompt },
{ "SetModel", n_SetModel },
{ "GetChatBotType", n_GetChatBotType },
{ 0, 0 }
};

Expand Down