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

@promptbook/azure-openai

Package Overview
Dependencies
Maintainers
0
Versions
265
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@promptbook/azure-openai - npm Package Compare versions

Comparing version 0.59.0-21 to 0.59.0-23

esm/typings/src/cli/actions/hello.d.ts

2

esm/index.es.js

@@ -1015,5 +1015,5 @@ import { OpenAIClient, AzureKeyCredential } from '@azure/openai';

*/
var PROMPTBOOK_VERSION = '0.59.0-20';
var PROMPTBOOK_VERSION = '0.59.0-21';
export { AzureOpenAiExecutionTools, PROMPTBOOK_VERSION };
//# sourceMappingURL=index.es.js.map

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

import { prettifyPromptbookStringCli } from '../conversion/prettify/prettifyPromptbookStringCli';
import { promptbookCli } from '../cli/promptbookCli';
import { PROMPTBOOK_VERSION } from '../version';

@@ -8,4 +8,4 @@ export { PROMPTBOOK_VERSION };

declare const __: {
prettifyPromptbookStringCli: typeof prettifyPromptbookStringCli;
promptbookCli: typeof promptbookCli;
};
export { __ };

@@ -23,7 +23,7 @@ import { prettifyPromptbookString } from '../conversion/prettify/prettifyPromptbookString';

import { prepareKnowledgeFromMarkdown } from '../knowledge/prepare-knowledge/markdown/prepareKnowledgeFromMarkdown';
import { createPromptbookLibraryFromPromise } from '../library/constructors/createPromptbookLibraryFromPromise';
import { createPromptbookLibraryFromSources } from '../library/constructors/createPromptbookLibraryFromSources';
import { createPromptbookLibraryFromUrl } from '../library/constructors/createPromptbookLibraryFromUrl';
import { createPromptbookSublibrary } from '../library/constructors/createPromptbookSublibrary';
import { SimplePromptbookLibrary } from '../library/SimplePromptbookLibrary';
import { createLibraryFromJson } from '../library/constructors/createLibraryFromJson';
import { createLibraryFromPromise } from '../library/constructors/createLibraryFromPromise';
import { createLibraryFromUrl } from '../library/constructors/createLibraryFromUrl';
import { createSublibrary } from '../library/constructors/createSublibrary';
import { libraryToJson } from '../library/libraryToJson';
import { MultipleLlmExecutionTools } from '../llm-providers/multiple/MultipleLlmExecutionTools';

@@ -38,3 +38,3 @@ import { executionReportJsonToString } from '../types/execution-report/executionReportJsonToString';

export { addUsage, assertsExecutionSuccessful, checkExpectations, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, isPassingExpectations, prepareKnowledgeFromMarkdown, prettifyPromptbookString, usageToWorktime, };
export { createPromptbookLibraryFromPromise, createPromptbookLibraryFromSources, createPromptbookLibraryFromUrl, createPromptbookSublibrary, SimplePromptbookLibrary, };
export { createLibraryFromJson, createLibraryFromPromise, createLibraryFromUrl, createSublibrary, libraryToJson };
export { SimplePromptInterfaceTools };

@@ -41,0 +41,0 @@ export { promptbookJsonToString, promptbookStringToJson, validatePromptbookJson };

@@ -1,4 +0,4 @@

import { createPromptbookLibraryFromDirectory } from '../library/constructors/createPromptbookLibraryFromDirectory';
import { createLibraryFromDirectory } from '../library/constructors/createLibraryFromDirectory';
import { PROMPTBOOK_VERSION } from '../version';
export { PROMPTBOOK_VERSION };
export { createPromptbookLibraryFromDirectory };
export { createLibraryFromDirectory };

@@ -9,2 +9,3 @@ import type { CommonExecutionToolsOptions } from '../execution/CommonExecutionToolsOptions';

import type { PromptbookLibrary } from '../library/PromptbookLibrary';
import type { SimplePromptbookLibrary } from '../library/SimplePromptbookLibrary';
import type { ExecutionType } from '../types/ExecutionTypes';

@@ -30,5 +31,5 @@ import type { ModelRequirements, ModelVariant } from '../types/ModelRequirements';

