Skip to content

fix(aionrs): set chat path for non-v1 OpenAI-compatible roots#338

Open
taekchef wants to merge 1 commit into
iOfficeAI:mainfrom
taekchef:codex/fix-aionrs-non-v1-api-path
Open

fix(aionrs): set chat path for non-v1 OpenAI-compatible roots#338
taekchef wants to merge 1 commit into
iOfficeAI:mainfrom
taekchef:codex/fix-aionrs-non-v1-api-path

Conversation

@taekchef
Copy link
Copy Markdown

Summary

  • Set AionRS compat.api_path to /chat/completions for known non-/v1 OpenAI-compatible API roots.
  • Cover Zhipu /api/paas/v4, Ark /api/v3, Qianfan /v2, and trailing slash variants.
  • Keep official OpenAI /v1, Gemini, and is_full_url behavior unchanged.

Fixes #337.

Test plan

  • cargo test -p aionui-ai-agent resolve_non_v1_openai_compat_roots_use_root_chat_path
  • cargo test -p aionui-ai-agent
  • cargo fmt --check

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.

fix(aionrs): handle non-v1 OpenAI-compatible API roots for chat completions

1 participant