From bd453d981025a8cfe6e138f0e14d539413242b47 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Mon, 10 Jun 2024 21:28:42 +0000 Subject: [PATCH] fix defninition files --- docs/genaisrc/genaiscript.d.ts | 2 -- genaisrc/genaiscript.d.ts | 2 -- packages/core/src/genaisrc/genaiscript.d.ts | 2 -- packages/core/src/types/prompt_type.d.ts | 2 -- packages/sample/genaisrc/genaiscript.d.ts | 2 -- packages/sample/genaisrc/multi-turn.genai.js | 6 ++++-- packages/sample/genaisrc/node/genaiscript.d.ts | 2 -- packages/sample/genaisrc/python/genaiscript.d.ts | 2 -- packages/sample/genaisrc/style/genaiscript.d.ts | 2 -- packages/sample/src/aici/genaiscript.d.ts | 2 -- packages/sample/src/errors/genaiscript.d.ts | 2 -- packages/sample/src/makecode/genaiscript.d.ts | 2 -- packages/sample/src/tla/genaiscript.d.ts | 2 -- packages/sample/src/vision/genaiscript.d.ts | 2 -- slides/genaisrc/genaiscript.d.ts | 2 -- 15 files changed, 4 insertions(+), 30 deletions(-) diff --git a/docs/genaisrc/genaiscript.d.ts b/docs/genaisrc/genaiscript.d.ts index 23d6074e84..a93b5e3d91 100644 --- a/docs/genaisrc/genaiscript.d.ts +++ b/docs/genaisrc/genaiscript.d.ts @@ -1594,8 +1594,6 @@ interface PromptContext extends ChatGenerationContext { -import { JSONL } from "./prompt_template" - // keep in sync with PromptContext! /** diff --git a/genaisrc/genaiscript.d.ts b/genaisrc/genaiscript.d.ts index 23d6074e84..a93b5e3d91 100644 --- a/genaisrc/genaiscript.d.ts +++ b/genaisrc/genaiscript.d.ts @@ -1594,8 +1594,6 @@ interface PromptContext extends ChatGenerationContext { -import { JSONL } from "./prompt_template" - // keep in sync with PromptContext! /** diff --git a/packages/core/src/genaisrc/genaiscript.d.ts b/packages/core/src/genaisrc/genaiscript.d.ts index 23d6074e84..a93b5e3d91 100644 --- a/packages/core/src/genaisrc/genaiscript.d.ts +++ b/packages/core/src/genaisrc/genaiscript.d.ts @@ -1594,8 +1594,6 @@ interface PromptContext extends ChatGenerationContext { -import { JSONL } from "./prompt_template" - // keep in sync with PromptContext! /** diff --git a/packages/core/src/types/prompt_type.d.ts b/packages/core/src/types/prompt_type.d.ts index 3369c5fafe..6474b52649 100644 --- a/packages/core/src/types/prompt_type.d.ts +++ b/packages/core/src/types/prompt_type.d.ts @@ -1,7 +1,5 @@ /// -import { JSONL } from "./prompt_template" - // keep in sync with PromptContext! /** diff --git a/packages/sample/genaisrc/genaiscript.d.ts b/packages/sample/genaisrc/genaiscript.d.ts index 23d6074e84..a93b5e3d91 100644 --- a/packages/sample/genaisrc/genaiscript.d.ts +++ b/packages/sample/genaisrc/genaiscript.d.ts @@ -1594,8 +1594,6 @@ interface PromptContext extends ChatGenerationContext { -import { JSONL } from "./prompt_template" - // keep in sync with PromptContext! /** diff --git a/packages/sample/genaisrc/multi-turn.genai.js b/packages/sample/genaisrc/multi-turn.genai.js index 6e349a2a1e..449276bc08 100644 --- a/packages/sample/genaisrc/multi-turn.genai.js +++ b/packages/sample/genaisrc/multi-turn.genai.js @@ -38,8 +38,10 @@ using the JSONL format: \`\`\`\`markdown File: .qt.jsonl \`\`\` -{ q: "", a: "" } -{ q: "", a: "" } +${JSONL.stringify([ + { q: "", a: "" }, + { q: "", a: "" } + ])} ... \`\`\` \`\`\`\` diff --git a/packages/sample/genaisrc/node/genaiscript.d.ts b/packages/sample/genaisrc/node/genaiscript.d.ts index 23d6074e84..a93b5e3d91 100644 --- a/packages/sample/genaisrc/node/genaiscript.d.ts +++ b/packages/sample/genaisrc/node/genaiscript.d.ts @@ -1594,8 +1594,6 @@ interface PromptContext extends ChatGenerationContext { -import { JSONL } from "./prompt_template" - // keep in sync with PromptContext! /** diff --git a/packages/sample/genaisrc/python/genaiscript.d.ts b/packages/sample/genaisrc/python/genaiscript.d.ts index 23d6074e84..a93b5e3d91 100644 --- a/packages/sample/genaisrc/python/genaiscript.d.ts +++ b/packages/sample/genaisrc/python/genaiscript.d.ts @@ -1594,8 +1594,6 @@ interface PromptContext extends ChatGenerationContext { -import { JSONL } from "./prompt_template" - // keep in sync with PromptContext! /** diff --git a/packages/sample/genaisrc/style/genaiscript.d.ts b/packages/sample/genaisrc/style/genaiscript.d.ts index 23d6074e84..a93b5e3d91 100644 --- a/packages/sample/genaisrc/style/genaiscript.d.ts +++ b/packages/sample/genaisrc/style/genaiscript.d.ts @@ -1594,8 +1594,6 @@ interface PromptContext extends ChatGenerationContext { -import { JSONL } from "./prompt_template" - // keep in sync with PromptContext! /** diff --git a/packages/sample/src/aici/genaiscript.d.ts b/packages/sample/src/aici/genaiscript.d.ts index 23d6074e84..a93b5e3d91 100644 --- a/packages/sample/src/aici/genaiscript.d.ts +++ b/packages/sample/src/aici/genaiscript.d.ts @@ -1594,8 +1594,6 @@ interface PromptContext extends ChatGenerationContext { -import { JSONL } from "./prompt_template" - // keep in sync with PromptContext! /** diff --git a/packages/sample/src/errors/genaiscript.d.ts b/packages/sample/src/errors/genaiscript.d.ts index 23d6074e84..a93b5e3d91 100644 --- a/packages/sample/src/errors/genaiscript.d.ts +++ b/packages/sample/src/errors/genaiscript.d.ts @@ -1594,8 +1594,6 @@ interface PromptContext extends ChatGenerationContext { -import { JSONL } from "./prompt_template" - // keep in sync with PromptContext! /** diff --git a/packages/sample/src/makecode/genaiscript.d.ts b/packages/sample/src/makecode/genaiscript.d.ts index 23d6074e84..a93b5e3d91 100644 --- a/packages/sample/src/makecode/genaiscript.d.ts +++ b/packages/sample/src/makecode/genaiscript.d.ts @@ -1594,8 +1594,6 @@ interface PromptContext extends ChatGenerationContext { -import { JSONL } from "./prompt_template" - // keep in sync with PromptContext! /** diff --git a/packages/sample/src/tla/genaiscript.d.ts b/packages/sample/src/tla/genaiscript.d.ts index 23d6074e84..a93b5e3d91 100644 --- a/packages/sample/src/tla/genaiscript.d.ts +++ b/packages/sample/src/tla/genaiscript.d.ts @@ -1594,8 +1594,6 @@ interface PromptContext extends ChatGenerationContext { -import { JSONL } from "./prompt_template" - // keep in sync with PromptContext! /** diff --git a/packages/sample/src/vision/genaiscript.d.ts b/packages/sample/src/vision/genaiscript.d.ts index 23d6074e84..a93b5e3d91 100644 --- a/packages/sample/src/vision/genaiscript.d.ts +++ b/packages/sample/src/vision/genaiscript.d.ts @@ -1594,8 +1594,6 @@ interface PromptContext extends ChatGenerationContext { -import { JSONL } from "./prompt_template" - // keep in sync with PromptContext! /** diff --git a/slides/genaisrc/genaiscript.d.ts b/slides/genaisrc/genaiscript.d.ts index 23d6074e84..a93b5e3d91 100644 --- a/slides/genaisrc/genaiscript.d.ts +++ b/slides/genaisrc/genaiscript.d.ts @@ -1594,8 +1594,6 @@ interface PromptContext extends ChatGenerationContext { -import { JSONL } from "./prompt_template" - // keep in sync with PromptContext! /**