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:
cnJasonZ
2025-02-28 02:53:00 +08:00
committed by GitHub
parent b07240deee
commit 2aeb4c2961
26 changed files with 585 additions and 3 deletions

View File

@@ -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.`;
}