export { EXPECTATION_UNITS };
export type { AvailableModel, client_id, CommonExecutionToolsOptions, ExecutionReportJson, ExecutionTools, ExecutionType, ExpectationAmount, Expectations, ExpectationUnit, FromtoItems, KnowledgeJson, LlmExecutionTools, LlmTemplateJson, MaterialKnowledgePieceJson, ModelRequirements, ModelVariant, Parameters, Prompt, PromptbookExecutor, PromptbookJson, PromptbookLibrary, PromptbookString, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptDialogJson, PromptResult, PromptResultUsage, PromptResultUsageCounts, PromptTemplateJson, PromptTemplateParameterJson, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptJson, ScriptLanguage, SimpleTemplateJson, string_char, string_char_emoji, string_chat_prompt, string_completion_prompt, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_javascript, string_javascript_name, string_license, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_person_fullname, string_prompt, string_promptbook_url, string_promptbook_url_with_hashtemplate, string_script, string_sha256, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_uri, string_uri_part, string_url, string_url_image, string_version, TaskProgress, UncertainNumber, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, };
export type { AvailableModel, client_id, CommonExecutionToolsOptions, ExecutionReportJson, ExecutionTools, ExecutionType, ExpectationAmount, Expectations, ExpectationUnit, FromtoItems, KnowledgeJson, LlmExecutionTools, LlmTemplateJson, MaterialKnowledgePieceJson, ModelRequirements, ModelVariant, Parameters, Prompt, PromptbookExecutor, PromptbookJson, PromptbookLibrary, PromptbookString, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptDialogJson, PromptResult, PromptResultUsage, PromptResultUsageCounts, PromptTemplateJson, PromptTemplateParameterJson, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptJson, ScriptLanguage, SimplePromptbookLibrary, SimpleTemplateJson, string_char, string_char_emoji, string_chat_prompt, string_completion_prompt, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_javascript, string_javascript_name, string_license, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_person_fullname, string_prompt, string_promptbook_url, string_promptbook_url_with_hashtemplate, string_script, string_sha256, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_uri, string_uri_part, string_url, string_url_image, string_version, TaskProgress, UncertainNumber, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, };
/**
* TODO: Delete type aliases (from ../types/typeAliases) that are not exported here
*/

@@ -9,2 +9,3 @@ import type { Prompt } from '../types/Prompt';

*
* @private use `createLibraryFromJson` instead
* @see https://github.com/webgptorg/promptbook#promptbook-library

@@ -19,4 +20,5 @@ */

*
* @private Use instead `createLibraryFromJson`
* Note: During the construction logic of all promptbooks are validated
* Note: It is not recommended to use this constructor directly, use `createPromptbookLibraryFromSources` *(or other variant)* instead
* Note: It is not recommended to use this constructor directly, use `createLibraryFromJson` *(or other variant)* instead
*/

@@ -23,0 +25,0 @@ constructor(...promptbooks: Array<PromptbookJson>);

@@ -13,3 +13,3 @@ import type { IDestroyable } from 'destroyable';

