docs: 添加 Novita AI 配置示例;fix: split_footnotes 遗留脚注标记 - #105
Open
jax-novita wants to merge 3 commits into
Open
Conversation
backend/.env.example 里已有 DeepSeek/OpenAI/Anthropic 三组配置示例, 按同样格式补一组 Novita(OpenAI 兼容接口,base_url=https://api.novita.ai/openai)。
The models listed for Novita were older ids that no longer reflect what the platform leads with. Point the recommendations at the three current flagships instead, each verified against api.novita.ai: moonshotai/kimi-k3 1M context, native vision zai-org/glm-5.2 1M context, long-horizon agentic work deepseek/deepseek-v4-flash-0731 1M context, cheapest of the three Context windows, output limits, input modalities and pricing were taken from the live /openai/v1/models response rather than carried over.
Co-authored-by: multica-agent <github@multica.ai>
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
backend/.env.example, alongside the existing DeepSeek/OpenAI/Anthropic examples.split_footnoteswhere footnote reference markers (e.g.[^1]) were left in the main text after the footnote definitions were stripped.Changes
backend/.env.example: appended a Novita AI example block (COORDINATOR_API_TYPE=openai-chat,COORDINATOR_BASE_URL=https://api.novita.ai/openai, etc.) following the same format as the existing provider examples. No code changes — Novita exposes an OpenAI-compatible API, so the existingopenai-chatprovider path works as-is.backend/app/utils/common_utils.py:split_footnotesnow also strips inline[^N]reference markers from the main text (previously only the trailing footnote definitions were removed, leaving stray[^1]-style markers in the returned text).Verification
uv --directory backend run --python 3.12 python -m unittest discover -s app/tests -v: 2 tests run —test_split_footnotespasses;test_execute_codeis skipped (requiresE2B_API_KEY, unrelated to this change).https://api.novita.ai/openai/v1/chat/completionsusing theopenai-chatprovider path with a live Novita API key — request succeeded, model responded, usage fields present.