mirror of
https://github.com/Mintplex-Labs/anything-llm
synced 2026-04-26 01:25:15 +02:00
Add new model provider PPIO (#3211)
* feat: add new model provider PPIO * fix: fix ppio model fetching * fix: code lint * reorder LLM update interface for streaming and chats to use valid keys linting --------- Co-authored-by: timothycarambat <rambat1010@gmail.com>
This commit is contained in:
@@ -615,6 +615,16 @@ const KEY_MAPPING = {
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
// PPIO Options
|
||||
PPIOApiKey: {
|
||||
envKey: "PPIO_API_KEY",
|
||||
checks: [isNotEmpty],
|
||||
},
|
||||
PPIOModelPref: {
|
||||
envKey: "PPIO_MODEL_PREF",
|
||||
checks: [isNotEmpty],
|
||||
},
|
||||
};
|
||||
|
||||
function isNotEmpty(input = "") {
|
||||
@@ -721,6 +731,7 @@ function supportedLLM(input = "") {
|
||||
"apipie",
|
||||
"xai",
|
||||
"nvidia-nim",
|
||||
"ppio",
|
||||
].includes(input);
|
||||
return validSelection ? null : `${input} is not a valid LLM provider.`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user