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.30.0 to 0.31.0

4

dist/chat.d.ts

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

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

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

**/
model?: OpenAIModelId;
model?: ChatCompletionsModel;
/**

@@ -71,0 +71,0 @@ * Options for the use of policies.

@@ -78,3 +78,3 @@ import defaults from 'defaults';

'Content-Type': 'application/json',
'X-Markprompt-API-Version': '2023-12-01',
'X-Markprompt-API-Version': '2024-05-21',
}),

@@ -81,0 +81,0 @@ body: JSON.stringify({

@@ -20,3 +20,3 @@ import defaults from 'defaults';

'Content-Type': 'application/json',
'X-Markprompt-API-Version': '2024-03-23',
'X-Markprompt-API-Version': '2024-05-21',
}),

@@ -59,3 +59,3 @@ body: JSON.stringify({

'Content-Type': 'application/json',
'X-Markprompt-API-Version': '2024-03-23',
'X-Markprompt-API-Version': '2024-05-21',
}),

@@ -62,0 +62,0 @@ body: JSON.stringify({ projectKey, csat: body.csat }),

@@ -5,3 +5,3 @@ export { DEFAULT_SUBMIT_CHAT_OPTIONS, submitChat, type ChatMessage, type SubmitChatOptions, type SubmitChatReturn, type SubmitChatYield, } from './chat.js';

import { type BaseOptions } from './types.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 { CHAT_COMPLETIONS_MODELS, COMPLETIONS_MODELS, 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 ChatCompletionsModel, type CompletionsModel, type EmbeddingsModel, type Model, 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';

@@ -8,0 +8,0 @@ export declare const DEFAULT_OPTIONS: {

export { DEFAULT_SUBMIT_CHAT_OPTIONS, submitChat, } from './chat.js';
export { DEFAULT_SUBMIT_FEEDBACK_OPTIONS, submitFeedback, submitCSAT, } 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 { CHAT_COMPLETIONS_MODELS, COMPLETIONS_MODELS, EMBEDDINGS_MODEL, } from './types.js';
export { getErrorMessage, isAbortError, isChatCompletion, isChatCompletionChunk, isChatCompletionMessage, isFileSectionReferences, isKeyOf, isMarkpromptMetadata, isToolCall, isToolCalls, parseEncodedJSONHeader, } from './utils.js';

@@ -6,0 +6,0 @@ export const DEFAULT_OPTIONS = {

@@ -5,9 +5,9 @@ import type { DocSearchHit } from './docsearch.js';

type ArrayToUnion<T> = T extends (infer U)[] ? U : T extends readonly (infer U)[] ? U : never;
export declare const OPENAI_CHAT_COMPLETIONS_MODELS: readonly ["gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-16k-0613", "gpt-4", "gpt-4o", "gpt-4-32k", "gpt-4-1106-preview", "gpt-4-turbo-preview"];
export type OpenAIChatCompletionsModelId = ArrayToUnion<typeof OPENAI_CHAT_COMPLETIONS_MODELS>;
export declare const OPENAI_COMPLETIONS_MODELS: readonly ["ada", "babbage", "curie", "davinci", "text-ada-001", "text-babbage-001", "text-curie-001", "text-davinci-002", "text-davinci-003"];
export type OpenAICompletionsModelId = ArrayToUnion<typeof OPENAI_COMPLETIONS_MODELS>;
export declare const OPENAI_EMBEDDINGS_MODEL: "text-embedding-ada-002";
export type OpenAIEmbeddingsModelId = typeof OPENAI_EMBEDDINGS_MODEL;
export type OpenAIModelId = OpenAIChatCompletionsModelId | OpenAICompletionsModelId | OpenAIEmbeddingsModelId;
export declare const CHAT_COMPLETIONS_MODELS: readonly ["gpt-3.5-turbo", "gpt-4", "gpt-4o", "gpt-4-32k", "gpt-4-1106-preview", "gpt-4-turbo-preview", "meta-llama-3-70b-instruct", "meta-llama-3-8b-instruct", "mixtral-8x7b-instruct-v0.1"];
export type ChatCompletionsModel = ArrayToUnion<typeof CHAT_COMPLETIONS_MODELS>;
export declare const COMPLETIONS_MODELS: readonly ["ada", "babbage", "curie", "davinci", "text-ada-001", "text-babbage-001", "text-curie-001", "text-davinci-002", "text-davinci-003"];
export type CompletionsModel = ArrayToUnion<typeof COMPLETIONS_MODELS>;
export declare const EMBEDDINGS_MODEL: "text-embedding-ada-002";
export type EmbeddingsModel = typeof EMBEDDINGS_MODEL;
export type Model = ChatCompletionsModel | CompletionsModel | EmbeddingsModel;
export type SourceType = 'github' | 'motif' | 'website' | 'file-upload' | 'api-upload' | 'nango' | 'salesforce';

@@ -14,0 +14,0 @@ export interface Source {

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

export const OPENAI_CHAT_COMPLETIONS_MODELS = [
export const CHAT_COMPLETIONS_MODELS = [
'gpt-3.5-turbo',
'gpt-3.5-turbo-16k',
'gpt-3.5-turbo-1106',
'gpt-3.5-turbo-16k-0613',
'gpt-4',

@@ -11,4 +8,7 @@ 'gpt-4o',

'gpt-4-turbo-preview',
'meta-llama-3-70b-instruct',
'meta-llama-3-8b-instruct',
'mixtral-8x7b-instruct-v0.1',
];
export const OPENAI_COMPLETIONS_MODELS = [
export const COMPLETIONS_MODELS = [
'ada',

@@ -24,3 +24,3 @@ 'babbage',

];
export const OPENAI_EMBEDDINGS_MODEL = 'text-embedding-ada-002';
export const EMBEDDINGS_MODEL = 'text-embedding-ada-002';
//# sourceMappingURL=types.js.map
{
"name": "@markprompt/core",
"version": "0.30.0",
"version": "0.31.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

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