@promptbook/azure-openai
Advanced tools
Comparing version 0.56.0 to 0.57.0-0
@@ -1021,5 +1021,5 @@ import { OpenAIClient, AzureKeyCredential } from '@azure/openai'; | ||
*/ | ||
var PROMPTBOOK_VERSION = '0.56.0-4'; | ||
var PROMPTBOOK_VERSION = '0.56.0'; | ||
export { AzureOpenAiExecutionTools, PROMPTBOOK_VERSION }; | ||
//# sourceMappingURL=index.es.js.map |
@@ -25,3 +25,3 @@ import type { Prompt } from '../../../../types/Prompt'; | ||
*/ | ||
gptChat(prompt: Pick<Prompt, 'content' | 'modelRequirements'>): Promise<PromptChatResult>; | ||
gptChat(prompt: Pick<Prompt, 'content' | 'modelRequirements' | 'expectFormat'>): Promise<PromptChatResult>; | ||
/** | ||
@@ -28,0 +28,0 @@ * Calls OpenAI API to use a complete model. |
@@ -0,1 +1,5 @@ | ||
import type { PostprocessingFunction } from '../execution/plugins/script-execution-tools/javascript/JavascriptExecutionToolsOptions'; | ||
import type { ExpectFormatCommand } from './Command'; | ||
import type { ModelRequirements } from './ModelRequirements'; | ||
import type { Expectations } from './PromptbookJson/PromptTemplateJson'; | ||
import type { string_name } from './typeAliases'; | ||
@@ -5,5 +9,2 @@ import type { string_prompt } from './typeAliases'; | ||
import type { string_title } from './typeAliases'; | ||
import type { PostprocessingFunction } from '../execution/plugins/script-execution-tools/javascript/JavascriptExecutionToolsOptions'; | ||
import type { ModelRequirements } from './ModelRequirements'; | ||
import type { Expectations } from './PromptbookJson/PromptTemplateJson'; | ||
/** | ||
@@ -44,2 +45,9 @@ * Prompt in a text along with model requirements, but without any execution or templating logic. | ||
/** | ||
* Expect this format of the answer | ||
* | ||
* Note: Expectations are performed after all postprocessing steps | ||
* @deprecated [๐] | ||
*/ | ||
readonly expectFormat?: ExpectFormatCommand['format']; | ||
/** | ||
* Unique identifier of the promptbook with specific template name as hash | ||
@@ -46,0 +54,0 @@ * |
{ | ||
"name": "@promptbook/azure-openai", | ||
"version": "0.56.0", | ||
"version": "0.57.0-0", | ||
"description": "Library to supercharge your use of large language models", | ||
@@ -51,3 +51,3 @@ "private": false, | ||
"peerDependencies": { | ||
"@promptbook/core": "0.56.0" | ||
"@promptbook/core": "0.57.0-0" | ||
}, | ||
@@ -54,0 +54,0 @@ "main": "./umd/index.umd.js", |
@@ -1028,3 +1028,3 @@ (function (global, factory) { | ||
*/ | ||
var PROMPTBOOK_VERSION = '0.56.0-4'; | ||
var PROMPTBOOK_VERSION = '0.56.0'; | ||
@@ -1031,0 +1031,0 @@ exports.AzureOpenAiExecutionTools = AzureOpenAiExecutionTools; |
@@ -25,3 +25,3 @@ import type { Prompt } from '../../../../types/Prompt'; | ||
*/ | ||
gptChat(prompt: Pick<Prompt, 'content' | 'modelRequirements'>): Promise<PromptChatResult>; | ||
gptChat(prompt: Pick<Prompt, 'content' | 'modelRequirements' | 'expectFormat'>): Promise<PromptChatResult>; | ||
/** | ||
@@ -28,0 +28,0 @@ * Calls OpenAI API to use a complete model. |
@@ -0,1 +1,5 @@ | ||
import type { PostprocessingFunction } from '../execution/plugins/script-execution-tools/javascript/JavascriptExecutionToolsOptions'; | ||
import type { ExpectFormatCommand } from './Command'; | ||
import type { ModelRequirements } from './ModelRequirements'; | ||
import type { Expectations } from './PromptbookJson/PromptTemplateJson'; | ||
import type { string_name } from './typeAliases'; | ||
@@ -5,5 +9,2 @@ import type { string_prompt } from './typeAliases'; | ||
import type { string_title } from './typeAliases'; | ||
import type { PostprocessingFunction } from '../execution/plugins/script-execution-tools/javascript/JavascriptExecutionToolsOptions'; | ||
import type { ModelRequirements } from './ModelRequirements'; | ||
import type { Expectations } from './PromptbookJson/PromptTemplateJson'; | ||
/** | ||
@@ -44,2 +45,9 @@ * Prompt in a text along with model requirements, but without any execution or templating logic. | ||
/** | ||
* Expect this format of the answer | ||
* | ||
* Note: Expectations are performed after all postprocessing steps | ||
* @deprecated [๐] | ||
*/ | ||
readonly expectFormat?: ExpectFormatCommand['format']; | ||
/** | ||
* Unique identifier of the promptbook with specific template name as hash | ||
@@ -46,0 +54,0 @@ * |
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
570393
9690