@askalf/dario 6.0.22 → 6.0.23

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.
@@ -281,6 +281,8 @@ export function toResponsesToolChoice(choice) {
281
281
  if (choice == null || typeof choice !== 'object')
282
282
  return choice;
283
283
  const c = choice;
284
+ if (c.type !== 'function')
285
+ return choice;
284
286
  const name = c.function?.name;
285
287
  if (typeof name === 'string' && name.length > 0) {
286
288
  return { type: 'function', name };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askalf/dario",
3
- "version": "6.0.22",
3
+ "version": "6.0.23",
4
4
  "description": "Use your Claude Pro/Max subscription in any tool — Cursor, Cline, Aider, the Agent SDK, your scripts — at subscription pricing, not per-token API bills. One local Anthropic + OpenAI-compatible endpoint.",
5
5
  "type": "module",
6
6
  "bin": {