@hintergrund/ui 0.1.14 → 0.2.1
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/{Builder-CeAPIdQ9.js → Builder-B0XYsyXe.js} +45922 -74599
- package/dist/admin.js +12591 -14521
- package/dist/{anthropic-BJBSVFAF.js → anthropic-UhrJpH25.js} +2 -2
- package/dist/{azure-openai-responses-B13_C2U1.js → azure-openai-responses-DAC03Qw1.js} +6 -6
- package/dist/builder.js +2 -3
- package/dist/global-CFcrkAa3.js +34491 -0
- package/dist/{google-DkGaABDn.js → google-CVz_TaG6.js} +9 -9
- package/dist/{google-shared-DwNDktpf.js → google-shared-BmdaIInh.js} +1 -1
- package/dist/{google-vertex-CSDaY4Og.js → google-vertex-C6GE41DE.js} +2 -2
- package/dist/{json-parse-B4gFxgnW.js → json-parse-DmJ6NiZE.js} +1 -1
- package/dist/login.js +73 -65
- package/dist/{mistral-CyHo42hq.js → mistral-DqYbzWvv.js} +2 -2
- package/dist/{openai-codex-responses-lR1Rk7Qg.js → openai-codex-responses-ZWuD9ryk.js} +39 -39
- package/dist/{openai-completions-C82SBiye.js → openai-completions-B6B2OwYj.js} +11 -11
- package/dist/{openai-responses-oQmN7b31.js → openai-responses-D9Ip2Wgd.js} +2 -2
- package/dist/{openai-responses-shared-x2D0MKUa.js → openai-responses-shared-eUUJSL4D.js} +2 -2
- package/dist/setup.js +187 -133
- package/dist/ui.css +1 -1
- package/package.json +67 -67
- package/dist/class-D-7kXFKU.js +0 -96
- package/dist/global-sT-BxRei.js +0 -3333
- package/dist/props-DkIpnWKa.js +0 -122
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as cs, e as rn, f as It } from "./Builder-B0XYsyXe.js";
|
|
2
2
|
import { h as an } from "./headers-u7rXGJ9f.js";
|
|
3
|
-
import { p as Ot, a as on } from "./json-parse-
|
|
3
|
+
import { p as Ot, a as on } from "./json-parse-DmJ6NiZE.js";
|
|
4
4
|
import { b as cn, a as ln, s as W, t as un } from "./transform-messages-CkpQp6fJ.js";
|
|
5
5
|
import { h as hn, b as dn, r as fn } from "./github-copilot-headers-DWh_6bE3.js";
|
|
6
6
|
typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(r) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { O as E, a as c, r as p, i as h, b as _ } from "./client-Sh7wNjbG.js";
|
|
2
|
-
import {
|
|
2
|
+
import { d as f, h as R, e as y } from "./Builder-B0XYsyXe.js";
|
|
3
3
|
import { h as g } from "./headers-u7rXGJ9f.js";
|
|
4
|
-
import { p as I, c as v, a as O } from "./openai-responses-shared-
|
|
4
|
+
import { p as I, c as v, a as O } from "./openai-responses-shared-eUUJSL4D.js";
|
|
5
5
|
import { b } from "./transform-messages-CkpQp6fJ.js";
|
|
6
6
|
typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(r) {
|
|
7
7
|
return Promise.resolve().then(r);
|
|
8
8
|
} });
|
|
9
|
-
class
|
|
9
|
+
class N extends E {
|
|
10
10
|
/**
|
|
11
11
|
* API Client for interfacing with the Azure OpenAI API.
|
|
12
12
|
*
|
|
@@ -47,7 +47,7 @@ class w extends E {
|
|
|
47
47
|
}), this.apiVersion = "", this.apiVersion = a, this.deploymentName = s;
|
|
48
48
|
}
|
|
49
49
|
async buildRequest(n, e = {}) {
|
|
50
|
-
if (
|
|
50
|
+
if (w.has(n.path) && n.method === "post" && n.body !== void 0) {
|
|
51
51
|
if (!h(n.body))
|
|
52
52
|
throw new Error("Expected request body to be an object");
|
|
53
53
|
const a = this.deploymentName || n.body.model || n.__metadata?.model;
|
|
@@ -59,7 +59,7 @@ class w extends E {
|
|
|
59
59
|
return typeof this._options.apiKey == "string" ? _([{ "api-key": this.apiKey }]) : super.authHeaders(n);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
const
|
|
62
|
+
const w = /* @__PURE__ */ new Set([
|
|
63
63
|
"/completions",
|
|
64
64
|
"/chat/completions",
|
|
65
65
|
"/embeddings",
|
|
@@ -170,7 +170,7 @@ function Z(r, n, e) {
|
|
|
170
170
|
const a = { ...r.headers };
|
|
171
171
|
e?.headers && Object.assign(a, e.headers);
|
|
172
172
|
const { baseUrl: t, apiVersion: s } = T(r, e);
|
|
173
|
-
return new
|
|
173
|
+
return new N({
|
|
174
174
|
apiKey: n,
|
|
175
175
|
apiVersion: s,
|
|
176
176
|
dangerouslyAllowBrowser: !0,
|
package/dist/builder.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import "./global-
|
|
2
|
-
import "./
|
|
3
|
-
import { t as i } from "./Builder-CeAPIdQ9.js";
|
|
1
|
+
import "./global-CFcrkAa3.js";
|
|
2
|
+
import { B as i } from "./Builder-B0XYsyXe.js";
|
|
4
3
|
typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(e) {
|
|
5
4
|
return Promise.resolve().then(e);
|
|
6
5
|
} });
|