@digipair/skill-openai 0.2.6 → 0.2.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.
package/index.cjs2.js CHANGED
@@ -61213,7 +61213,11 @@ let OpenAIService = class OpenAIService {
61213
61213
  } else {
61214
61214
  const parser = new StructuredOutputParser(jsonSchemaToZod(schema));
61215
61215
  chain = RunnableSequence.from([
61216
- PromptTemplate.fromTemplate(`Answer the users question as best as possible.\n{format_instructions}\n${prompt != null ? prompt : '{prompt}'}\n\nJSON:`, {
61216
+ PromptTemplate.fromTemplate(`${prompt != null ? prompt : '{prompt}'}
61217
+
61218
+ Answer the users question as best as possible.\n{format_instructions}
61219
+
61220
+ JSON:`, {
61217
61221
  partialVariables: {
61218
61222
  format_instructions: parser.getFormatInstructions()
61219
61223
  }
package/index.esm2.js CHANGED
@@ -61211,7 +61211,11 @@ let OpenAIService = class OpenAIService {
61211
61211
  } else {
61212
61212
  const parser = new StructuredOutputParser(jsonSchemaToZod(schema));
61213
61213
  chain = RunnableSequence.from([
61214
- PromptTemplate.fromTemplate(`Answer the users question as best as possible.\n{format_instructions}\n${prompt != null ? prompt : '{prompt}'}\n\nJSON:`, {
61214
+ PromptTemplate.fromTemplate(`${prompt != null ? prompt : '{prompt}'}
61215
+
61216
+ Answer the users question as best as possible.\n{format_instructions}
61217
+
61218
+ JSON:`, {
61215
61219
  partialVariables: {
61216
61220
  format_instructions: parser.getFormatInstructions()
61217
61221
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-openai",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"