Repository navigation
Conversation
Author
|
Gentle bump on this one. It adds the io.net model list and still merges cleanly into main. Happy to rework anything you'd prefer different. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds six IO Intelligence (by io.net) models to the built-in model list, following the existing DeepSeek/DeepInfra pattern for OpenAI-compatible providers with a fixed endpoint: per-model
endpoint(https://api.intelligence.io.solutions/api/v1/chat/completions) andkeyIdentifier(ionet), which makes the Bot Settings page render a "GLM 5.3 (IO Intelligence) API Key" field automatically (same mechanism as the DeepSeek key field).New provider id
LLMProvider.Ionet("IO Intelligence" in ProviderNames), a newsrc/ts/model/providers/ionet.tscatalogue, registered inLLMModels. All six entries carry thehasFullSystemPromptflag (openai.ts convention) so system prompts are sent as real system messages, and the Llama 3.3 entry uses theLLMTokenizer.Llama3tokenizer via a new fallback branch insrc/ts/tokenizer.tsthat routes it to the repo's existingllama3web tokenizer (the enum value existed but had no branch, silently falling back to cl100k).Models (from io.net's public GET /models)
zai-org/GLM-5.3(tokenizer GLM5, recommended)deepseek-ai/DeepSeek-V4.1-Flash(tokenizer DeepSeekV4, recommended)moonshotai/Kimi-K3(vision flag)Qwen/Qwen3.8-27B(vision flag)deepseek-ai/DeepSeek-R1-0528meta-llama/Llama-3.3-70B-Instruct(tokenizer Llama3)Wire model ids are the org/name strings (set via
internalID);idkeys are prefixedionet/…to stay unique in the model list, same technique the repo already uses for custom models.Verification
pnpm install --frozen-lockfilecleanpnpm check(svelte-check) — 0 errors, 0 warningspnpm build— exit 0pnpm test(vitest) — 24 files, 230 passed / 3 skippedrequestOpenAI()request builder (with a copy of the ionet entry pointed at a local OpenAI-compatible endpoint): non-streaming and streaming chats reachPOST …/chat/completionswithAuthorization: Bearerresolved from theionetkey entry in settings, the model id passed through verbatim (zai-org/GLM-5.3etc.), and thestreamflag honoured; an invalid key surfaces the server's error message to the user on both legs; the six entries are present in the realLLMModelslist with correct endpoint/keyIdentifier/internalIDNotes