/**
* TODO: [โš–] Expose the library to be able to connect to same library via createPromptbookLibraryFromUrl
* TODO: [โš–] Expose the library to be able to connect to same library via createLibraryFromUrl
* TODO: Handle progress - support streaming

@@ -16,0 +16,0 @@ * TODO: [๐Ÿคนโ€โ™‚๏ธ] Do not hang up immediately but wait until client closes OR timeout

{
"name": "@promptbook/azure-openai",
"version": "0.59.0-21",
"version": "0.59.0-23",
"description": "Library to supercharge your use of large language models",

@@ -51,3 +51,3 @@ "private": false,

"peerDependencies": {
"@promptbook/core": "0.59.0-21"
"@promptbook/core": "0.59.0-23"
},

@@ -54,0 +54,0 @@ "main": "./umd/index.umd.js",

@@ -40,3 +40,3 @@ # ![Promptbook logo - cube with letters P and B](./other/design/logo-h1.png) Promptbook

import { createPromptbookExecutor, assertsExecutionSuccessful } from '@promptbook/core';
import { createPromptbookLibraryFromDirectory } from '@promptbook/node';
import { createLibraryFromDirectory } from '@promptbook/node';
import { JavascriptExecutionTools } from '@promptbook/execute-javascript';

@@ -46,3 +46,3 @@ import { OpenAiExecutionTools } from '@promptbook/openai';

// โ–ถ Create whole Promptbook library
const library = await createPromptbookLibraryFromDirectory('./promptbook-library');
const library = await createLibraryFromDirectory('./promptbook-library');

@@ -86,3 +86,3 @@ // โ–ถ Get one Promptbook

import { createPromptbookExecutor, assertsExecutionSuccessful } from '@promptbook/core';
import { createPromptbookLibraryFromDirectory } from '@promptbook/node';
import { createLibraryFromDirectory } from '@promptbook/node';
import { JavascriptExecutionTools } from '@promptbook/execute-javascript';

@@ -92,3 +92,3 @@ import { OpenAiExecutionTools } from '@promptbook/openai';

// โ–ถ Create whole Promptbook library
const library = await createPromptbookLibraryFromDirectory('./promptbook-library');
const library = await createLibraryFromDirectory('./promptbook-library');

@@ -95,0 +95,0 @@ // โ–ถ Get one Promptbook

@@ -1022,3 +1022,3 @@ (function (global, factory) {

*/
var PROMPTBOOK_VERSION = '0.59.0-20';
var PROMPTBOOK_VERSION = '0.59.0-21';

@@ -1025,0 +1025,0 @@ exports.AzureOpenAiExecutionTools = AzureOpenAiExecutionTools;

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

import { prettifyPromptbookStringCli } from '../conversion/prettify/prettifyPromptbookStringCli';
import { promptbookCli } from '../cli/promptbookCli';
import { PROMPTBOOK_VERSION } from '../version';

@@ -8,4 +8,4 @@ export { PROMPTBOOK_VERSION };

declare const __: {
prettifyPromptbookStringCli: typeof prettifyPromptbookStringCli;
promptbookCli: typeof promptbookCli;
};
export { __ };

@@ -23,7 +23,7 @@ import { prettifyPromptbookString } from '../conversion/prettify/prettifyPromptbookString';

import { prepareKnowledgeFromMarkdown } from '../knowledge/prepare-knowledge/markdown/prepareKnowledgeFromMarkdown';
import { createPromptbookLibraryFromPromise } from '../library/constructors/createPromptbookLibraryFromPromise';
import { createPromptbookLibraryFromSources } from '../library/constructors/createPromptbookLibraryFromSources';
import { createPromptbookLibraryFromUrl } from '../library/constructors/createPromptbookLibraryFromUrl';
import { createPromptbookSublibrary } from '../library/constructors/createPromptbookSublibrary';
import { SimplePromptbookLibrary } from '../library/SimplePromptbookLibrary';
import { createLibraryFromJson } from '../library/constructors/createLibraryFromJson';
import { createLibraryFromPromise } from '../library/constructors/createLibraryFromPromise';
import { createLibraryFromUrl } from '../library/constructors/createLibraryFromUrl';
import { createSublibrary } from '../library/constructors/createSublibrary';
import { libraryToJson } from '../library/libraryToJson';
import { MultipleLlmExecutionTools } from '../llm-providers/multiple/MultipleLlmExecutionTools';

@@ -38,3 +38,3 @@ import { executionReportJsonToString } from '../types/execution-report/executionReportJsonToString';

export { addUsage, assertsExecutionSuccessful, checkExpectations, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, isPassingExpectations, prepareKnowledgeFromMarkdown, prettifyPromptbookString, usageToWorktime, };
export { createPromptbookLibraryFromPromise, createPromptbookLibraryFromSources, createPromptbookLibraryFromUrl, createPromptbookSublibrary, SimplePromptbookLibrary, };
export { createLibraryFromJson, createLibraryFromPromise, createLibraryFromUrl, createSublibrary, libraryToJson };
export { SimplePromptInterfaceTools };

@@ -41,0 +41,0 @@ export { promptbookJsonToString, promptbookStringToJson, validatePromptbookJson };

@@ -1,4 +0,4 @@

