@markprompt/core
Advanced tools
Comparing version 0.4.5 to 0.4.6
@@ -6,12 +6,4 @@ import type { OpenAIModelId } from './types.js'; | ||
completionsUrl?: string; | ||
/** The placeholder for the text input */ | ||
placeholder?: string; | ||
/** Message returned when the model does not have an answer */ | ||
iDontKnowMessage?: string; | ||
/** The heading of the references section */ | ||
referencesHeading?: string; | ||
/** The loading heading of the references section */ | ||
loadingHeading?: string; | ||
/** If true, include the branding footer */ | ||
includeBranding?: boolean; | ||
/** The OpenAI model to use */ | ||
@@ -18,0 +10,0 @@ model?: OpenAIModelId; |
@@ -85,7 +85,9 @@ export const MARKPROMPT_COMPLETIONS_URL = 'https://api.markprompt.com/v1/completions'; | ||
} | ||
onAnswerChunk(parts[1]); | ||
if (parts[1]) { | ||
onAnswerChunk(parts[1]); | ||
} | ||
didHandleHeader = true; | ||
} | ||
} | ||
else { | ||
else if (chunkValue) { | ||
const shouldContinue = onAnswerChunk(chunkValue); | ||
@@ -92,0 +94,0 @@ if (!shouldContinue) { |
{ | ||
"name": "@markprompt/core", | ||
"version": "0.4.5", | ||
"version": "0.4.6", | ||
"repository": { | ||
@@ -15,3 +15,2 @@ "type": "git", | ||
"files": [ | ||
"README.md", | ||
"dist" | ||
@@ -18,0 +17,0 @@ ], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27396
15
304