@promptbook/core 0.77.0-6 → 0.77.0
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/README.md +0 -4
- package/esm/index.es.js +10 -6
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/execution/AvailableModel.d.ts +1 -1
- package/esm/typings/src/llm-providers/google/createGoogleExecutionTools.d.ts +0 -4
- package/package.json +1 -1
- package/umd/index.umd.js +10 -6
- package/umd/index.umd.js.map +1 -1
package/README.md
CHANGED
|
@@ -23,10 +23,6 @@
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
<blockquote style="color: #ff8811">
|
|
27
|
-
<b>⚠ Warning:</b> This is a pre-release version of the library. It is not yet ready for production use. Please look at <a href="https://www.npmjs.com/package/@promptbook/core?activeTab=versions">latest stable release</a>.
|
|
28
|
-
</blockquote>
|
|
29
|
-
|
|
30
26
|
## 📦 Package `@promptbook/core`
|
|
31
27
|
|
|
32
28
|
- Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
|
package/esm/index.es.js
CHANGED
|
@@ -23,7 +23,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
23
23
|
*
|
|
24
24
|
* @see https://github.com/webgptorg/promptbook
|
|
25
25
|
*/
|
|
26
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.77.0-
|
|
26
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.77.0-6';
|
|
27
27
|
/**
|
|
28
28
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
29
29
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -9625,7 +9625,14 @@ var $isRunningInNode = new Function("\n try {\n return this === global
|
|
|
9625
9625
|
*/
|
|
9626
9626
|
function $registeredLlmToolsMessage() {
|
|
9627
9627
|
var e_1, _a, e_2, _b;
|
|
9628
|
-
var env
|
|
9628
|
+
var env;
|
|
9629
|
+
if ($isRunningInNode()) {
|
|
9630
|
+
env = process.env;
|
|
9631
|
+
// <- TODO: [⚛] Some DRY way how to get to `process.env` and pass it into functions - ACRY search for `env`
|
|
9632
|
+
}
|
|
9633
|
+
else {
|
|
9634
|
+
env = {};
|
|
9635
|
+
}
|
|
9629
9636
|
/**
|
|
9630
9637
|
* Mixes registered LLM tools from $llmToolsMetadataRegister and $llmToolsRegister
|
|
9631
9638
|
*/
|
|
@@ -10156,10 +10163,7 @@ var _GoogleMetadataRegistration = $llmToolsMetadataRegister.register({
|
|
|
10156
10163
|
packageName: '@promptbook/google',
|
|
10157
10164
|
className: 'GoogleExecutionTools',
|
|
10158
10165
|
options: {
|
|
10159
|
-
apiKey: '
|
|
10160
|
-
isProxied: true,
|
|
10161
|
-
remoteUrl: DEFAULT_REMOTE_URL,
|
|
10162
|
-
path: DEFAULT_REMOTE_URL_PATH,
|
|
10166
|
+
apiKey: 'AI',
|
|
10163
10167
|
},
|
|
10164
10168
|
};
|
|
10165
10169
|
},
|