Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@markprompt/core

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@markprompt/core - npm Package Compare versions

Comparing version 0.23.0 to 0.24.0

2

dist/chat.d.ts

@@ -1,2 +0,2 @@

import type { Chat, ChatCompletionMessage, ChatCompletionMessageParam, ChatCompletionTool, ChatCompletionToolChoiceOption, ChatCompletionMetadata, OpenAIModelId } from './types.js';
import type { Chat, ChatCompletionMessage, ChatCompletionMessageParam, ChatCompletionTool, ChatCompletionToolChoiceOption, ChatCompletionMetadata, OpenAIModelId } from './types';
export type { ChatCompletionMessageParam, ChatCompletionAssistantMessageParam, ChatCompletionFunctionMessageParam, ChatCompletionToolMessageParam, ChatCompletionUserMessageParam, ChatCompletionSystemMessageParam, } from 'openai/resources/index.mjs';

@@ -3,0 +3,0 @@ export interface ChatMessage {

import defaults from 'defaults';
import { EventSourceParserStream } from 'eventsource-parser/stream';
import mergeWith from 'lodash-es/mergeWith.js';
import { isChatCompletion, isChatCompletionChunk, isChatCompletionMessage, isMarkpromptMetadata, parseEncodedJSONHeader, } from './utils.js';
import mergeWith from 'lodash-es/mergeWith';
import { isChatCompletion, isChatCompletionChunk, isChatCompletionMessage, isMarkpromptMetadata, parseEncodedJSONHeader, } from './utils';
export const DEFAULT_SUBMIT_CHAT_OPTIONS = {

@@ -6,0 +6,0 @@ apiUrl: 'https://api.markprompt.com/chat',

@@ -1,2 +0,2 @@

import type { PromptFeedback } from './types.js';
import type { PromptFeedback } from './types';
export interface SubmitFeedbackBody {

@@ -3,0 +3,0 @@ /** Prompt feedback */

@@ -1,6 +0,6 @@

export { DEFAULT_SUBMIT_CHAT_OPTIONS, submitChat, type ChatMessage, type SubmitChatOptions, type SubmitChatReturn, type SubmitChatYield, } from './chat.js';
export { DEFAULT_SUBMIT_FEEDBACK_OPTIONS, submitFeedback, type SubmitFeedbackBody, type SubmitFeedbackOptions, } from './feedback.js';
export { DEFAULT_SUBMIT_SEARCH_QUERY_OPTIONS, submitAlgoliaDocsearchQuery, submitSearchQuery, type SubmitSearchQueryOptions, type AlgoliaProvider, } from './search.js';
export { OPENAI_CHAT_COMPLETIONS_MODELS, OPENAI_COMPLETIONS_MODELS, OPENAI_EMBEDDINGS_MODEL, type AlgoliaDocSearchHit, type AlgoliaDocSearchResultsResponse, type Chat, type ChatCompletion, type ChatCompletionAssistantMessageParam, type ChatCompletionChunk, type ChatCompletionFunctionMessageParam, type ChatCompletionMessage, type ChatCompletionMessageParam, type ChatCompletionMessageToolCall, type ChatCompletionSystemMessageParam, type ChatCompletionTool, type ChatCompletionToolChoiceOption, type ChatCompletionToolMessageParam, type ChatCompletionUserMessageParam, type FileReferenceFileData, type FileSectionReference, type FileSectionReferenceSectionData, type OpenAIChatCompletionsModelId, type OpenAICompletionsModelId, type OpenAIEmbeddingsModelId, type OpenAIModelId, type PromptFeedback, type SearchResult, type SearchResultSection, type SearchResultsResponse, type Source, type SourceType, } from './types.js';
export { getErrorMessage, isAbortError, isChatCompletion, isChatCompletionChunk, isChatCompletionMessage, isFileSectionReferences, isKeyOf, isMarkpromptMetadata, isToolCall, isToolCalls, parseEncodedJSONHeader, } from './utils.js';
export { DEFAULT_SUBMIT_CHAT_OPTIONS, submitChat, type ChatMessage, type SubmitChatOptions, type SubmitChatReturn, type SubmitChatYield, } from './chat';
export { DEFAULT_SUBMIT_FEEDBACK_OPTIONS, submitFeedback, type SubmitFeedbackBody, type SubmitFeedbackOptions, } from './feedback';
export { DEFAULT_SUBMIT_SEARCH_QUERY_OPTIONS, submitAlgoliaDocsearchQuery, submitSearchQuery, type SubmitSearchQueryOptions, type AlgoliaProvider, } from './search';
export { OPENAI_CHAT_COMPLETIONS_MODELS, OPENAI_COMPLETIONS_MODELS, OPENAI_EMBEDDINGS_MODEL, type AlgoliaDocSearchHit, type AlgoliaDocSearchResultsResponse, type Chat, type ChatCompletion, type ChatCompletionAssistantMessageParam, type ChatCompletionChunk, type ChatCompletionFunctionMessageParam, type ChatCompletionMessage, type ChatCompletionMessageParam, type ChatCompletionMessageToolCall, type ChatCompletionSystemMessageParam, type ChatCompletionTool, type ChatCompletionToolChoiceOption, type ChatCompletionToolMessageParam, type ChatCompletionUserMessageParam, type FileReferenceFileData, type FileSectionReference, type FileSectionReferenceSectionData, type OpenAIChatCompletionsModelId, type OpenAICompletionsModelId, type OpenAIEmbeddingsModelId, type OpenAIModelId, type PromptFeedback, type SearchResult, type SearchResultSection, type SearchResultsResponse, type Source, type SourceType, } from './types';
export { getErrorMessage, isAbortError, isChatCompletion, isChatCompletionChunk, isChatCompletionMessage, isFileSectionReferences, isKeyOf, isMarkpromptMetadata, isToolCall, isToolCalls, parseEncodedJSONHeader, } from './utils';
//# sourceMappingURL=index.d.ts.map

@@ -1,6 +0,6 @@

export { DEFAULT_SUBMIT_CHAT_OPTIONS, submitChat, } from './chat.js';
export { DEFAULT_SUBMIT_FEEDBACK_OPTIONS, submitFeedback, } from './feedback.js';
export { DEFAULT_SUBMIT_SEARCH_QUERY_OPTIONS, submitAlgoliaDocsearchQuery, submitSearchQuery, } from './search.js';
export { OPENAI_CHAT_COMPLETIONS_MODELS, OPENAI_COMPLETIONS_MODELS, OPENAI_EMBEDDINGS_MODEL, } from './types.js';
export { getErrorMessage, isAbortError, isChatCompletion, isChatCompletionChunk, isChatCompletionMessage, isFileSectionReferences, isKeyOf, isMarkpromptMetadata, isToolCall, isToolCalls, parseEncodedJSONHeader, } from './utils.js';
export { DEFAULT_SUBMIT_CHAT_OPTIONS, submitChat, } from './chat';
export { DEFAULT_SUBMIT_FEEDBACK_OPTIONS, submitFeedback, } from './feedback';
export { DEFAULT_SUBMIT_SEARCH_QUERY_OPTIONS, submitAlgoliaDocsearchQuery, submitSearchQuery, } from './search';
export { OPENAI_CHAT_COMPLETIONS_MODELS, OPENAI_COMPLETIONS_MODELS, OPENAI_EMBEDDINGS_MODEL, } from './types';
export { getErrorMessage, isAbortError, isChatCompletion, isChatCompletionChunk, isChatCompletionMessage, isFileSectionReferences, isKeyOf, isMarkpromptMetadata, isToolCall, isToolCalls, parseEncodedJSONHeader, } from './utils';
//# sourceMappingURL=index.js.map
import type { SearchOptions } from '@algolia/client-search';
import type { AlgoliaDocSearchResultsResponse, SearchResultsResponse } from './types.js';
import type { AlgoliaDocSearchResultsResponse, SearchResultsResponse } from './types';
export interface SubmitSearchQueryOptions {

@@ -4,0 +4,0 @@ /**

@@ -1,2 +0,2 @@

import { getErrorMessage, isAbortError } from './utils.js';
import { getErrorMessage, isAbortError } from './utils';
export const DEFAULT_SUBMIT_SEARCH_QUERY_OPTIONS = {

@@ -3,0 +3,0 @@ limit: 8,

@@ -1,2 +0,2 @@

import type { DocSearchHit } from './docsearch.js';
import type { DocSearchHit } from './docsearch';
export type { Chat, ChatCompletion, ChatCompletionAssistantMessageParam, ChatCompletionChunk, ChatCompletionFunctionMessageParam, ChatCompletionMessage, ChatCompletionMessageParam, ChatCompletionMessageToolCall, ChatCompletionSystemMessageParam, ChatCompletionTool, ChatCompletionToolChoiceOption, ChatCompletionToolMessageParam, ChatCompletionUserMessageParam, } from 'openai/resources/index.mjs';

@@ -3,0 +3,0 @@ export type RequiredKeys<T, K extends keyof T> = Required<Pick<T, K>> & Omit<T, K>;

@@ -1,2 +0,2 @@

import type { ChatCompletion, ChatCompletionChunk, ChatCompletionMessage, ChatCompletionMessageToolCall, ChatCompletionMetadata, FileSectionReference } from './types.js';
import type { ChatCompletion, ChatCompletionChunk, ChatCompletionMessage, ChatCompletionMessageToolCall, ChatCompletionMetadata, FileSectionReference } from './types';
export type { ChatCompletion, ChatCompletionChunk, ChatCompletionMessage, ChatCompletionMessageToolCall, } from 'openai/resources/index.mjs';

@@ -3,0 +3,0 @@ export declare const getErrorMessage: (res: Response) => Promise<string>;

{
"name": "@markprompt/core",
"version": "0.23.0",
"version": "0.24.0",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc