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/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
@@ -1,7 +1,7 @@
1
1
  const manifest = {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "1998.2.39",
4
+ "version": "1998.2.40",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "1998.2.39",
4
+ "version": "1998.2.40",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",