Skip to content

feat(standalone): add provider config aliases and protocol inference#57

Merged
shuaijinchao merged 1 commit intomasterfrom
feat/standalone-provider-aliases
Apr 17, 2026
Merged

feat(standalone): add provider config aliases and protocol inference#57
shuaijinchao merged 1 commit intomasterfrom
feat/standalone-provider-aliases

Conversation

@shuaijinchao
Copy link
Copy Markdown
Collaborator

  • Make default_protocol optional; infer from first declared endpoint when omitted (switch endpoints to IndexMap to preserve YAML order).
  • Add aliases: protocol for default_protocol, apikey for api_key.
  • Reject conflicting canonical + alias pairs at deserialization time via YamlProviderRaw + TryFrom to avoid silent ambiguity.
  • Emit a WARN log when protocol is inferred from multiple endpoints.
  • Update standalone docs with alias column and simplified example.
  • Add unit tests covering canonical/alias writes, inference, and alias conflicts.

- Make `default_protocol` optional; infer from first declared endpoint
  when omitted (switch endpoints to IndexMap to preserve YAML order).
- Add aliases: `protocol` for `default_protocol`, `apikey` for `api_key`.
- Reject conflicting canonical + alias pairs at deserialization time
  via `YamlProviderRaw` + `TryFrom` to avoid silent ambiguity.
- Emit a WARN log when protocol is inferred from multiple endpoints.
- Update standalone docs with alias column and simplified example.
- Add unit tests covering canonical/alias writes, inference, and
  alias conflicts.
@shuaijinchao shuaijinchao merged commit d141afa into master Apr 17, 2026
2 checks passed
shuaijinchao added a commit that referenced this pull request Apr 18, 2026
- Bump workspace, Tauri and webui versions to 1.6.2.
- Document v1.6.2 changes in CHANGELOG.md and CHANGELOG_CN.md:
  - Features: request/response payload logging, redesigned log
    viewer, log_record_payloads toggle (#63).
  - Improvements: standalone provider config aliases
    (protocol/apikey) and protocol inference (#57), log retention
    defaults, split query_logs / get_log API (#63).
  - Fixes: release-server workflow pre-builds webui/dist so
    RustEmbed can find the assets (#56).
shuaijinchao added a commit that referenced this pull request Apr 18, 2026
- Bump workspace, Tauri and webui versions to 1.6.2.
- Document v1.6.2 changes in CHANGELOG.md and CHANGELOG_CN.md:
  - Features: request/response payload logging, redesigned log
    viewer, log_record_payloads toggle (#63).
  - Improvements: standalone provider config aliases
    (protocol/apikey) and protocol inference (#57), log retention
    defaults, split query_logs / get_log API (#63).
  - Fixes: release-server workflow pre-builds webui/dist so
    RustEmbed can find the assets (#56).
@shuaijinchao shuaijinchao deleted the feat/standalone-provider-aliases branch April 19, 2026 03:45
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