feat(provider): add StepFun and Step Plan presets - #10153
Draft
Mola-maker wants to merge 1 commit into
Draft
Mola-maker wants to merge 1 commit into
Mola-maker wants to merge 1 commit into
Conversation
Soulter
reviewed
Sep 21, 2026
| 6. Click **Save and Fetch Models**, find the desired model, click `+`, and make sure it is enabled. If the model list cannot be fetched, click **Save Configuration**, then **Custom Model** and enter the model ID. Use **Test Model** beside the model to check connectivity. | ||
| 7. Open **Config**, select the profile to use, and go to **AI → Model**. Set **Chat Model** to the model you just added, then click **Save Configuration** at the bottom right. This setting is for AstrBot built-in AI. | ||
|
|
||
| ## Connecting StepFun and Step Plan |
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.
StepFun users currently have to choose
OpenAI Compatibleand enter an endpoint manually. This adds separateStepFunandStepFun Step Planentries under Providers → Chat Completion → Add, with the standard and subscription endpoints prefilled as documented by StepFun.Modifications
Both presets reuse
openai_chat_completion, including editable API keys/base URLs, timeout, proxy, custom headers, model discovery, manual model selection, and per-model capabilities/context/custom request parameters. Each has a distinct source ID and a theme-aware StepFun icon. English and Chinese setup instructions include the actual selector screenshot.Screenshots or Test Results
Visual evidence
In the existing dashboard, open Providers → Chat Completion → Add and search for
StepFun. The base revision has no StepFun preset; this branch shows the two entries below. Select either entry to inspect its endpoint and advanced settings, save it with your API key, then fetch models or add a supported model ID manually.Validation
Local validation on Windows with Python 3.12: the existing full pytest suite passed (3488 passed, 82 skipped); the new four-case preset regression test also passed. The focused OpenAI/provider run passed with 114 passed and 1 skipped. The new tests exercise the real OpenAI SDK against an in-memory HTTP transport, checking model-list and streaming/non-streaming chat URLs, authentication, custom headers, timeout, and request parameters. All four fail against the base configuration because the presets are absent.
Ruff formatting/lint, dashboard typecheck/production build, and the bilingual documentation build passed. Browser checks covered the selector, endpoint fields, advanced settings, and manual model configuration. No live StepFun inference or account-specific model availability was tested; the screenshot is from a local instance without a real API key.
Checklist
Summary by Sourcery
Add ready-to-use StepFun and Step Plan provider presets for OpenAI-compatible chat completion APIs.
New Features:
Documentation:
Tests: