@liip/liipgpt 3.8.6 → 3.8.8

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.
Files changed (39) hide show
  1. package/button/liipgpt-button.iife.js +28 -28
  2. package/chat/liipgpt-chat.iife.js +17 -17
  3. package/chat/liipgpt-chat.js +17 -17
  4. package/config/index.cjs +6 -1
  5. package/config/index.d.ts +40 -0
  6. package/config/index.js +6 -1
  7. package/configurator/_app/env.js +1 -1
  8. package/configurator/_app/immutable/chunks/{BUUeJ3PL.js → B1VLJAWl.js} +1 -1
  9. package/configurator/_app/immutable/chunks/{BcRC19q0.js → BThXwhFk.js} +2 -2
  10. package/configurator/_app/immutable/chunks/{BEOeYw29.js → ByLyZfiO.js} +1 -1
  11. package/configurator/_app/immutable/chunks/{D_H7sg4g.js → CLl5gEfw.js} +1 -1
  12. package/configurator/_app/immutable/chunks/CXYpP8Fa.js +1 -0
  13. package/configurator/_app/immutable/chunks/{CEu7mztv.js → Cb3gIg53.js} +1 -1
  14. package/configurator/_app/immutable/chunks/{eof59qSA.js → CsIXc9rO.js} +1 -1
  15. package/configurator/_app/immutable/chunks/{CNMUyLhW.js → D4lzvFU-.js} +1 -1
  16. package/configurator/_app/immutable/chunks/{Docn--tg.js → DD3RAJ8B.js} +1 -1
  17. package/configurator/_app/immutable/chunks/{De77gmQ_.js → DEY8R0rI.js} +3 -3
  18. package/configurator/_app/immutable/chunks/{-qY1__IK.js → Diig9Xzm.js} +2 -2
  19. package/configurator/_app/immutable/chunks/{DD7RUfH0.js → DspNmdd3.js} +1 -1
  20. package/configurator/_app/immutable/chunks/{CskLxzhu.js → FE67vUEF.js} +1 -1
  21. package/configurator/_app/immutable/chunks/MDgh7vpS.js +1 -0
  22. package/configurator/_app/immutable/chunks/{CWciD3in.js → lbyDY_EY.js} +1 -1
  23. package/configurator/_app/immutable/entry/{app.TwBWfpPg.js → app.D8A2Wk_Y.js} +2 -2
  24. package/configurator/_app/immutable/entry/start.BTBTEemi.js +1 -0
  25. package/configurator/_app/immutable/nodes/{0.7vFI_dZi.js → 0.BpZJAYAD.js} +1 -1
  26. package/configurator/_app/immutable/nodes/{1.RIoMA8xn.js → 1.D2RYczjj.js} +1 -1
  27. package/configurator/_app/immutable/nodes/{2.D384dkHE.js → 2.CgkGw0hU.js} +3 -3
  28. package/configurator/_app/immutable/nodes/{3.CiByyjYN.js → 3.CR0LqvkA.js} +1 -1
  29. package/configurator/_app/version.json +1 -1
  30. package/configurator/index.html +6 -6
  31. package/configurator/sidebar.html +6 -6
  32. package/index.cjs +14 -1
  33. package/index.d.ts +155 -0
  34. package/index.js +14 -1
  35. package/package.json +1 -1
  36. package/search-summary/liipgpt-search-summary.iife.js +5 -5
  37. package/configurator/_app/immutable/chunks/B08O5lEA.js +0 -1
  38. package/configurator/_app/immutable/chunks/BQ-t0fFK.js +0 -1
  39. package/configurator/_app/immutable/entry/start.COXnrrUL.js +0 -1
package/config/index.cjs CHANGED
@@ -4706,6 +4706,10 @@ var serverErrorSchema = _enum([
4706
4706
  "aborted"
4707
4707
  ]);
4708
4708
  var chatErrorsSchema = union([serverErrorSchema, literal("sse-error"), literal("client-error"), literal("unexpected-call")]);