import { createPromptbookLibraryFromDirectory } from '../library/constructors/createPromptbookLibraryFromDirectory';
import { createLibraryFromDirectory } from '../library/constructors/createLibraryFromDirectory';
import { PROMPTBOOK_VERSION } from '../version';
export { PROMPTBOOK_VERSION };
export { createPromptbookLibraryFromDirectory };
export { createLibraryFromDirectory };

@@ -9,2 +9,3 @@ import type { CommonExecutionToolsOptions } from '../execution/CommonExecutionToolsOptions';

import type { PromptbookLibrary } from '../library/PromptbookLibrary';
import type { SimplePromptbookLibrary } from '../library/SimplePromptbookLibrary';
import type { ExecutionType } from '../types/ExecutionTypes';

@@ -30,5 +31,5 @@ import type { ModelRequirements, ModelVariant } from '../types/ModelRequirements';

export { EXPECTATION_UNITS };
export type { AvailableModel, client_id, CommonExecutionToolsOptions, ExecutionReportJson, ExecutionTools, ExecutionType, ExpectationAmount, Expectations, ExpectationUnit, FromtoItems, KnowledgeJson, LlmExecutionTools, LlmTemplateJson, MaterialKnowledgePieceJson, ModelRequirements, ModelVariant, Parameters, Prompt, PromptbookExecutor, PromptbookJson, PromptbookLibrary, PromptbookString, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptDialogJson, PromptResult, PromptResultUsage, PromptResultUsageCounts, PromptTemplateJson, PromptTemplateParameterJson, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptJson, ScriptLanguage, SimpleTemplateJson, string_char, string_char_emoji, string_chat_prompt, string_completion_prompt, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_javascript, string_javascript_name, string_license, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_person_fullname, string_prompt, string_promptbook_url, string_promptbook_url_with_hashtemplate, string_script, string_sha256, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_uri, string_uri_part, string_url, string_url_image, string_version, TaskProgress, UncertainNumber, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, };
export type { AvailableModel, client_id, CommonExecutionToolsOptions, ExecutionReportJson, ExecutionTools, ExecutionType, ExpectationAmount, Expectations, ExpectationUnit, FromtoItems, KnowledgeJson, LlmExecutionTools, LlmTemplateJson, MaterialKnowledgePieceJson, ModelRequirements, ModelVariant, Parameters, Prompt, PromptbookExecutor, PromptbookJson, PromptbookLibrary, PromptbookString, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptDialogJson, PromptResult, PromptResultUsage, PromptResultUsageCounts, PromptTemplateJson, PromptTemplateParameterJson, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptJson, ScriptLanguage, SimplePromptbookLibrary, SimpleTemplateJson, string_char, string_char_emoji, string_chat_prompt, string_completion_prompt, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_javascript, string_javascript_name, string_license, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_person_fullname, string_prompt, string_promptbook_url, string_promptbook_url_with_hashtemplate, string_script, string_sha256, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_uri, string_uri_part, string_url, string_url_image, string_version, TaskProgress, UncertainNumber, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, };
/**
* TODO: Delete type aliases (from ../types/typeAliases) that are not exported here
*/

@@ -9,2 +9,3 @@ import type { Prompt } from '../types/Prompt';

*
* @private use `createLibraryFromJson` instead
* @see https://github.com/webgptorg/promptbook#promptbook-library

@@ -19,4 +20,5 @@ */

*
* @private Use instead `createLibraryFromJson`
* Note: During the construction logic of all promptbooks are validated
* Note: It is not recommended to use this constructor directly, use `createPromptbookLibraryFromSources` *(or other variant)* instead
* Note: It is not recommended to use this constructor directly, use `createLibraryFromJson` *(or other variant)* instead
*/

@@ -23,0 +25,0 @@ constructor(...promptbooks: Array<PromptbookJson>);

@@ -13,3 +13,3 @@ import type { IDestroyable } from 'destroyable';

/**
* TODO: [โš–] Expose the library to be able to connect to same library via createPromptbookLibraryFromUrl
* TODO: [โš–] Expose the library to be able to connect to same library via createLibraryFromUrl
* TODO: Handle progress - support streaming

@@ -16,0 +16,0 @@ * TODO: [๐Ÿคนโ€โ™‚๏ธ] Do not hang up immediately but wait until client closes OR timeout

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