smoltalk 0.15.2 → 0.16.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 +36 -6
- package/dist/clients/baseClient.js +4 -3
- package/dist/clients/mlx.d.ts +12 -1
- package/dist/clients/mlx.js +23 -0
- package/dist/clients/structuredAfterTools.d.ts +36 -0
- package/dist/clients/structuredAfterTools.js +87 -0
- package/dist/clients/validationRetry.d.ts +5 -0
- package/dist/clients/validationRetry.js +24 -0
- package/dist/decide.d.ts +6 -3
- package/dist/decide.js +9 -6
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/models.d.ts +298 -56
- package/dist/models.js +340 -67
- package/dist/types.d.ts +6 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -119,6 +119,12 @@ export type SmolConfig = {
|
|
|
119
119
|
strict: boolean;
|
|
120
120
|
numRetries: number;
|
|
121
121
|
allowExtraKeys: boolean;
|
|
122
|
+
/** Local providers (`mlx`, `llama-cpp`) cannot enforce a schema on a
|
|
123
|
+
* request that carries tools, so a call with both is made as two
|
|
124
|
+
* requests: the tool round first, then the reply in the schema. Set
|
|
125
|
+
* this to `false` to send one request and leave the schema unenforced.
|
|
126
|
+
* Defaults to `true`. Google always makes two requests. */
|
|
127
|
+
separateFromTools: boolean;
|
|
122
128
|
}>;
|
|
123
129
|
/** Arbitrary provider-specific attributes passed directly to the underlying API call. */
|
|
124
130
|
rawAttributes?: Record<string, any>;
|