4709
+ var preAnswerNoticeSchema = object({
4710
+ text: string2(),
4711
+ lang: string2().optional()
4712
+ });
4709
4713
  var botMessageBaseSchema = object({
4710
4714
  type: literal("bot"),
4711
4715
  time: string2(),
@@ -4718,7 +4722,8 @@ var botMessageBaseSchema = object({
4718
4722
  references: chatReferencesSchema,
4719
4723
  errors: array(chatErrorsSchema),
4720
4724
  retrievalQuestion: string2().optional(),
4721
- noFeedback: boolean2().optional()
4725
+ noFeedback: boolean2().optional(),
4726
+ preAnswerNotice: preAnswerNoticeSchema.optional()
4722
4727
  });
4723
4728
  var chatMessageBotStreamingSchema = botMessageBaseSchema.extend({
4724
4729
  state: _enum(["streaming", "done"])
package/config/index.d.ts CHANGED
@@ -7331,6 +7331,10 @@ export declare const chatConfigSchema: z.ZodObject<{
7331
7331
  ]>>;
7332
7332
  retrievalQuestion: z.ZodOptional<z.ZodString>;
7333
7333
  noFeedback: z.ZodOptional<z.ZodBoolean>;
7334
+ preAnswerNotice: z.ZodOptional<z.ZodObject<{
7335
+ text: z.ZodString;
7336
+ lang: z.ZodOptional<z.ZodString>;
7337
+ }, z.core.$strip>>;
7334
7338
  state: z.ZodLiteral<"loading">;
7335
7339
  }, z.core.$strip>,
7336
7340
  z.ZodObject<{
@@ -7467,6 +7471,10 @@ export declare const chatConfigSchema: z.ZodObject<{
7467
7471
  ]>>;
7468
7472
  retrievalQuestion: z.ZodOptional<z.ZodString>;
7469
7473
  noFeedback: z.ZodOptional<z.ZodBoolean>;
7474
+ preAnswerNotice: z.ZodOptional<z.ZodObject<{
7475
+ text: z.ZodString;
7476
+ lang: z.ZodOptional<z.ZodString>;
7477
+ }, z.core.$strip>>;
7470
7478
  state: z.ZodEnum<{
7471
7479
  streaming: "streaming";
7472
7480
  done: "done";
@@ -7681,6 +7689,10 @@ export declare const chatConfigSchema: z.ZodObject<{
7681
7689
  ]>>;
7682
7690
  retrievalQuestion: z.ZodOptional<z.ZodString>;
7683
7691
  noFeedback: z.ZodOptional<z.ZodBoolean>;
7692
+ preAnswerNotice: z.ZodOptional<z.ZodObject<{
7693
+ text: z.ZodString;
7694
+ lang: z.ZodOptional<z.ZodString>;
7695
+ }, z.core.$strip>>;
7684
7696
  state: z.ZodLiteral<"loading">;
7685
7697
  }, z.core.$strip>,
7686
7698
  z.ZodObject<{
@@ -7817,6 +7829,10 @@ export declare const chatConfigSchema: z.ZodObject<{
7817
7829
  ]>>;
7818
7830
  retrievalQuestion: z.ZodOptional<z.ZodString>;
7819
7831
  noFeedback: z.ZodOptional<z.ZodBoolean>;
7832
+ preAnswerNotice: z.ZodOptional<z.ZodObject<{
7833
+ text: z.ZodString;
7834
+ lang: z.ZodOptional<z.ZodString>;
7835
+ }, z.core.$strip>>;
7820
7836
  state: z.ZodEnum<{
7821
7837
  streaming: "streaming";
7822
7838
  done: "done";
@@ -8030,6 +8046,10 @@ export declare const chatConfigSchema: z.ZodObject<{
8030
8046
  ]>>;
8031
8047
  retrievalQuestion: z.ZodOptional<z.ZodString>;
8032
8048
  noFeedback: z.ZodOptional<z.ZodBoolean>;
8049
+ preAnswerNotice: z.ZodOptional<z.ZodObject<{
8050
+ text: z.ZodString;
8051
+ lang: z.ZodOptional<z.ZodString>;
8052
+ }, z.core.$strip>>;
8033
8053
  state: z.ZodLiteral<"loading">;
8034
8054
  }, z.core.$strip>,
8035
8055
  z.ZodObject<{
@@ -8166,6 +8186,10 @@ export declare const chatConfigSchema: z.ZodObject<{
8166
8186
  ]>>;
8167
8187
  retrievalQuestion: z.ZodOptional<z.ZodString>;
8168
8188
  noFeedback: z.ZodOptional<z.ZodBoolean>;
8189
+ preAnswerNotice: z.ZodOptional<z.ZodObject<{
8190
+ text: z.ZodString;
8191
+ lang: z.ZodOptional<z.ZodString>;
8192
+ }, z.core.$strip>>;
8169
8193
  state: z.ZodEnum<{
8170
8194
  streaming: "streaming";
8171
8195
  done: "done";
@@ -8381,6 +8405,10 @@ export declare const chatConfigSchema: z.ZodObject<{
8381
8405
  ]>>;
8382
8406
  retrievalQuestion: z.ZodOptional<z.ZodString>;
8383
8407
  noFeedback: z.ZodOptional<z.ZodBoolean>;
8408
+ preAnswerNotice: z.ZodOptional<z.ZodObject<{
8409
+ text: z.ZodString;
8410
+ lang: z.ZodOptional<z.ZodString>;
8411
+ }, z.core.$strip>>;
8384
8412
  state: z.ZodLiteral<"loading">;
8385
8413
  }, z.core.$strip>,
8386
8414
  z.ZodObject<{
@@ -8517,6 +8545,10 @@ export declare const chatConfigSchema: z.ZodObject<{
8517
8545
  ]>>;
8518
8546
  retrievalQuestion: z.ZodOptional<z.ZodString>;
8519
8547
  noFeedback: z.ZodOptional<z.ZodBoolean>;
8548
+ preAnswerNotice: z.ZodOptional<z.ZodObject<{
8549
+ text: z.ZodString;
8550
+ lang: z.ZodOptional<z.ZodString>;
8551
+ }, z.core.$strip>>;
8520
8552
  state: z.ZodEnum<{
8521
8553
  streaming: "streaming";
8522
8554
  done: "done";
@@ -8730,6 +8762,10 @@ export declare const chatConfigSchema: z.ZodObject<{
8730
8762
  ]>>;
8731
8763
  retrievalQuestion: z.ZodOptional<z.ZodString>;
8732
8764
  noFeedback: z.ZodOptional<z.ZodBoolean>;
8765
+ preAnswerNotice: z.ZodOptional<z.ZodObject<{
8766
+ text: z.ZodString;
8767
+ lang: z.ZodOptional<z.ZodString>;
8768
+ }, z.core.$strip>>;
8733
8769
  state: z.ZodLiteral<"loading">;
8734
8770
  }, z.core.$strip>,
8735
8771
  z.ZodObject<{
@@ -8866,6 +8902,10 @@ export declare const chatConfigSchema: z.ZodObject<{
8866
8902
  ]>>;
8867
8903
  retrievalQuestion: z.ZodOptional<z.ZodString>;
8868
8904
  noFeedback: z.ZodOptional<z.ZodBoolean>;
8905
+ preAnswerNotice: z.ZodOptional<z.ZodObject<{
8906
+ text: z.ZodString;
8907
+ lang: z.ZodOptional<z.ZodString>;
8908
+ }, z.core.$strip>>;
8869
8909
  state: z.ZodEnum<{
8870
8910
  streaming: "streaming";
8871
8911
  done: "done";
package/config/index.js CHANGED
@@ -4661,6 +4661,10 @@ var serverErrorSchema = _enum([
4661
4661
  "aborted"
4662
4662
  ]);
4663
4663
  var chatErrorsSchema = union([serverErrorSchema, literal("sse-error"), literal("client-error"), literal("unexpected-call")]);
4664
+ var preAnswerNoticeSchema = object({
4665
+ text: string2(),
4666
+ lang: string2().optional()
4667
+ });
4664
4668
  var botMessageBaseSchema = object({
4665
4669
  type: literal("bot"),
4666
4670
  time: string2(),
@@ -4673,7 +4677,8 @@ var botMessageBaseSchema = object({
4673
4677
  references: chatReferencesSchema,
4674
4678
  errors: array(chatErrorsSchema),
4675
4679
  retrievalQuestion: string2().optional(),
4676
- noFeedback: boolean2().optional()
4680
+ noFeedback: boolean2().optional(),
4681
+ preAnswerNotice: preAnswerNoticeSchema.optional()
4677
4682
  });
4678
4683
  var chatMessageBotStreamingSchema = botMessageBaseSchema.extend({
4679
4684
  state: _enum(["streaming", "done"])
@@ -1 +1 @@
1
- export const env={"PUBLIC_API_URL":"https://liipgpt.dev.cluster.liipgpt.ch/liipgpt","PUBLIC_CI_COMMIT_TAG":"3.8.6"}
1
+ export const env={"PUBLIC_API_URL":"https://liipgpt.dev.cluster.liipgpt.ch/liipgpt","PUBLIC_CI_COMMIT_TAG":"3.8.8"}
@@ -1 +1 @@
1
- import"./CZzAbm1q.js";import{i as e,t}from"./CEu7mztv.js";import"./DKyUMEyV.js";import{n,o as r}from"./B08O5lEA.js";var i=async e=>{let t=await(await fetch(`${e}/chatconfig`)).json();return r.parse(t)};async function a({apiUrl:r,lang:a,forceTheme:o}){let s=e(await i(r));return{chatConfig:s,language:n(a,s.supportedLanguages),colorScheme:t(Object.keys(s.fullTheme))}}export{a as loadChatConfig};
1
+ import"./CZzAbm1q.js";import{i as e,t}from"./Cb3gIg53.js";import"./DKyUMEyV.js";import{n,o as r}from"./MDgh7vpS.js";var i=async e=>{let t=await(await fetch(`${e}/chatconfig`)).json();return r.parse(t)};async function a({apiUrl:r,lang:a,forceTheme:o}){let s=e(await i(r));return{chatConfig:s,language:n(a,s.supportedLanguages),colorScheme:t(Object.keys(s.fullTheme))}}export{a as loadChatConfig};