@promptbook/cli 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 +11 -11
- 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 +11 -11
- package/umd/index.umd.js.map +1 -1
|
@@ -10,9 +10,5 @@ export declare const createGoogleExecutionTools: ((options: GoogleExecutionTools
|
|
|
10
10
|
className: string;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
|
-
* TODO: [🧠][main] !!!! Make anonymous this with all LLM providers
|
|
14
|
-
* TODO: [🧠][🧱][main] !!!! Maybe change all `new GoogleExecutionTools` -> `createGoogleExecutionTools` in manual
|
|
15
|
-
* TODO: [🧠] Maybe auto-detect usage in browser and determine default value of `isProxied`
|
|
16
|
-
* TODO: [🦺] Is there some way how to put `packageName` and `className` on top and function definition on bottom?
|
|
17
13
|
* TODO: [🎶] Naming "constructor" vs "creator" vs "factory"
|
|
18
14
|
*/
|
package/package.json
CHANGED
package/umd/index.umd.js
CHANGED
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
*
|
|
50
50
|
* @see https://github.com/webgptorg/promptbook
|
|
51
51
|
*/
|
|
52
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.77.0-
|
|
52
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.77.0-6';
|
|
53
53
|
/**
|
|
54
54
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
55
55
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -1990,7 +1990,14 @@
|
|
|
1990
1990
|
*/
|
|
1991
1991
|
function $registeredLlmToolsMessage() {
|
|
1992
1992
|
var e_1, _a, e_2, _b;
|
|
1993
|
-
var env
|
|
1993
|
+
var env;
|
|
1994
|
+
if ($isRunningInNode()) {
|
|
1995
|
+
env = process.env;
|
|
1996
|
+
// <- TODO: [⚛] Some DRY way how to get to `process.env` and pass it into functions - ACRY search for `env`
|
|
1997
|
+
}
|
|
1998
|
+
else {
|
|
1999
|
+
env = {};
|
|
2000
|
+
}
|
|
1994
2001
|
/**
|
|
1995
2002
|
* Mixes registered LLM tools from $llmToolsMetadataRegister and $llmToolsRegister
|
|
1996
2003
|
*/
|
|
@@ -13594,10 +13601,7 @@
|
|
|
13594
13601
|
packageName: '@promptbook/google',
|
|
13595
13602
|
className: 'GoogleExecutionTools',
|
|
13596
13603
|
options: {
|
|
13597
|
-
apiKey: '
|
|
13598
|
-
isProxied: true,
|
|
13599
|
-
remoteUrl: DEFAULT_REMOTE_URL,
|
|
13600
|
-
path: DEFAULT_REMOTE_URL_PATH,
|
|
13604
|
+
apiKey: 'AI',
|
|
13601
13605
|
},
|
|
13602
13606
|
};
|
|
13603
13607
|
},
|
|
@@ -13803,7 +13807,7 @@
|
|
|
13803
13807
|
var createGoogleGenerativeAI = require('@ai-sdk/google').createGoogleGenerativeAI;
|
|
13804
13808
|
var googleGeminiVercelProvider = createGoogleGenerativeAI(__assign({}, options));
|
|
13805
13809
|
return createExecutionToolsFromVercelProvider(__assign({ title: 'Google', description: 'Implementation of Google models', vercelProvider: googleGeminiVercelProvider, availableModels: [
|
|
13806
|
-
// TODO:
|
|
13810
|
+
// TODO: [🕘] Maybe list models in same way as in other providers - in separate file with metadata
|
|
13807
13811
|
'gemini-1.5-flash',
|
|
13808
13812
|
'gemini-1.5-flash-latest',
|
|
13809
13813
|
'gemini-1.5-flash-001',
|
|
@@ -13825,10 +13829,6 @@
|
|
|
13825
13829
|
className: 'GoogleExecutionTools',
|
|
13826
13830
|
});
|
|
13827
13831
|
/**
|
|
13828
|
-
* TODO: [🧠][main] !!!! Make anonymous this with all LLM providers
|
|
13829
|
-
* TODO: [🧠][🧱][main] !!!! Maybe change all `new GoogleExecutionTools` -> `createGoogleExecutionTools` in manual
|
|
13830
|
-
* TODO: [🧠] Maybe auto-detect usage in browser and determine default value of `isProxied`
|
|
13831
|
-
* TODO: [🦺] Is there some way how to put `packageName` and `className` on top and function definition on bottom?
|
|
13832
13832
|
* TODO: [🎶] Naming "constructor" vs "creator" vs "factory"
|
|
13833
13833
|
*/
|
|
13834
13834
|
|