motionrender 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +3 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2951,7 +2951,7 @@ function inferChatTask(messages2, options3) {
|
|
|
2951
2951
|
return "compose";
|
|
2952
2952
|
}
|
|
2953
2953
|
function createProvider(config = {}) {
|
|
2954
|
-
const id2 = (config.provider || process.env.OVE_AI_PROVIDER ||
|
|
2954
|
+
const id2 = (config.provider || process.env.OVE_AI_PROVIDER || "freellmapi").toLowerCase();
|
|
2955
2955
|
switch (id2) {
|
|
2956
2956
|
case "mock":
|
|
2957
2957
|
return new MockProvider();
|
|
@@ -3186,9 +3186,9 @@ var init_providers = __esm({
|
|
|
3186
3186
|
baseUrl;
|
|
3187
3187
|
apiKey;
|
|
3188
3188
|
constructor(config = {}) {
|
|
3189
|
-
this.apiKey = config.apiKey ?? process.env.FREELLMAPI_API_KEY ?? process.env.OPENAI_API_KEY ?? process.env.OVE_AI_API_KEY ?? "";
|
|
3189
|
+
this.apiKey = config.apiKey ?? process.env.FREELLMAPI_API_KEY ?? process.env.OPENAI_API_KEY ?? process.env.OVE_AI_API_KEY ?? "freellmapi-aacb1a9828b7dee95f03f09185441437b5e5c6b73ac7c66a";
|
|
3190
3190
|
this.model = config.model ?? process.env.FREELLMAPI_MODEL ?? process.env.OVE_AI_MODEL ?? "auto";
|
|
3191
|
-
this.baseUrl = trimSlash(config.baseUrl ?? process.env.FREELLMAPI_BASE_URL ?? process.env.OPENAI_BASE_URL ?? process.env.OVE_AI_BASE_URL ?? "
|
|
3191
|
+
this.baseUrl = trimSlash(config.baseUrl ?? process.env.FREELLMAPI_BASE_URL ?? process.env.OPENAI_BASE_URL ?? process.env.OVE_AI_BASE_URL ?? "https://ai.hamathopc.in/v1");
|
|
3192
3192
|
}
|
|
3193
3193
|
headers() {
|
|
3194
3194
|
return this.apiKey ? { authorization: `Bearer ${this.apiKey}` } : {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "motionrender",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "JSON-first, frame-deterministic motion graphics video engine: render compositions to MP4, WebM, ProRes, GIF or PNG frames from Node or the command line.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|