From 66cc6ac7541ccb49bf1ca35f9b5c05ee6270e44b Mon Sep 17 00:00:00 2001 From: babayaga Date: Thu, 3 Apr 2025 00:05:33 +0200 Subject: [PATCH] latest --- packages/ai-tools/dist/types_kbot.d.ts | 31 +++++++++++++++++++++----- packages/ai-tools/src/types_kbot.ts | 31 +++++++++++++++++++++----- 2 files changed, 50 insertions(+), 12 deletions(-) diff --git a/packages/ai-tools/dist/types_kbot.d.ts b/packages/ai-tools/dist/types_kbot.d.ts index 93ab5775..1c12f76f 100644 --- a/packages/ai-tools/dist/types_kbot.d.ts +++ b/packages/ai-tools/dist/types_kbot.d.ts @@ -2,7 +2,7 @@ export interface IKBotOptions { /** Target directory */ path?: string; /** The prompt. Supports file paths and environment variables. */ - prompt?: string; + prompt?: string | undefined; /** Optional output path for modified files (Tool mode only) */ output?: string | undefined; /** Optional destination path for the result, will substitute ${MODEL_NAME} and ${ROUTER} in the path. Optional, used for "completion" mode */ @@ -34,6 +34,7 @@ export interface IKBotOptions { aion-labs/aion-1.0-mini | paid aion-labs/aion-rp-llama-3.1-8b | paid jondurbin/airoboros-l2-70b | paid + allenai/molmo-7b-d:free | free allenai/olmo-2-0325-32b-instruct | paid amazon/nova-lite-v1 | paid amazon/nova-micro-v1 | paid @@ -62,6 +63,7 @@ export interface IKBotOptions { anthropic/claude-2.1 | paid anthropic/claude-2.1:beta | paid openrouter/auto | paid + bytedance-research/ui-tars-72b:free | free cohere/command | paid cohere/command-a | paid cohere/command-r | paid @@ -74,6 +76,9 @@ export interface IKBotOptions { deepseek/deepseek-r1-zero:free | free deepseek/deepseek-chat | paid deepseek/deepseek-chat:free | free + deepseek/deepseek-chat-v3-0324 | paid + deepseek/deepseek-chat-v3-0324:free | free + deepseek/deepseek-v3-base:free | free deepseek/deepseek-r1 | paid deepseek/deepseek-r1:free | free deepseek/deepseek-r1-distill-llama-70b | paid @@ -96,24 +101,25 @@ export interface IKBotOptions { google/gemini-2.0-flash-lite-001 | paid google/gemini-2.0-flash-thinking-exp-1219:free | free google/gemini-2.0-flash-thinking-exp:free | free - google/gemini-exp-1206:free | free google/gemini-flash-1.5 | paid google/gemini-flash-1.5-8b | paid google/gemini-flash-1.5-8b-exp | paid google/gemini-2.0-flash-001 | paid google/gemini-2.0-flash-exp:free | free - google/gemini-2.0-flash-lite-preview-02-05:free | free google/gemini-pro | paid google/gemini-pro-1.5 | paid google/gemini-2.0-pro-exp-02-05:free | free + google/gemini-2.5-pro-exp-03-25:free | free google/gemini-pro-vision | paid google/gemma-2-27b-it | paid google/gemma-2-9b-it | paid google/gemma-2-9b-it:free | free + google/gemma-3-12b-it | paid google/gemma-3-12b-it:free | free google/gemma-3-1b-it:free | free google/gemma-3-27b-it | paid google/gemma-3-27b-it:free | free + google/gemma-3-4b-it | paid google/gemma-3-4b-it:free | free google/gemma-7b-it | paid google/learnlm-1.5-pro-experimental:free | free @@ -129,7 +135,6 @@ export interface IKBotOptions { liquid/lfm-3b | paid liquid/lfm-40b | paid liquid/lfm-7b | paid - allenai/llama-3.1-tulu-3-405b | paid meta-llama/llama-guard-3-8b | paid alpindale/magnum-72b | paid anthracite-org/magnum-v2-72b | paid @@ -174,6 +179,7 @@ export interface IKBotOptions { mistralai/codestral-2501 | paid mistralai/codestral-mamba | paid mistralai/ministral-3b | paid + mistral/ministral-8b | paid mistralai/ministral-8b | paid mistralai/mistral-7b-instruct | paid mistralai/mistral-7b-instruct:free | free @@ -185,6 +191,7 @@ export interface IKBotOptions { mistralai/mistral-small-24b-instruct-2501 | paid mistralai/mistral-small-24b-instruct-2501:free | free mistralai/mistral-small-3.1-24b-instruct | paid + mistralai/mistral-small-3.1-24b-instruct:free | free mistralai/mixtral-8x22b-instruct | paid mistralai/mixtral-8x7b | paid mistralai/mixtral-8x7b-instruct | paid @@ -239,14 +246,13 @@ export interface IKBotOptions { openai/o1-mini-2024-09-12 | paid openai/o1-preview | paid openai/o1-preview-2024-09-12 | paid + openai/o1-pro | paid openai/o3-mini | paid openai/o3-mini-high | paid openchat/openchat-7b | paid openchat/openchat-7b:free | free teknium/openhermes-2.5-mistral-7b | paid - perplexity/llama-3.1-sonar-large-128k-chat | paid perplexity/llama-3.1-sonar-large-128k-online | paid - perplexity/llama-3.1-sonar-small-128k-chat | paid perplexity/llama-3.1-sonar-small-128k-online | paid perplexity/r1-1776 | paid perplexity/sonar | paid @@ -264,10 +270,13 @@ export interface IKBotOptions { qwen/qwen-plus | paid qwen/qwen-turbo | paid qwen/qwen2.5-32b-instruct | paid + qwen/qwen2.5-vl-32b-instruct:free | free + qwen/qwen2.5-vl-3b-instruct:free | free qwen/qwen2.5-vl-72b-instruct | paid qwen/qwen2.5-vl-72b-instruct:free | free qwen/qwen-2.5-vl-72b-instruct | paid qwen/qwen-2.5-vl-7b-instruct | paid + qwen/qwen-2.5-vl-7b-instruct:free | free qwen/qwq-32b | paid qwen/qwq-32b:free | free qwen/qwq-32b-preview | paid @@ -277,6 +286,7 @@ export interface IKBotOptions { qwen/qwen-2.5-7b-instruct | paid qwen/qwen-2.5-coder-32b-instruct | paid qwen/qwen-2.5-coder-32b-instruct:free | free + featherless/qwerky-72b:free | free rekaai/reka-flash-3:free | free undi95/remm-slerp-l2-13b | paid thedrummer/rocinante-12b | paid @@ -293,6 +303,8 @@ export interface IKBotOptions { thedrummer/skyfall-36b-v2 | paid undi95/toppy-m-7b | paid undi95/toppy-m-7b:free | free + scb10x/llama3.1-typhoon2-70b-instruct | paid + scb10x/llama3.1-typhoon2-8b-instruct | paid thedrummer/unslopnemo-12b | paid microsoft/wizardlm-2-7b | paid microsoft/wizardlm-2-8x22b | paid @@ -339,17 +351,22 @@ export interface IKBotOptions { gpt-4o-mini-realtime-preview-2024-12-17 gpt-4o-mini-search-preview gpt-4o-mini-search-preview-2025-03-11 + gpt-4o-mini-transcribe + gpt-4o-mini-tts gpt-4o-realtime-preview gpt-4o-realtime-preview-2024-10-01 gpt-4o-realtime-preview-2024-12-17 gpt-4o-search-preview gpt-4o-search-preview-2025-03-11 + gpt-4o-transcribe o1 o1-2024-12-17 o1-mini o1-mini-2024-09-12 o1-preview o1-preview-2024-09-12 + o1-pro + o1-pro-2025-03-19 o3-mini o3-mini-2025-01-31 omni-moderation-2024-09-26 @@ -410,4 +427,6 @@ export interface IKBotOptions { filters?: (string | ("JSON" | "JSONUnescape" | "JSONPretty" | "AlphaSort" | "code" | "JSONParse" | "trim")[] | string[] | ((...args_0: unknown[]) => unknown)[]); /** Dry run - only write out parameters without making API calls */ dry?: (boolean | string); + /** Format for structured outputs. Can be a Zod schema, a Zod schema string, a JSON schema string, or a path to a JSON file. */ + format?: (string | any) | undefined; } diff --git a/packages/ai-tools/src/types_kbot.ts b/packages/ai-tools/src/types_kbot.ts index 909dba60..f9fd90ec 100644 --- a/packages/ai-tools/src/types_kbot.ts +++ b/packages/ai-tools/src/types_kbot.ts @@ -2,7 +2,7 @@ export interface IKBotOptions { /** Target directory */ path?: string; /** The prompt. Supports file paths and environment variables. */ - prompt?: string; + prompt?: string | undefined; /** Optional output path for modified files (Tool mode only) */ output?: string | undefined; /** Optional destination path for the result, will substitute ${MODEL_NAME} and ${ROUTER} in the path. Optional, used for "completion" mode */ @@ -34,6 +34,7 @@ export interface IKBotOptions { aion-labs/aion-1.0-mini | paid aion-labs/aion-rp-llama-3.1-8b | paid jondurbin/airoboros-l2-70b | paid + allenai/molmo-7b-d:free | free allenai/olmo-2-0325-32b-instruct | paid amazon/nova-lite-v1 | paid amazon/nova-micro-v1 | paid @@ -62,6 +63,7 @@ export interface IKBotOptions { anthropic/claude-2.1 | paid anthropic/claude-2.1:beta | paid openrouter/auto | paid + bytedance-research/ui-tars-72b:free | free cohere/command | paid cohere/command-a | paid cohere/command-r | paid @@ -74,6 +76,9 @@ export interface IKBotOptions { deepseek/deepseek-r1-zero:free | free deepseek/deepseek-chat | paid deepseek/deepseek-chat:free | free + deepseek/deepseek-chat-v3-0324 | paid + deepseek/deepseek-chat-v3-0324:free | free + deepseek/deepseek-v3-base:free | free deepseek/deepseek-r1 | paid deepseek/deepseek-r1:free | free deepseek/deepseek-r1-distill-llama-70b | paid @@ -96,24 +101,25 @@ export interface IKBotOptions { google/gemini-2.0-flash-lite-001 | paid google/gemini-2.0-flash-thinking-exp-1219:free | free google/gemini-2.0-flash-thinking-exp:free | free - google/gemini-exp-1206:free | free google/gemini-flash-1.5 | paid google/gemini-flash-1.5-8b | paid google/gemini-flash-1.5-8b-exp | paid google/gemini-2.0-flash-001 | paid google/gemini-2.0-flash-exp:free | free - google/gemini-2.0-flash-lite-preview-02-05:free | free google/gemini-pro | paid google/gemini-pro-1.5 | paid google/gemini-2.0-pro-exp-02-05:free | free + google/gemini-2.5-pro-exp-03-25:free | free google/gemini-pro-vision | paid google/gemma-2-27b-it | paid google/gemma-2-9b-it | paid google/gemma-2-9b-it:free | free + google/gemma-3-12b-it | paid google/gemma-3-12b-it:free | free google/gemma-3-1b-it:free | free google/gemma-3-27b-it | paid google/gemma-3-27b-it:free | free + google/gemma-3-4b-it | paid google/gemma-3-4b-it:free | free google/gemma-7b-it | paid google/learnlm-1.5-pro-experimental:free | free @@ -129,7 +135,6 @@ export interface IKBotOptions { liquid/lfm-3b | paid liquid/lfm-40b | paid liquid/lfm-7b | paid - allenai/llama-3.1-tulu-3-405b | paid meta-llama/llama-guard-3-8b | paid alpindale/magnum-72b | paid anthracite-org/magnum-v2-72b | paid @@ -174,6 +179,7 @@ export interface IKBotOptions { mistralai/codestral-2501 | paid mistralai/codestral-mamba | paid mistralai/ministral-3b | paid + mistral/ministral-8b | paid mistralai/ministral-8b | paid mistralai/mistral-7b-instruct | paid mistralai/mistral-7b-instruct:free | free @@ -185,6 +191,7 @@ export interface IKBotOptions { mistralai/mistral-small-24b-instruct-2501 | paid mistralai/mistral-small-24b-instruct-2501:free | free mistralai/mistral-small-3.1-24b-instruct | paid + mistralai/mistral-small-3.1-24b-instruct:free | free mistralai/mixtral-8x22b-instruct | paid mistralai/mixtral-8x7b | paid mistralai/mixtral-8x7b-instruct | paid @@ -239,14 +246,13 @@ export interface IKBotOptions { openai/o1-mini-2024-09-12 | paid openai/o1-preview | paid openai/o1-preview-2024-09-12 | paid + openai/o1-pro | paid openai/o3-mini | paid openai/o3-mini-high | paid openchat/openchat-7b | paid openchat/openchat-7b:free | free teknium/openhermes-2.5-mistral-7b | paid - perplexity/llama-3.1-sonar-large-128k-chat | paid perplexity/llama-3.1-sonar-large-128k-online | paid - perplexity/llama-3.1-sonar-small-128k-chat | paid perplexity/llama-3.1-sonar-small-128k-online | paid perplexity/r1-1776 | paid perplexity/sonar | paid @@ -264,10 +270,13 @@ export interface IKBotOptions { qwen/qwen-plus | paid qwen/qwen-turbo | paid qwen/qwen2.5-32b-instruct | paid + qwen/qwen2.5-vl-32b-instruct:free | free + qwen/qwen2.5-vl-3b-instruct:free | free qwen/qwen2.5-vl-72b-instruct | paid qwen/qwen2.5-vl-72b-instruct:free | free qwen/qwen-2.5-vl-72b-instruct | paid qwen/qwen-2.5-vl-7b-instruct | paid + qwen/qwen-2.5-vl-7b-instruct:free | free qwen/qwq-32b | paid qwen/qwq-32b:free | free qwen/qwq-32b-preview | paid @@ -277,6 +286,7 @@ export interface IKBotOptions { qwen/qwen-2.5-7b-instruct | paid qwen/qwen-2.5-coder-32b-instruct | paid qwen/qwen-2.5-coder-32b-instruct:free | free + featherless/qwerky-72b:free | free rekaai/reka-flash-3:free | free undi95/remm-slerp-l2-13b | paid thedrummer/rocinante-12b | paid @@ -293,6 +303,8 @@ export interface IKBotOptions { thedrummer/skyfall-36b-v2 | paid undi95/toppy-m-7b | paid undi95/toppy-m-7b:free | free + scb10x/llama3.1-typhoon2-70b-instruct | paid + scb10x/llama3.1-typhoon2-8b-instruct | paid thedrummer/unslopnemo-12b | paid microsoft/wizardlm-2-7b | paid microsoft/wizardlm-2-8x22b | paid @@ -339,17 +351,22 @@ export interface IKBotOptions { gpt-4o-mini-realtime-preview-2024-12-17 gpt-4o-mini-search-preview gpt-4o-mini-search-preview-2025-03-11 + gpt-4o-mini-transcribe + gpt-4o-mini-tts gpt-4o-realtime-preview gpt-4o-realtime-preview-2024-10-01 gpt-4o-realtime-preview-2024-12-17 gpt-4o-search-preview gpt-4o-search-preview-2025-03-11 + gpt-4o-transcribe o1 o1-2024-12-17 o1-mini o1-mini-2024-09-12 o1-preview o1-preview-2024-09-12 + o1-pro + o1-pro-2025-03-19 o3-mini o3-mini-2025-01-31 omni-moderation-2024-09-26 @@ -410,4 +427,6 @@ export interface IKBotOptions { filters?: (string | ("JSON" | "JSONUnescape" | "JSONPretty" | "AlphaSort" | "code" | "JSONParse" | "trim")[] | string[] | ((...args_0: unknown[]) => unknown)[]); /** Dry run - only write out parameters without making API calls */ dry?: (boolean | string); + /** Format for structured outputs. Can be a Zod schema, a Zod schema string, a JSON schema string, or a path to a JSON file. */ + format?: (string | any) | undefined; } \ No newline at end of file