@promptbook/remote-server 0.66.0-7 → 0.66.0-8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/index.es.js +1 -1
- package/esm/typings/src/_packages/azure-openai.index.d.ts +4 -0
- package/esm/typings/src/_packages/cli.index.d.ts +2 -0
- package/esm/typings/src/_packages/core.index.d.ts +2 -0
- package/esm/typings/src/llm-providers/azure-openai/createAzureOpenAiExecutionTools.d.ts +15 -0
- package/esm/typings/src/llm-providers/azure-openai/register-configuration.d.ts +9 -0
- package/esm/typings/src/llm-providers/azure-openai/register-constructor.d.ts +11 -0
- package/package.json +2 -2
- package/umd/index.umd.js +1 -1
package/esm/index.es.js
CHANGED
|
@@ -11,7 +11,7 @@ import OpenAI from 'openai';
|
|
|
11
11
|
/**
|
|
12
12
|
* The version of the Promptbook library
|
|
13
13
|
*/
|
|
14
|
-
var PROMPTBOOK_VERSION = '0.66.0-
|
|
14
|
+
var PROMPTBOOK_VERSION = '0.66.0-7';
|
|
15
15
|
// TODO: !!!! List here all the versions and annotate + put into script
|
|
16
16
|
|
|
17
17
|
/*! *****************************************************************************
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { PROMPTBOOK_VERSION } from '../version';
|
|
2
2
|
import { AzureOpenAiExecutionTools } from '../llm-providers/azure-openai/AzureOpenAiExecutionTools';
|
|
3
3
|
import type { AzureOpenAiExecutionToolsOptions } from '../llm-providers/azure-openai/AzureOpenAiExecutionToolsOptions';
|
|
4
|
+
import { createAzureOpenAiExecutionTools } from '../llm-providers/azure-openai/createAzureOpenAiExecutionTools';
|
|
5
|
+
import { _AzureOpenAiRegistration } from '../llm-providers/azure-openai/register-constructor';
|
|
4
6
|
export { PROMPTBOOK_VERSION };
|
|
5
7
|
export { AzureOpenAiExecutionTools };
|
|
6
8
|
export type { AzureOpenAiExecutionToolsOptions };
|
|
9
|
+
export { createAzureOpenAiExecutionTools };
|
|
10
|
+
export { _AzureOpenAiRegistration };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { PROMPTBOOK_VERSION } from '../version';
|
|
2
2
|
import { _CLI } from '../cli/main';
|
|
3
3
|
import { _AnthropicClaudeMetadataRegistration } from '../llm-providers/anthropic-claude/register-configuration';
|
|
4
|
+
import { _AzureOpenAiMetadataRegistration } from '../llm-providers/azure-openai/register-configuration';
|
|
4
5
|
import { _OpenAiMetadataRegistration } from '../llm-providers/openai/register-configuration';
|
|
5
6
|
export { PROMPTBOOK_VERSION };
|
|
6
7
|
export { _CLI };
|
|
7
8
|
export { _AnthropicClaudeMetadataRegistration };
|
|
9
|
+
export { _AzureOpenAiMetadataRegistration };
|
|
8
10
|
export { _OpenAiMetadataRegistration };
|
|
@@ -54,6 +54,7 @@ import { cacheLlmTools } from '../llm-providers/_common/utils/cache/cacheLlmTool
|
|
|
54
54
|
import { countTotalUsage } from '../llm-providers/_common/utils/count-total-usage/countTotalUsage';
|
|
55
55
|
import { limitTotalUsage } from '../llm-providers/_common/utils/count-total-usage/limitTotalUsage';
|
|
56
56
|
import { _AnthropicClaudeMetadataRegistration } from '../llm-providers/anthropic-claude/register-configuration';
|
|
57
|
+
import { _AzureOpenAiMetadataRegistration } from '../llm-providers/azure-openai/register-configuration';
|
|
57
58
|
import { joinLlmExecutionTools } from '../llm-providers/multiple/joinLlmExecutionTools';
|
|
58
59
|
import { _OpenAiMetadataRegistration } from '../llm-providers/openai/register-configuration';
|
|
59
60
|
import { preparePersona } from '../personas/preparePersona';
|
|
@@ -124,6 +125,7 @@ export { cacheLlmTools };
|
|
|
124
125
|
export { countTotalUsage };
|
|
125
126
|
export { limitTotalUsage };
|
|
126
127
|
export { _AnthropicClaudeMetadataRegistration };
|
|
128
|
+
export { _AzureOpenAiMetadataRegistration };
|
|
127
129
|
export { joinLlmExecutionTools };
|
|
128
130
|
export { _OpenAiMetadataRegistration };
|
|
129
131
|
export { preparePersona };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AzureOpenAiExecutionTools } from './AzureOpenAiExecutionTools';
|
|
2
|
+
import type { AzureOpenAiExecutionToolsOptions } from './AzureOpenAiExecutionToolsOptions';
|
|
3
|
+
/**
|
|
4
|
+
* Execution Tools for calling Azure OpenAI API
|
|
5
|
+
*
|
|
6
|
+
* @public exported from `@promptbook/azure-openai`
|
|
7
|
+
*/
|
|
8
|
+
export declare const createAzureOpenAiExecutionTools: ((options: AzureOpenAiExecutionToolsOptions) => AzureOpenAiExecutionTools) & {
|
|
9
|
+
packageName: string;
|
|
10
|
+
className: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* TODO: [🦺] Is there some way how to put `packageName` and `className` on top and function definition on bottom?
|
|
14
|
+
* TODO: [🎶] Naming "constructor" vs "creator" vs "factory"
|
|
15
|
+
*/
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @@@ registration1 of default configuration for Azure Open AI
|
|
3
|
+
*
|
|
4
|
+
* Note: [🏐] Configurations registrations are done in @@@ BUT constructor @@@
|
|
5
|
+
*
|
|
6
|
+
* @public exported from `@promptbook/core`
|
|
7
|
+
* @public exported from `@promptbook/cli`
|
|
8
|
+
*/
|
|
9
|
+
export declare const _AzureOpenAiMetadataRegistration: void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @@@ registration2
|
|
3
|
+
*
|
|
4
|
+
* Note: [🏐] Configurations registrations are done in @@@ BUT constructor @@@
|
|
5
|
+
*
|
|
6
|
+
* @public exported from `@promptbook/azure-openai`
|
|
7
|
+
*/
|
|
8
|
+
export declare const _AzureOpenAiRegistration: void;
|
|
9
|
+
/**
|
|
10
|
+
* TODO: [🎶] Naming "constructor" vs "creator" vs "factory"
|
|
11
|
+
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/remote-server",
|
|
3
|
-
"version": "0.66.0-
|
|
3
|
+
"version": "0.66.0-8",
|
|
4
4
|
"description": "Supercharge your use of large language models",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"module": "./esm/index.es.js",
|
|
48
48
|
"typings": "./esm/typings/src/_packages/remote-server.index.d.ts",
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@promptbook/core": "0.66.0-
|
|
50
|
+
"@promptbook/core": "0.66.0-8"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@anthropic-ai/sdk": "0.26.1",
|
package/umd/index.umd.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
/**
|
|
17
17
|
* The version of the Promptbook library
|
|
18
18
|
*/
|
|
19
|
-
var PROMPTBOOK_VERSION = '0.66.0-
|
|
19
|
+
var PROMPTBOOK_VERSION = '0.66.0-7';
|
|
20
20
|
// TODO: !!!! List here all the versions and annotate + put into script
|
|
21
21
|
|
|
22
22
|
/*! *****************************************************************************
|