Skip to content

docs: 添加 Novita AI 配置示例;fix: split_footnotes 遗留脚注标记 - #105

Open
jax-novita wants to merge 3 commits into
jihe520:mainfrom
jax-novita:add-novita-config-example
Open

docs: 添加 Novita AI 配置示例;fix: split_footnotes 遗留脚注标记#105
jax-novita wants to merge 3 commits into
jihe520:mainfrom
jax-novita:add-novita-config-example

Conversation

@jax-novita

Copy link
Copy Markdown

Summary

  • Adds a Novita AI configuration example to backend/.env.example, alongside the existing DeepSeek/OpenAI/Anthropic examples.
  • Fixes a bug in split_footnotes where 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 existing openai-chat provider path works as-is.
  • backend/app/utils/common_utils.py: split_footnotes now 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_footnotes passes; test_execute_code is skipped (requires E2B_API_KEY, unrelated to this change).
  • Manually verified the Novita example against https://api.novita.ai/openai/v1/chat/completions using the openai-chat provider path with a live Novita API key — request succeeded, model responded, usage fields present.

jax-novita and others added 3 commits August 5, 2026 18:47
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>
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.

1 participant