@hintergrund/ui 0.1.14 → 0.2.0

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.
@@ -1,6 +1,6 @@
1
- import { v as cs, w as rn, x as It } from "./Builder-CeAPIdQ9.js";
1
+ import { d as cs, e as rn, f as It } from "./Builder-RvOmGKW5.js";
2
2
  import { h as an } from "./headers-u7rXGJ9f.js";
3
- import { p as Ot, a as on } from "./json-parse-B4gFxgnW.js";
3
+ import { p as Ot, a as on } from "./json-parse-Didq-LlA.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 { v as f, y as R, w as y } from "./Builder-CeAPIdQ9.js";
2
+ import { d as f, h as R, e as y } from "./Builder-RvOmGKW5.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-x2D0MKUa.js";
4
+ import { p as I, c as v, a as O } from "./openai-responses-shared-qXvKLxLt.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 w extends E {
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 (N.has(n.path) && n.method === "post" && n.body !== void 0) {
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 N = /* @__PURE__ */ new Set([
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 w({
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-sT-BxRei.js";
2
- import "./props-DkIpnWKa.js";
3
- import { t as i } from "./Builder-CeAPIdQ9.js";
1
+ import "./global-JDSIqdYm.js";
2
+ import { B as i } from "./Builder-RvOmGKW5.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
  } });