Skip to content

Add in-browser LLMs and set Qwen2.5 0.5B as default. Add Safari support.#411

Merged
ianarawjo merged 5 commits into
mainfrom
small-updates-2026
Jun 10, 2026
Merged

Add in-browser LLMs and set Qwen2.5 0.5B as default. Add Safari support.#411
ianarawjo merged 5 commits into
mainfrom
small-updates-2026

Conversation

@ianarawjo

Copy link
Copy Markdown
Owner

This adds in-browser LLMs using WebLLM. LLMs will one-time download to your browser cache, and then run entirely locally. We included two options by default for their size and on-device performance.

The in-browser quantized Qwen2.5 0.5B is now the default model when PromptNodes are added. We think most devices today will be able to run this model, which is ~1GB download and once downloaded, runs fast.

We also unblocked Safari support—it is now 3 years since ChainForge originally released, and the current version of Safari has gained support for the features blocking its access previously. We needed to tweak some things regarding CSS and resize handlers especially (added a new ResizeHandler class for cross-browser consistency). If you still have problems, please let us know.

ianarawjo and others added 5 commits June 10, 2026 13:19
Replace deprecated api-inference.huggingface.co/models/ endpoint with
api-inference.huggingface.co/inference-endpoint/ to resolve 410 Gone errors.

Co-authored-by: Ernest <ernest@example.com>
* Fix #406: Update deprecated HuggingFace API endpoint

Replace deprecated api-inference.huggingface.co/models/ endpoint with
api-inference.huggingface.co/inference-endpoint/ to resolve 410 Gone errors.

* Fix #396: Close context menu before executing menu item actions

The right-click Duplicate Node action failed on some systems (e.g., Windows 11 LTSC)
due to a race condition where Mantine's useClickOutside handler would close the menu
on mousedown before the item click handler could execute.

The fix closes the context menu explicitly in the onClick handler BEFORE calling
the action handler. This ensures proper event ordering on all systems.

Also applied the same fix to 'Favorite Node' and 'Delete Node' menu items for consistency.

---------

Co-authored-by: Ernest <ernest@example.com>
Add MiniMax M2.7 and M2.7-highspeed models as a native LLM provider,
following the DeepSeek/OpenAI-compatible pattern. Includes:

- NativeLLM enum entries for MiniMax-M2.7 and MiniMax-M2.7-highspeed
- LLMProvider.MiniMax with provider detection and rate limiting
- call_minimax() via OpenAI-compat API (https://api.minimax.io/v1)
- Temperature clamping (min 0.01) per MiniMax API requirement
- Settings schema with model selector, temperature, system_msg, top_p,
  max_tokens, stop, presence/frequency_penalty
- UI menu group with both models
- Flask env var mapping for MINIMAX_API_KEY
- Fix: call_chatgpt now respects custom API_KEY param (skips
  OPENAI_API_KEY check when a custom key is provided)
- 25 tests (21 unit + 3 integration + 1 conditional)

Co-authored-by: PR Bot <pr-bot@minimaxi.com>
@ianarawjo ianarawjo merged commit 2aabc38 into main Jun 10, 2026
12 of 15 checks passed
@ianarawjo ianarawjo deleted the small-updates-2026 branch June 10, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants