utilitas 1998.2.39 → 1998.2.40
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/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/lib/alan.mjs +0 -2
- package/lib/manifest.mjs +1 -1
- package/package.json +1 -1
package/lib/alan.mjs
CHANGED
|
@@ -101,7 +101,6 @@ const clients = {};
|
|
|
101
101
|
const size8k = 7680 * 4320;
|
|
102
102
|
const MAX_TOOL_RECURSION = 10;
|
|
103
103
|
const LOG = { log: true };
|
|
104
|
-
const OPENAI_BASE_URL = 'https://api.openai.com/v1';
|
|
105
104
|
const sessionType = `${name.toUpperCase()}-SESSION`;
|
|
106
105
|
const unifyProvider = options => unifyType(options?.provider, 'AI provider');
|
|
107
106
|
const unifyEngine = options => unifyType(options?.engine, 'AI engine');
|
|
@@ -111,7 +110,6 @@ const renderText = (t, o) => _renderText(t, { extraCodeBlock: 0, ...o || {} });
|
|
|
111
110
|
const log = (cnt, opt) => _log(cnt, import.meta.url, { time: 1, ...opt || {} });
|
|
112
111
|
const CONTENT_IS_REQUIRED = 'Content is required.';
|
|
113
112
|
const assertContent = content => assert(content.length, CONTENT_IS_REQUIRED);
|
|
114
|
-
const packThink = thk => thk ? [`${THINK_STR}\n${thk}\n${THINK_END}`] : [];
|
|
115
113
|
const countToolCalls = r => r?.split('\n').filter(x => x === TOOLS_STR).length;
|
|
116
114
|
|
|
117
115
|
const DEFAULT_MODELS = {
|
package/lib/manifest.mjs
CHANGED