gitdataai/libs/service
ZhenYi ecf9f33b26
Some checks are pending
CI / Rust Lint & Check (push) Waiting to run
CI / Rust Tests (push) Waiting to run
CI / Frontend Lint & Type Check (push) Waiting to run
CI / Frontend Build (push) Blocked by required conditions
refactor(agent/sync): remove OpenRouter dependency, use upstream /v1/models directly
The upstream AI endpoint already returns complete model metadata:
- name, owned_by, context_length, max_output_tokens
- capabilities (vision, tool_call, reasoning)
- pricing (input, output, cache_read, cache_write, currency)

Remove the OpenRouter fallback entirely and parse the upstream
response directly for all sync operations. Both sync_upstream_models
(API) and sync_once (background task) now use a single unified path.

Changes:
- Remove OpenRouter types and fetch_openrouter_models()
- Add UpstreamModel / UpstreamCapabilities / UpstreamPricing types
- Parse capabilities from upstream instead of inferring from name
- Use real pricing from upstream instead of defaulting to 0.00
- Simplify sync flow: list → parse → upsert (no filtering/matching)
- Add provider normalizations for moonshot, zai, minimax, qwen
2026-04-26 16:30:41 +08:00
..
agent refactor(agent/sync): remove OpenRouter dependency, use upstream /v1/models directly 2026-04-26 16:30:41 +08:00
auth refactor(service): migrate auth, git service, agent from slog to tracing 2026-04-21 22:28:33 +08:00
file_tools fix(agent/service): retry jitter, tool executor ordering, curl SSRF, grep/JSON 2026-04-25 09:53:31 +08:00
git fix(agent/service): retry jitter, tool executor ordering, curl SSRF, grep/JSON 2026-04-25 09:53:31 +08:00
git_tools refactor(service): clean up agent modules, use agent crate types 2026-04-25 20:09:45 +08:00
issue fix(agent/service): retry jitter, tool executor ordering, curl SSRF, grep/JSON 2026-04-25 09:53:31 +08:00
project feat: thinking_content column + first-project budget logic 2026-04-26 13:11:06 +08:00
project_tools fix(agent/service): retry jitter, tool executor ordering, curl SSRF, grep/JSON 2026-04-25 09:53:31 +08:00
pull_request init 2026-04-15 09:08:09 +08:00
search fix(agent/service): retry jitter, tool executor ordering, curl SSRF, grep/JSON 2026-04-25 09:53:31 +08:00
skill init 2026-04-15 09:08:09 +08:00
user fix(avatar): add upload API routes and fix URL path prefix 2026-04-25 23:19:22 +08:00
utils init 2026-04-15 09:08:09 +08:00
workspace feat: thinking_content column + first-project budget logic 2026-04-26 13:11:06 +08:00
Cargo.toml refactor(service): clean up agent modules, use agent crate types 2026-04-25 20:09:45 +08:00
error.rs refactor(service): clean up agent modules, use agent crate types 2026-04-25 20:09:45 +08:00
lib.rs refactor(service): clean up agent modules, use agent crate types 2026-04-25 20:09:45 +08:00
push.rs feat(service): add push and storage service modules, update project/user/workspace services 2026-04-20 15:45:40 +08:00
storage.rs feat(service): register project_tools in chat service, add AppStorage::read method 2026-04-20 19:32:29 +08:00
webhook_dispatch.rs init 2026-04-15 09:08:09 +08:00
ws_token.rs init 2026-04-15 09:08:09 +08:00