@sciol/xyzen 0.4.2 → 0.4.3
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/{chunk-3JLSSUO4-Amct4bnM.js → chunk-3JLSSUO4-lw6nI4d-.js} +1 -1
- package/dist/{chunk-EBDTZNMR-aIaWldci.js → chunk-EBDTZNMR-DwW3TAhG.js} +1 -1
- package/dist/{chunk-NM4NY5FQ-K0AY9o5i.js → chunk-NM4NY5FQ-WpZvY9qj.js} +1 -1
- package/dist/components/layouts/components/ProviderSelector.d.ts +10 -0
- package/dist/{download-Ckr90oQJ.js → download-BextlR-V.js} +2 -2
- package/dist/{index-BX3tjgcN.js → index-DG6w-EXf.js} +25776 -24769
- package/dist/rasterize-WOXTJCMX-CNcuYFJ4.js +5 -0
- package/dist/toBlob-ju840lTp.js +5 -0
- package/dist/toCanvas-ROMJ_SdN.js +5 -0
- package/dist/{toImg-Cb4n6vBV.js → toImg-BR9Yibvi.js} +2 -2
- package/dist/types/llmProvider.d.ts +3 -0
- package/dist/xyzen.css +1 -1
- package/dist/xyzen.es.js +1 -1
- package/dist/xyzen.umd.js +138 -128
- package/package.json +1 -1
- package/dist/rasterize-WOXTJCMX-nqKPGMf1.js +0 -5
- package/dist/toBlob-Cpn4A-7b.js +0 -5
- package/dist/toCanvas-CkVNNpVV.js +0 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { d as g } from "./chunk-3JLSSUO4-
|
|
3
|
-
import { l as p } from "./index-
|
|
2
|
+
import { d as g } from "./chunk-3JLSSUO4-lw6nI4d-.js";
|
|
3
|
+
import { l as p } from "./index-DG6w-EXf.js";
|
|
4
4
|
async function x(i, o) {
|
|
5
5
|
let { scale: s = 1, width: n, height: l, meta: e = {} } = o, d = Number.isFinite(n), m = Number.isFinite(l), u = Number.isFinite(s) && s !== 1 || d || m;
|
|
6
6
|
if (p() && u) return await g(i, { ...o, format: "png", quality: 1, meta: e });
|
|
@@ -90,6 +90,7 @@ export interface LlmProvider {
|
|
|
90
90
|
is_default: boolean;
|
|
91
91
|
is_system: boolean;
|
|
92
92
|
user_id: string;
|
|
93
|
+
provider_config?: Record<string, unknown>;
|
|
93
94
|
}
|
|
94
95
|
export interface LlmProviderCreate {
|
|
95
96
|
scope?: ProviderScope;
|
|
@@ -103,6 +104,7 @@ export interface LlmProviderCreate {
|
|
|
103
104
|
timeout?: number;
|
|
104
105
|
user_id: string;
|
|
105
106
|
is_default?: boolean;
|
|
107
|
+
provider_config?: Record<string, unknown>;
|
|
106
108
|
}
|
|
107
109
|
export interface LlmProviderUpdate {
|
|
108
110
|
name?: string;
|
|
@@ -114,6 +116,7 @@ export interface LlmProviderUpdate {
|
|
|
114
116
|
temperature?: number;
|
|
115
117
|
timeout?: number;
|
|
116
118
|
is_default?: boolean;
|
|
119
|
+
provider_config?: Record<string, unknown>;
|
|
117
120
|
}
|
|
118
121
|
export type LlmProviderResponse = LlmProvider;
|
|
119
122
|
export interface SetDefaultProviderRequest {
|