smoltalk 0.0.57 → 0.0.59

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/functions.js CHANGED
@@ -8,7 +8,7 @@ function getStrategy(model) {
8
8
  return fromJSON(model);
9
9
  }
10
10
  export function splitConfig(config) {
11
- const { openAiApiKey, googleApiKey, ollamaApiKey, anthropicApiKey, ollamaHost, model: rawModel, provider, logLevel, statelog, ...promptConfig } = config;
11
+ const { openAiApiKey, googleApiKey, ollamaApiKey, anthropicApiKey, ollamaHost, model: rawModel, provider, logLevel, statelog, metadata, ...promptConfig } = config;
12
12
  const _model = new Model(rawModel);
13
13
  const model = _model.getResolvedModel();
14
14
  return {
@@ -22,6 +22,7 @@ export function splitConfig(config) {
22
22
  provider,
23
23
  logLevel,
24
24
  statelog,
25
+ metadata,
25
26
  },
26
27
  promptConfig,
27
28
  };
package/dist/types.d.ts CHANGED
@@ -169,6 +169,8 @@ export type SmolConfig = {
169
169
  debugMode: boolean;
170
170
  apiKey: string;
171
171
  }>;
172
+ /** If you register a new model, you can pass config options to the new model here. */
173
+ metadata?: Record<string, any>;
172
174
  };
173
175
  export type ToolLoopDetection = {
174
176
  enabled: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smoltalk",
3
- "version": "0.0.57",
3
+ "version": "0.0.59",
4
4
  "description": "A common interface for LLM APIs",
5
5
  "homepage": "https://github.com/egonSchiele/smoltalk",
6
6
  "scripts": {