ai tools : fs : remove base64

This commit is contained in:
lovebird 2025-06-03 20:54:47 +02:00
parent 6d341c546f
commit bf3512af90
5 changed files with 143 additions and 95 deletions

File diff suppressed because one or more lines are too long

View File

@ -9,6 +9,8 @@ export interface IKBotOptions {
dst?: string | undefined;
/** How to handle output if --dst file already exists: "concat" (append) or "merge" (try to merge structures if possible, otherwise append). Only used if --dst is specified. */
append?: ("concat" | "merge") | undefined;
/** Specify how to wrap the output, "meta (file name, absolute path, cwd)" or "none". */
wrap?: "meta" | "none";
/** Iterate over items, supported: GLOB | Path to JSON File | array of strings (comma separated). To test different models, use --each="gpt-3.5-turbo,gpt-4o", the actual string will exposed as variable `ITEM`, eg: --dst="${ITEM}-output.md" */
each?: string | undefined;
/** Disable tools categories, eg: --disable=fs,git,interact,terminal,search,web,email,user */
@ -19,6 +21,8 @@ export interface IKBotOptions {
tools?: (string[] | string);
/** Comma separated glob patterns or paths, eg --include=src/*.tsx,src/*.ts --include=package.json */
include?: string[] | undefined;
/** Comma separated glob patterns or paths, eg --exclude=src/*.tsx,src/*.ts --exclude=package.json */
exclude?: string[] | undefined;
/** Explicit API key to use */
api_key?: string | undefined;
/** AI model to use for processing. Available models:
@ -28,17 +32,12 @@ export interface IKBotOptions {
01-ai/yi-large | paid
aetherwiing/mn-starcannon-12b | paid
agentica-org/deepcoder-14b-preview:free | free
ai21/jamba-1-5-large | paid
ai21/jamba-1-5-mini | paid
ai21/jamba-1.6-large | paid
ai21/jamba-instruct | paid
ai21/jamba-1.6-mini | paid
aion-labs/aion-1.0 | paid
aion-labs/aion-1.0-mini | paid
aion-labs/aion-rp-llama-3.1-8b | paid
jondurbin/airoboros-l2-70b | paid
alfredpros/codellama-7b-instruct-solidity | paid
allenai/molmo-7b-d:free | free
amazon/nova-lite-v1 | paid
amazon/nova-micro-v1 | paid
amazon/nova-pro-v1 | paid
@ -59,15 +58,23 @@ export interface IKBotOptions {
anthropic/claude-3.7-sonnet | paid
anthropic/claude-3.7-sonnet:beta | paid
anthropic/claude-3.7-sonnet:thinking | paid
anthropic/claude-opus-4 | paid
anthropic/claude-sonnet-4 | paid
anthropic/claude-2 | paid
anthropic/claude-2:beta | paid
anthropic/claude-2.0 | paid
anthropic/claude-2.0:beta | paid
anthropic/claude-2.1 | paid
anthropic/claude-2.1:beta | paid
arcee-ai/arcee-blitz | paid
arcee-ai/caller-large | paid
arcee-ai/coder-large | paid
arcee-ai/maestro-reasoning | paid
arcee-ai/spotlight | paid
arcee-ai/virtuoso-large | paid
arcee-ai/virtuoso-medium-v2 | paid
arliai/qwq-32b-arliai-rpr-v1:free | free
openrouter/auto | paid
bytedance-research/ui-tars-72b:free | free
cohere/command | paid
cohere/command-a | paid
cohere/command-r | paid
@ -77,6 +84,10 @@ export interface IKBotOptions {
cohere/command-r-plus-04-2024 | paid
cohere/command-r-plus-08-2024 | paid
cohere/command-r7b-12-2024 | paid
deepseek/deepseek-prover-v2 | paid
deepseek/deepseek-prover-v2:free | free
deepseek/deepseek-r1-0528-qwen3-8b | paid
deepseek/deepseek-r1-0528-qwen3-8b:free | free
deepseek/deepseek-r1-zero:free | free
deepseek/deepseek-chat | paid
deepseek/deepseek-chat:free | free
@ -85,6 +96,8 @@ export interface IKBotOptions {
deepseek/deepseek-v3-base:free | free
deepseek/deepseek-r1 | paid
deepseek/deepseek-r1:free | free
deepseek/deepseek-r1-0528 | paid
deepseek/deepseek-r1-0528:free | free
deepseek/deepseek-r1-distill-llama-70b | paid
deepseek/deepseek-r1-distill-llama-70b:free | free
deepseek/deepseek-r1-distill-llama-8b | paid
@ -93,7 +106,7 @@ export interface IKBotOptions {
deepseek/deepseek-r1-distill-qwen-14b:free | free
deepseek/deepseek-r1-distill-qwen-32b | paid
deepseek/deepseek-r1-distill-qwen-32b:free | free
cognitivecomputations/dolphin-mixtral-8x7b | paid
deepseek/deepseek-r1-distill-qwen-7b | paid
cognitivecomputations/dolphin-mixtral-8x22b | paid
cognitivecomputations/dolphin3.0-mistral-24b:free | free
cognitivecomputations/dolphin3.0-r1-mistral-24b:free | free
@ -105,20 +118,18 @@ export interface IKBotOptions {
alpindale/goliath-120b | paid
google/gemini-flash-1.5 | paid
google/gemini-flash-1.5-8b | paid
google/gemini-flash-1.5-8b-exp | paid
google/gemini-pro-1.5 | paid
google/gemini-2.0-flash-001 | paid
google/gemini-2.0-flash-exp:free | free
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-2.5-flash-preview | paid
google/gemini-2.5-flash-preview:thinking | paid
google/gemini-2.5-pro-exp-03-25:free | free
google/gemini-2.5-pro-preview-03-25 | paid
google/gemini-pro | paid
google/gemini-pro-vision | paid
google/gemini-2.5-flash-preview-05-20 | paid
google/gemini-2.5-flash-preview-05-20:thinking | paid
google/gemini-2.5-pro-exp-03-25 | paid
google/gemini-2.5-pro-preview | paid
google/gemma-2-27b-it | paid
google/gemma-2b-it | paid
google/gemma-2-9b-it | paid
google/gemma-2-9b-it:free | free
google/gemma-3-12b-it | paid
@ -128,16 +139,11 @@ export interface IKBotOptions {
google/gemma-3-27b-it:free | free
google/gemma-3-4b-it | paid
google/gemma-3-4b-it:free | free
google/learnlm-1.5-pro-experimental:free | free
google/palm-2-chat-bison | paid
google/palm-2-chat-bison-32k | paid
google/palm-2-codechat-bison | paid
google/palm-2-codechat-bison-32k | paid
huggingfaceh4/zephyr-7b-beta:free | free
google/gemma-3n-e4b-it:free | free
inception/mercury-coder-small-beta | paid
infermatic/mn-inferor-12b | paid
inflection/inflection-3-pi | paid
inflection/inflection-3-productivity | paid
latitudegames/wayfarer-large-70b-llama-3.3 | paid
liquid/lfm-3b | paid
liquid/lfm-40b | paid
liquid/lfm-7b | paid
@ -146,7 +152,6 @@ export interface IKBotOptions {
anthracite-org/magnum-v2-72b | paid
anthracite-org/magnum-v4-72b | paid
mancer/weaver | paid
meta-llama/llama-2-13b-chat | paid
meta-llama/llama-2-70b-chat | paid
meta-llama/llama-3-70b-instruct | paid
meta-llama/llama-3-8b-instruct | paid
@ -165,13 +170,19 @@ export interface IKBotOptions {
meta-llama/llama-3.2-90b-vision-instruct | paid
meta-llama/llama-3.3-70b-instruct | paid
meta-llama/llama-3.3-70b-instruct:free | free
meta-llama/llama-3.3-8b-instruct:free | free
meta-llama/llama-4-maverick | paid
meta-llama/llama-4-maverick:free | free
meta-llama/llama-4-scout | paid
meta-llama/llama-4-scout:free | free
meta-llama/llama-guard-4-12b | paid
meta-llama/llama-guard-2-8b | paid
microsoft/mai-ds-r1:free | free
microsoft/phi-4 | paid
microsoft/phi-4-multimodal-instruct | paid
microsoft/phi-4-reasoning:free | free
microsoft/phi-4-reasoning-plus | paid
microsoft/phi-4-reasoning-plus:free | free
microsoft/phi-3-medium-128k-instruct | paid
microsoft/phi-3-mini-128k-instruct | paid
microsoft/phi-3.5-mini-128k-instruct | paid
@ -185,15 +196,16 @@ export interface IKBotOptions {
mistralai/mistral-small | paid
mistralai/mistral-tiny | paid
mistralai/codestral-2501 | paid
mistralai/codestral-mamba | paid
mistralai/devstral-small | paid
mistralai/devstral-small:free | free
mistralai/ministral-3b | paid
mistral/ministral-8b | paid
mistralai/ministral-8b | paid
mistralai/mistral-7b-instruct | paid
mistralai/mistral-7b-instruct:free | free
mistralai/mistral-7b-instruct-v0.1 | paid
mistralai/mistral-7b-instruct-v0.2 | paid
mistralai/mistral-7b-instruct-v0.3 | paid
mistralai/mistral-medium-3 | paid
mistralai/mistral-nemo | paid
mistralai/mistral-nemo:free | free
mistralai/mistral-small-24b-instruct-2501 | paid
@ -210,24 +222,23 @@ export interface IKBotOptions {
gryphe/mythomax-l2-13b | paid
neversleep/llama-3-lumimaid-70b | paid
neversleep/llama-3-lumimaid-8b | paid
neversleep/llama-3-lumimaid-8b:extended | paid
neversleep/llama-3.1-lumimaid-70b | paid
neversleep/llama-3.1-lumimaid-8b | paid
neversleep/noromaid-20b | paid
nousresearch/deephermes-3-llama-3-8b-preview:free | free
nousresearch/nous-hermes-llama2-13b | paid
nousresearch/deephermes-3-mistral-24b-preview:free | free
nousresearch/nous-hermes-2-mixtral-8x7b-dpo | paid
nousresearch/hermes-3-llama-3.1-405b | paid
nousresearch/hermes-3-llama-3.1-70b | paid
nousresearch/hermes-2-pro-llama-3-8b | paid
nvidia/llama-3.1-nemotron-70b-instruct | paid
nvidia/llama-3.1-nemotron-70b-instruct:free | free
nvidia/llama-3.1-nemotron-nano-8b-v1:free | free
nvidia/llama-3.1-nemotron-ultra-253b-v1 | paid
nvidia/llama-3.1-nemotron-ultra-253b-v1:free | free
nvidia/llama-3.3-nemotron-super-49b-v1 | paid
nvidia/llama-3.3-nemotron-super-49b-v1:free | free
open-r1/olympiccoder-32b:free | free
open-r1/olympiccoder-7b:free | free
openai/chatgpt-4o-latest | paid
openai/codex-mini | paid
openai/gpt-3.5-turbo | paid
openai/gpt-3.5-turbo-0613 | paid
openai/gpt-3.5-turbo-16k | paid
@ -265,7 +276,8 @@ export interface IKBotOptions {
openai/o3-mini-high | paid
openai/o4-mini | paid
openai/o4-mini-high | paid
openchat/openchat-7b | paid
opengvlab/internvl3-14b:free | free
opengvlab/internvl3-2b:free | free
all-hands/openhands-lm-32b-v0.1 | paid
perplexity/llama-3.1-sonar-large-128k-online | paid
perplexity/llama-3.1-sonar-small-128k-online | paid
@ -282,19 +294,26 @@ export interface IKBotOptions {
qwen/qwen-max | paid
qwen/qwen-plus | paid
qwen/qwen-turbo | paid
qwen/qwen2.5-coder-7b-instruct | paid
qwen/qwen2.5-vl-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/qwen3-14b | paid
qwen/qwen3-14b:free | free
qwen/qwen3-235b-a22b | paid
qwen/qwen3-235b-a22b:free | free
qwen/qwen3-30b-a3b | paid
qwen/qwen3-30b-a3b:free | free
qwen/qwen3-32b | paid
qwen/qwen3-32b:free | free
qwen/qwen3-8b | paid
qwen/qwen3-8b:free | free
qwen/qwq-32b | paid
qwen/qwq-32b:free | free
qwen/qwq-32b-preview | paid
qwen/qwq-32b-preview:free | free
qwen/qwen-2.5-72b-instruct | paid
qwen/qwen-2.5-72b-instruct:free | free
qwen/qwen-2.5-7b-instruct | paid
@ -304,24 +323,28 @@ export interface IKBotOptions {
featherless/qwerky-72b:free | free
rekaai/reka-flash-3:free | free
undi95/remm-slerp-l2-13b | paid
thedrummer/rocinante-12b | paid
sophosympatheia/rogue-rose-103b-v0.2:free | free
sao10k/l3-lunaris-8b | paid
sao10k/l3-euryale-70b | paid
sao10k/l3.1-euryale-70b | paid
sao10k/l3.3-euryale-70b | paid
sarvamai/sarvam-m | paid
sarvamai/sarvam-m:free | free
shisa-ai/shisa-v2-llama3.3-70b:free | free
raifle/sorcererlm-8x22b | paid
steelskull/l3.3-electra-r1-70b | paid
thedrummer/anubis-pro-105b-v1 | paid
thedrummer/rocinante-12b | paid
thedrummer/skyfall-36b-v2 | paid
thedrummer/unslopnemo-12b | paid
thedrummer/valkyrie-49b-v1 | paid
thudm/glm-4-32b | paid
thudm/glm-4-32b:free | free
thudm/glm-z1-32b | paid
thudm/glm-z1-32b:free | free
thudm/glm-z1-rumination-32b | paid
tngtech/deepseek-r1t-chimera:free | free
undi95/toppy-m-7b | paid
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
x-ai/grok-2-1212 | paid
x-ai/grok-2-vision-1212 | paid
@ -334,6 +357,7 @@ export interface IKBotOptions {

babbage-002
chatgpt-4o-latest
codex-mini-latest
dall-e-2
dall-e-3
davinci-002
@ -381,6 +405,7 @@ export interface IKBotOptions {
gpt-4o-search-preview
gpt-4o-search-preview-2025-03-11
gpt-4o-transcribe
gpt-image-1
o1
o1-2024-12-17
o1-mini

View File

@ -114,15 +114,15 @@ export declare const InvokeToolSchema: z.ZodObject<{
env_key: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
function?: string;
params?: string;
tools?: string;
params?: string;
target?: string;
output?: string;
env_key?: string;
}, {
function?: string;
params?: string;
tools?: string;
params?: string;
target?: string;
output?: string;
env_key?: string;

View File

@ -249,7 +249,7 @@ export const tools = (target: string, options: IKBotTask): Array<any> => {
type: "object",
properties: {
path: { type: "string" },
content: { type: "string", description: "base64 encoded string" }
content: { type: "string", description: "new file content (Part of JSON payload)" }
},
required: ["path", "content"]
}
@ -279,9 +279,9 @@ export const tools = (target: string, options: IKBotTask): Array<any> => {
const filePath = path.join(target, sanitizedPath);
logger.debug(`Tool:modify_project_files writing file ${filePath}`)
try {
const contentToWrite = decodeContentSmart(file.content, logger, sanitizedPath);
// const contentToWrite = decodeContentSmart(file.content, logger, sanitizedPath);
try {
await write(filePath, contentToWrite)
await write(filePath, file.content)
} catch (writeError) {
logger.error(`Tool:modify_project_files Error writing file ${filePath}`, writeError)
}
@ -301,7 +301,7 @@ export const tools = (target: string, options: IKBotTask): Array<any> => {
type: 'function',
function: {
name: "write_file",
description: "Writes to a file, given a path and content (base64). No directory or file exists check needed!",
description: "Writes to a file, given a path and content (Part of JSON payload). No directory or file exists check needed!",
parameters: {
type: "object",
properties: {
@ -309,7 +309,7 @@ export const tools = (target: string, options: IKBotTask): Array<any> => {
type: "object",
properties: {
path: { type: "string" },
content: { type: "string", description: "base64 encoded string" }
content: { type: "string", description: "new file content (Part of JSON payload)" }
}
}
},
@ -337,12 +337,10 @@ export const tools = (target: string, options: IKBotTask): Array<any> => {
const sanitizedPath = sanitize(fileInfo.path);
const filePath = path.join(target, sanitizedPath)
logger.debug(`Tool::write_file Writing file ${filePath}`)
try {
// Use the smart decoding helper function
const contentToWrite = decodeContentSmart(fileInfo.content, logger, sanitizedPath);
await write(filePath, contentToWrite)
// const contentToWrite = decodeContentSmart(fileInfo.content, logger, sanitizedPath);
await write(filePath, fileInfo.content)
return true
} catch (error) {
// Log error related to processing or writing the file

View File

@ -9,6 +9,8 @@ export interface IKBotOptions {
dst?: string | undefined;
/** How to handle output if --dst file already exists: "concat" (append) or "merge" (try to merge structures if possible, otherwise append). Only used if --dst is specified. */
append?: ("concat" | "merge") | undefined;
/** Specify how to wrap the output, "meta (file name, absolute path, cwd)" or "none". */
wrap?: "meta" | "none";
/** Iterate over items, supported: GLOB | Path to JSON File | array of strings (comma separated). To test different models, use --each="gpt-3.5-turbo,gpt-4o", the actual string will exposed as variable `ITEM`, eg: --dst="${ITEM}-output.md" */
each?: string | undefined;
/** Disable tools categories, eg: --disable=fs,git,interact,terminal,search,web,email,user */
@ -19,6 +21,8 @@ export interface IKBotOptions {
tools?: (string[] | string);
/** Comma separated glob patterns or paths, eg --include=src/*.tsx,src/*.ts --include=package.json */
include?: string[] | undefined;
/** Comma separated glob patterns or paths, eg --exclude=src/*.tsx,src/*.ts --exclude=package.json */
exclude?: string[] | undefined;
/** Explicit API key to use */
api_key?: string | undefined;
/** AI model to use for processing. Available models:
@ -28,17 +32,12 @@ export interface IKBotOptions {
01-ai/yi-large | paid
aetherwiing/mn-starcannon-12b | paid
agentica-org/deepcoder-14b-preview:free | free
ai21/jamba-1-5-large | paid
ai21/jamba-1-5-mini | paid
ai21/jamba-1.6-large | paid
ai21/jamba-instruct | paid
ai21/jamba-1.6-mini | paid
aion-labs/aion-1.0 | paid
aion-labs/aion-1.0-mini | paid
aion-labs/aion-rp-llama-3.1-8b | paid
jondurbin/airoboros-l2-70b | paid
alfredpros/codellama-7b-instruct-solidity | paid
allenai/molmo-7b-d:free | free
amazon/nova-lite-v1 | paid
amazon/nova-micro-v1 | paid
amazon/nova-pro-v1 | paid
@ -59,15 +58,23 @@ export interface IKBotOptions {
anthropic/claude-3.7-sonnet | paid
anthropic/claude-3.7-sonnet:beta | paid
anthropic/claude-3.7-sonnet:thinking | paid
anthropic/claude-opus-4 | paid
anthropic/claude-sonnet-4 | paid
anthropic/claude-2 | paid
anthropic/claude-2:beta | paid
anthropic/claude-2.0 | paid
anthropic/claude-2.0:beta | paid
anthropic/claude-2.1 | paid
anthropic/claude-2.1:beta | paid
arcee-ai/arcee-blitz | paid
arcee-ai/caller-large | paid
arcee-ai/coder-large | paid
arcee-ai/maestro-reasoning | paid
arcee-ai/spotlight | paid
arcee-ai/virtuoso-large | paid
arcee-ai/virtuoso-medium-v2 | paid
arliai/qwq-32b-arliai-rpr-v1:free | free
openrouter/auto | paid
bytedance-research/ui-tars-72b:free | free
cohere/command | paid
cohere/command-a | paid
cohere/command-r | paid
@ -77,6 +84,10 @@ export interface IKBotOptions {
cohere/command-r-plus-04-2024 | paid
cohere/command-r-plus-08-2024 | paid
cohere/command-r7b-12-2024 | paid
deepseek/deepseek-prover-v2 | paid
deepseek/deepseek-prover-v2:free | free
deepseek/deepseek-r1-0528-qwen3-8b | paid
deepseek/deepseek-r1-0528-qwen3-8b:free | free
deepseek/deepseek-r1-zero:free | free
deepseek/deepseek-chat | paid
deepseek/deepseek-chat:free | free
@ -85,6 +96,8 @@ export interface IKBotOptions {
deepseek/deepseek-v3-base:free | free
deepseek/deepseek-r1 | paid
deepseek/deepseek-r1:free | free
deepseek/deepseek-r1-0528 | paid
deepseek/deepseek-r1-0528:free | free
deepseek/deepseek-r1-distill-llama-70b | paid
deepseek/deepseek-r1-distill-llama-70b:free | free
deepseek/deepseek-r1-distill-llama-8b | paid
@ -93,7 +106,7 @@ export interface IKBotOptions {
deepseek/deepseek-r1-distill-qwen-14b:free | free
deepseek/deepseek-r1-distill-qwen-32b | paid
deepseek/deepseek-r1-distill-qwen-32b:free | free
cognitivecomputations/dolphin-mixtral-8x7b | paid
deepseek/deepseek-r1-distill-qwen-7b | paid
cognitivecomputations/dolphin-mixtral-8x22b | paid
cognitivecomputations/dolphin3.0-mistral-24b:free | free
cognitivecomputations/dolphin3.0-r1-mistral-24b:free | free
@ -105,20 +118,18 @@ export interface IKBotOptions {
alpindale/goliath-120b | paid
google/gemini-flash-1.5 | paid
google/gemini-flash-1.5-8b | paid
google/gemini-flash-1.5-8b-exp | paid
google/gemini-pro-1.5 | paid
google/gemini-2.0-flash-001 | paid
google/gemini-2.0-flash-exp:free | free
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-2.5-flash-preview | paid
google/gemini-2.5-flash-preview:thinking | paid
google/gemini-2.5-pro-exp-03-25:free | free
google/gemini-2.5-pro-preview-03-25 | paid
google/gemini-pro | paid
google/gemini-pro-vision | paid
google/gemini-2.5-flash-preview-05-20 | paid
google/gemini-2.5-flash-preview-05-20:thinking | paid
google/gemini-2.5-pro-exp-03-25 | paid
google/gemini-2.5-pro-preview | paid
google/gemma-2-27b-it | paid
google/gemma-2b-it | paid
google/gemma-2-9b-it | paid
google/gemma-2-9b-it:free | free
google/gemma-3-12b-it | paid
@ -128,16 +139,11 @@ export interface IKBotOptions {
google/gemma-3-27b-it:free | free
google/gemma-3-4b-it | paid
google/gemma-3-4b-it:free | free
google/learnlm-1.5-pro-experimental:free | free
google/palm-2-chat-bison | paid
google/palm-2-chat-bison-32k | paid
google/palm-2-codechat-bison | paid
google/palm-2-codechat-bison-32k | paid
huggingfaceh4/zephyr-7b-beta:free | free
google/gemma-3n-e4b-it:free | free
inception/mercury-coder-small-beta | paid
infermatic/mn-inferor-12b | paid
inflection/inflection-3-pi | paid
inflection/inflection-3-productivity | paid
latitudegames/wayfarer-large-70b-llama-3.3 | paid
liquid/lfm-3b | paid
liquid/lfm-40b | paid
liquid/lfm-7b | paid
@ -146,7 +152,6 @@ export interface IKBotOptions {
anthracite-org/magnum-v2-72b | paid
anthracite-org/magnum-v4-72b | paid
mancer/weaver | paid
meta-llama/llama-2-13b-chat | paid
meta-llama/llama-2-70b-chat | paid
meta-llama/llama-3-70b-instruct | paid
meta-llama/llama-3-8b-instruct | paid
@ -165,13 +170,19 @@ export interface IKBotOptions {
meta-llama/llama-3.2-90b-vision-instruct | paid
meta-llama/llama-3.3-70b-instruct | paid
meta-llama/llama-3.3-70b-instruct:free | free
meta-llama/llama-3.3-8b-instruct:free | free
meta-llama/llama-4-maverick | paid
meta-llama/llama-4-maverick:free | free
meta-llama/llama-4-scout | paid
meta-llama/llama-4-scout:free | free
meta-llama/llama-guard-4-12b | paid
meta-llama/llama-guard-2-8b | paid
microsoft/mai-ds-r1:free | free
microsoft/phi-4 | paid
microsoft/phi-4-multimodal-instruct | paid
microsoft/phi-4-reasoning:free | free
microsoft/phi-4-reasoning-plus | paid
microsoft/phi-4-reasoning-plus:free | free
microsoft/phi-3-medium-128k-instruct | paid
microsoft/phi-3-mini-128k-instruct | paid
microsoft/phi-3.5-mini-128k-instruct | paid
@ -185,15 +196,16 @@ export interface IKBotOptions {
mistralai/mistral-small | paid
mistralai/mistral-tiny | paid
mistralai/codestral-2501 | paid
mistralai/codestral-mamba | paid
mistralai/devstral-small | paid
mistralai/devstral-small:free | free
mistralai/ministral-3b | paid
mistral/ministral-8b | paid
mistralai/ministral-8b | paid
mistralai/mistral-7b-instruct | paid
mistralai/mistral-7b-instruct:free | free
mistralai/mistral-7b-instruct-v0.1 | paid
mistralai/mistral-7b-instruct-v0.2 | paid
mistralai/mistral-7b-instruct-v0.3 | paid
mistralai/mistral-medium-3 | paid
mistralai/mistral-nemo | paid
mistralai/mistral-nemo:free | free
mistralai/mistral-small-24b-instruct-2501 | paid
@ -210,24 +222,23 @@ export interface IKBotOptions {
gryphe/mythomax-l2-13b | paid
neversleep/llama-3-lumimaid-70b | paid
neversleep/llama-3-lumimaid-8b | paid
neversleep/llama-3-lumimaid-8b:extended | paid
neversleep/llama-3.1-lumimaid-70b | paid
neversleep/llama-3.1-lumimaid-8b | paid
neversleep/noromaid-20b | paid
nousresearch/deephermes-3-llama-3-8b-preview:free | free
nousresearch/nous-hermes-llama2-13b | paid
nousresearch/deephermes-3-mistral-24b-preview:free | free
nousresearch/nous-hermes-2-mixtral-8x7b-dpo | paid
nousresearch/hermes-3-llama-3.1-405b | paid
nousresearch/hermes-3-llama-3.1-70b | paid
nousresearch/hermes-2-pro-llama-3-8b | paid
nvidia/llama-3.1-nemotron-70b-instruct | paid
nvidia/llama-3.1-nemotron-70b-instruct:free | free
nvidia/llama-3.1-nemotron-nano-8b-v1:free | free
nvidia/llama-3.1-nemotron-ultra-253b-v1 | paid
nvidia/llama-3.1-nemotron-ultra-253b-v1:free | free
nvidia/llama-3.3-nemotron-super-49b-v1 | paid
nvidia/llama-3.3-nemotron-super-49b-v1:free | free
open-r1/olympiccoder-32b:free | free
open-r1/olympiccoder-7b:free | free
openai/chatgpt-4o-latest | paid
openai/codex-mini | paid
openai/gpt-3.5-turbo | paid
openai/gpt-3.5-turbo-0613 | paid
openai/gpt-3.5-turbo-16k | paid
@ -265,7 +276,8 @@ export interface IKBotOptions {
openai/o3-mini-high | paid
openai/o4-mini | paid
openai/o4-mini-high | paid
openchat/openchat-7b | paid
opengvlab/internvl3-14b:free | free
opengvlab/internvl3-2b:free | free
all-hands/openhands-lm-32b-v0.1 | paid
perplexity/llama-3.1-sonar-large-128k-online | paid
perplexity/llama-3.1-sonar-small-128k-online | paid
@ -282,19 +294,26 @@ export interface IKBotOptions {
qwen/qwen-max | paid
qwen/qwen-plus | paid
qwen/qwen-turbo | paid
qwen/qwen2.5-coder-7b-instruct | paid
qwen/qwen2.5-vl-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/qwen3-14b | paid
qwen/qwen3-14b:free | free
qwen/qwen3-235b-a22b | paid
qwen/qwen3-235b-a22b:free | free
qwen/qwen3-30b-a3b | paid
qwen/qwen3-30b-a3b:free | free
qwen/qwen3-32b | paid
qwen/qwen3-32b:free | free
qwen/qwen3-8b | paid
qwen/qwen3-8b:free | free
qwen/qwq-32b | paid
qwen/qwq-32b:free | free
qwen/qwq-32b-preview | paid
qwen/qwq-32b-preview:free | free
qwen/qwen-2.5-72b-instruct | paid
qwen/qwen-2.5-72b-instruct:free | free
qwen/qwen-2.5-7b-instruct | paid
@ -304,24 +323,28 @@ export interface IKBotOptions {
featherless/qwerky-72b:free | free
rekaai/reka-flash-3:free | free
undi95/remm-slerp-l2-13b | paid
thedrummer/rocinante-12b | paid
sophosympatheia/rogue-rose-103b-v0.2:free | free
sao10k/l3-lunaris-8b | paid
sao10k/l3-euryale-70b | paid
sao10k/l3.1-euryale-70b | paid
sao10k/l3.3-euryale-70b | paid
sarvamai/sarvam-m | paid
sarvamai/sarvam-m:free | free
shisa-ai/shisa-v2-llama3.3-70b:free | free
raifle/sorcererlm-8x22b | paid
steelskull/l3.3-electra-r1-70b | paid
thedrummer/anubis-pro-105b-v1 | paid
thedrummer/rocinante-12b | paid
thedrummer/skyfall-36b-v2 | paid
thedrummer/unslopnemo-12b | paid
thedrummer/valkyrie-49b-v1 | paid
thudm/glm-4-32b | paid
thudm/glm-4-32b:free | free
thudm/glm-z1-32b | paid
thudm/glm-z1-32b:free | free
thudm/glm-z1-rumination-32b | paid
tngtech/deepseek-r1t-chimera:free | free
undi95/toppy-m-7b | paid
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
x-ai/grok-2-1212 | paid
x-ai/grok-2-vision-1212 | paid
@ -334,6 +357,7 @@ export interface IKBotOptions {

babbage-002
chatgpt-4o-latest
codex-mini-latest
dall-e-2
dall-e-3
davinci-002
@ -381,6 +405,7 @@ export interface IKBotOptions {
gpt-4o-search-preview
gpt-4o-search-preview-2025-03-11
gpt-4o-transcribe
gpt-image-1
o1
o1-2024-12-17
o1-mini