Compare commits

...

38 Commits

Author SHA1 Message Date
Diego Rodrigues de Sa e Souza 437cf9bab0 chore(release): v3.1.10 — OmniRoute v3.1.9 remaining bug fixes sprint (#720)
Build Electron Desktop App / Validate version (push) Failing after 34s
Build Electron Desktop App / Build Electron (macos-arm64) (push) Has been skipped
Build Electron Desktop App / Build Electron (linux) (push) Has been skipped
Build Electron Desktop App / Build Electron (macos-intel) (push) Has been skipped
Build Electron Desktop App / Build Electron (windows) (push) Has been skipped
Build Electron Desktop App / Create Release (push) Has been skipped
Build Electron Desktop App / Publish to npm (push) Has been skipped
Co-authored-by: diegosouzapw <diegosouzapw@users.noreply.github.com>
2026-03-28 19:54:45 -03:00
Diego Rodrigues de Sa e Souza 9ffad1005e Merge pull request #713 from diegosouzapw/release/v3.1.9
Build Electron Desktop App / Validate version (push) Failing after 38s
Build Electron Desktop App / Build Electron (macos-arm64) (push) Has been skipped
Build Electron Desktop App / Build Electron (linux) (push) Has been skipped
Build Electron Desktop App / Build Electron (macos-intel) (push) Has been skipped
Build Electron Desktop App / Build Electron (windows) (push) Has been skipped
Build Electron Desktop App / Create Release (push) Has been skipped
Build Electron Desktop App / Publish to npm (push) Has been skipped
chore(release): v3.1.9 — schema coercion, tool sanitization, bug fixes
2026-03-28 17:37:08 -03:00
diegosouzapw 65edddd62e refactor(open-sse): remove unused imports from translator/index.ts
remove unused imports coerceToolSchemas and sanitizeToolDescriptions from translator/index.ts to satisfy lint and prevent unused import issues
2026-03-28 17:26:55 -03:00
diegosouzapw a7cdcd8b3a chore(release): v3.1.9 — schema coercion, tool sanitization, clearAllModels i18n, bug fixes #605 #709 #710 #711 2026-03-28 16:35:20 -03:00
diegosouzapw 3d6b85ed20 fix: update Windsurf test to match merged config notes 2026-03-28 16:31:46 -03:00
diegosouzapw 7abea2020c Merge feature-tests: schema coercion, tool sanitization, Codex auth export, enhanced test suite 2026-03-28 16:27:32 -03:00
diegosouzapw e16c34f0e3 Merge feat/clear-all-models-button: clearAllModels i18n translations for 30 languages 2026-03-28 16:19:46 -03:00
diegosouzapw 4bfda6a145 Merge fix/issue-605: strip proxy_ prefix in non-streaming Claude responses (#605, #592) 2026-03-28 16:17:06 -03:00
diegosouzapw 98470e8551 Merge fix/issue-711: provider max_tokens cap + upstream sync tasks (#711) 2026-03-28 16:08:12 -03:00
diegosouzapw df558ab8d6 Merge fix/issue-710: A2A TaskManager globalThis singleton + E2E auth (#710) 2026-03-28 16:07:34 -03:00
diegosouzapw c07372b58c fix: ensure output directory exists for system-info (#709) 2026-03-28 15:54:15 -03:00
diegosouzapw 00f59b95ae fix: protocol clients e2e dev mode singleton and auth (#710) 2026-03-28 15:52:29 -03:00
diegosouzapw 8915a7c2cd fix: add provider-specific max_tokens cap (#711) 2026-03-28 15:41:59 -03:00
diegosouzapw 8595964ab8 feat/fix: implement upstream sync tasks 1-7 2026-03-28 14:48:57 -03:00
diegosouzapw 922dae8546 feat: add Codex auth.json export and apply-local buttons for CLI integration
- Add codexAuthFile.ts utility: builds Codex auth.json payload from OAuth connection
  (id_token, access_token, refresh_token, account_id) with auto-refresh if expired
- Add POST /api/providers/[id]/codex-auth/export: downloads auth.json file
- Add POST /api/providers/[id]/codex-auth/apply-local: writes auth.json to local CLI path
- Add 'Apply auth' and 'Export auth' buttons to ConnectionRow (Codex provider only)
- Add i18n keys for en and pt-BR
2026-03-28 13:28:06 -03:00
diegosouzapw 69b3e23400 test(tests): introduce feature-tests suite and update coverage tooling
- add unit tests for API auth, display/error utilities, login bootstrap,
  model combo mappings, provider validation branches, and usage analytics
- add COVERAGE_PLAN.md and extend CONTRIBUTING.md with coverage notes and
  workflow guidance
- update package.json to adjust test:coverage thresholds and add coverage:report;
  include c8 as a devDependency
- introduce test scaffolding and ensure compatibility with existing test runners
- align tests with open-sse changes and improve overall test coverage planning
2026-03-28 12:58:31 -03:00
diegosouzapw 55325773dc feat(open-sse): add schema coercion and tool sanitization
- introduce open-sse/translator/helpers/schemaCoercion.ts to coerce
  numeric JSON Schema fields encoded as strings
- wire coerceToolSchemas and sanitizeToolDescriptions into translator
  pipeline; ensure tool descriptions are sanitized
- inject empty reasoning content for tool calls when target is OpenAI
  format
- update qwen base URL to DashScope-compatible endpoint
- extend antigravity static catalog with Gemini 3.1 pro preview models and
  update Gemini model specs with preview aliases
- implement call log max cap caching with TTL; expose invalidateCallLogsMaxCache
  and invalidate on settings PATCH
- add tests: call-log-cap.test.mjs and tool-request-sanitization.test.mjs;
  extend tests for Windsurf integration and gemini previews
- update CLI runtime and tools to include Windsurf as a guide-only tool
- add maxCallLogs to validation schemas (settings and updateSettings)
- add Czech README (README.cs.md) to repository
2026-03-28 12:33:13 -03:00
Diego Rodrigues de Sa e Souza cfb390936a Merge pull request #697 from diegosouzapw/fix/issue-667-opencode-zen-models
fix: add opencode-zen to PROVIDER_MODELS_CONFIG (#667)
2026-03-28 01:55:06 -03:00
diegosouzapw c5f344f333 fix: add opencode-zen to PROVIDER_MODELS_CONFIG (#667)
The 'Import from /models' button failed because opencode-zen was not
registered in PROVIDER_MODELS_CONFIG. The provider's API at
https://opencode.ai/zen/v1/models returns standard OpenAI-compatible
format and is now properly configured for model import.
2026-03-28 01:54:39 -03:00
diegosouzapw ba4b496306 Merge PR #666: Add Claude prompt cache logging and exclude cache reads
Includes fixes applied during review:
- Removed duplicate imports in chatCore.ts
- Fixed stray translatedBody argument (stream boolean bug)
- Fixed truncated test file
- Fixed usageExtractor cached_tokens fallback

Closes #688, Closes #640
2026-03-28 01:53:25 -03:00
diegosouzapw c48554589c fix: repair test failures from PR #666 changes
- Fix usageExtractor cached_tokens fallback for Responses API (use cache_read_input_tokens when input_tokens_details is absent)
- Fix truncated claude-native-passthrough-tools.test.mjs that caused parse error
2026-03-28 01:50:04 -03:00
Diego Rodrigues de Sa e Souza da0851e21d Merge pull request #690 from alper-han/feat/i18n-tr
Reviewed and approved via consolidated analysis. Turkish locale (31st language) follows existing i18n patterns perfectly. Registered in config.ts, generate-multilang.mjs, and full tr.json translation file.
2026-03-28 01:46:04 -03:00
Diego Rodrigues de Sa e Souza d2d05abac0 Merge pull request #693 from christopher-s/main
Reviewed and approved via consolidated analysis. GLM-5.1 addition and pricing corrections match official Z.AI pricing page. All 5 files follow existing patterns.
2026-03-28 01:45:52 -03:00
Diego Rodrigues de Sa e Souza de3e0423cc Merge pull request #696 from benjaminkitt/fix/input-stream-invalid-boolean
Reviewed and approved via consolidated analysis. Fix is surgical (1 line removed) with 122 lines of regression tests covering stream=true, stream=false and guard scenarios. Resolves #677.
2026-03-28 01:45:39 -03:00
Benjamin Kitt 8d742d7938 test: add regression tests for stream boolean in claude passthrough
Three tests covering the fixed bug where translateRequest received an
object instead of a boolean for the stream parameter:
- stream=true round-trip produces boolean true
- stream=false round-trip produces boolean false
- guard test documenting that passing an object as stream breaks typing

Co-Authored-By: Craft Agent <agents-noreply@craft.do>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-27 22:38:34 -05:00
Benjamin Kitt 682fd550fa fix(core): remove extra arg in claude passthrough translateRequest call
The second translateRequest call in the claude->openai->claude passthrough
path had an extra `translatedBody` argument before `stream`, shifting all
parameters by one. This caused the `stream` field in the upstream request
to be set to an object instead of a boolean, producing:
  "stream: Input should be a valid boolean"

Co-Authored-By: Craft Agent <agents-noreply@craft.do>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-27 22:30:02 -05:00
Chris Staley abcf836a0c feat: add GLM-5.1 to GLM Coding provider, update GLM-5 pricing
- Add glm-5.1 model to GLM Coding provider with fitness scores
- Update glm-5 pricing to match Z.AI API page ($1/$3.2/$0.2)
- Set glm-5.1 pricing to $1.2/$5/$0.3 per Z.AI
- Remove glm-4-32b (deprecated, returns empty from upstream)
- Rename Z.AI provider display name from "Z.AI (GLM-5)" to "Z.AI"
- Update zai pricing section to match glm pricing
2026-03-27 16:23:44 -06:00
diegosouzapw b123fb2cc7 chore(release): bump version to v3.1.8 and global i18n sync
Build Electron Desktop App / Validate version (push) Failing after 36s
Build Electron Desktop App / Build Electron (macos-arm64) (push) Has been skipped
Build Electron Desktop App / Build Electron (linux) (push) Has been skipped
Build Electron Desktop App / Build Electron (macos-intel) (push) Has been skipped
Build Electron Desktop App / Build Electron (windows) (push) Has been skipped
Build Electron Desktop App / Create Release (push) Has been skipped
Build Electron Desktop App / Publish to npm (push) Has been skipped
2026-03-27 18:08:16 -03:00
Diego Rodrigues de Sa e Souza 0da3621a68 Merge pull request #692 from diegosouzapw/fix/recent-bugs
fix: resolve issues 681, 684, 685
2026-03-27 18:04:03 -03:00
alper-han 8ed452d9ea feat: add Turkish translations 2026-03-27 22:28:21 +03:00
diegosouzapw f380d44697 fix(core): hidden models flag, antigravity streaming, and i18n translation sync (#681, #684, #685) 2026-03-27 16:17:28 -03:00
Chris 86d377a2f0 fix: remove id/type from tool_calls delta chunks in Responses API streaming (#683)
In OpenAI Chat Completions streaming format, the tool call id and type
should only appear on the first chunk (tool declaration). Subsequent
argument delta chunks should only include index and function.arguments.

Including id on every delta chunk caused openai-to-claude.ts to emit
a new content_block_start for each chunk, breaking Claude Code ACP
sessions with malformed Claude-format streams.

Fixes #682

Co-authored-by: Chris Staley <christopher.staley@protonmail.com>
2026-03-27 15:25:16 -03:00
diegosouzapw 508a6d99f5 chore(release): bump version to v3.1.7 and fix SSE parsing bug
Build Electron Desktop App / Validate version (push) Failing after 34s
Build Electron Desktop App / Build Electron (macos-arm64) (push) Has been skipped
Build Electron Desktop App / Build Electron (linux) (push) Has been skipped
Build Electron Desktop App / Build Electron (macos-intel) (push) Has been skipped
Build Electron Desktop App / Build Electron (windows) (push) Has been skipped
Build Electron Desktop App / Create Release (push) Has been skipped
Build Electron Desktop App / Publish to npm (push) Has been skipped
2026-03-27 15:17:13 -03:00
Paijo 63e42047e3 fix: hasValuableContent explicit boolean returns for SSE streaming (#676)
The hasValuableContent() function in streamHelpers.ts returned undefined
instead of explicit false when checking empty delta chunks. This caused
JavaScript type coercion issues where undefined !== '' evaluated to true,
passing empty chunks through to clients.

Fix: Replace implicit returns with explicit boolean returns using
typeof checks and length comparisons for all content fields (content,
reasoning_content, tool_calls, text, thinking, partial_json).

Test: Added unit tests covering OpenAI, Claude, and Gemini format edge cases.

Co-authored-by: oyi77 <oyi77@users.noreply.github.com>
2026-03-27 15:12:51 -03:00
cai kerui ae8d2ac2e1 Merge branch 'main' into codex/claude-cache-log-accounting 2026-03-27 17:25:38 +09:00
cai kerui 93beb068a3 Add Claude prompt cache logging and exclude cache reads 2026-03-27 15:14:54 +09:00
diegosouzapw 7e90b8b7be i18n: add clearAllModels translations for all 30 languages 2026-03-26 08:43:52 -03:00
diegosouzapw ed146fcf07 fix: strip proxy_ prefix in non-streaming Claude responses & fix LongCat validation (#605, #592)
- fix(translator): pass toolNameMap to translateNonStreamingResponse so Claude
  OAuth proxy_ prefix is correctly stripped from tool_use block names in
  non-streaming responses (was only stripped in streaming path)
- fix(validation): add LongCat specialty validator that probes /chat/completions
  directly, bypassing the /v1/models endpoint that LongCat does not expose (#592)
2026-03-25 08:11:35 -03:00
126 changed files with 60527 additions and 262 deletions
+1
View File
@@ -112,6 +112,7 @@ app.log
# Backup directories
app.__qa_backup/
.app-build-backup-*/
# Production standalone build (created by scripts/prepublish.mjs)
# Conflicts with Next.js App Router detection in dev (root app/ shadows src/app/)
+58
View File
@@ -4,6 +4,64 @@
---
## [3.1.10] — 2026-03-28
### 🐛 Bug Fixes
- **Fix #706** — Fixed icon fallback rendering caused by Tailwind V4 `font-sans` override by applying `!important` to `.material-symbols-outlined`.
- **Fix #703** — Fixed GitHub Copilot broken streams by enabling `responses` to `openai` format translation for any custom models leveraging `apiFormat: "responses"`.
- **Fix #702** — Replaced flat-rate usage tracking with accurate DB pricing calculations for both streaming and non-streaming responses.
- **Fix #716** — Cleaned up Claude tool-call translation state, correctly parsing streaming arguments and preventing OpenAI `tool_calls` chunks from repeating the `id` field.
## [3.1.9] — 2026-03-28
### ✨ New Features
- **Schema Coercion** — Auto-coerce string-encoded numeric JSON Schema constraints (e.g. `"minimum": "1"`) to proper types, preventing 400 errors from Cursor, Cline, and other clients sending malformed tool schemas.
- **Tool Description Sanitization** — Ensure tool descriptions are always strings; converts `null`, `undefined`, or numeric descriptions to empty strings before sending to providers.
- **Clear All Models Button** — Added i18n translations for the "Clear All Models" provider action across all 30 languages.
- **Codex Auth Export** — Added Codex `auth.json` export and apply-local buttons for seamless CLI integration.
- **Windsurf BYOK Notes** — Added official limitation warnings to the Windsurf CLI tool card documenting BYOK constraints.
### 🐛 Bug Fixes
- **Fix #709** — `system-info.mjs` no longer crashes when the output directory doesn't exist (added `mkdirSync` with recursive flag).
- **Fix #710** — A2A `TaskManager` singleton now uses `globalThis` to prevent state leakage across Next.js API route recompilations in dev mode. E2E test suite updated to handle 401 gracefully.
- **Fix #711** — Added provider-specific `max_tokens` cap enforcement for upstream requests.
- **Fix #605 / #592** — Strip `proxy_` prefix from tool names in non-streaming Claude responses; fixed LongCat validation URL.
- **Call Logs Max Cap** — Upgraded `getMaxCallLogs()` with caching layer, env var support (`CALL_LOGS_MAX`), and DB settings integration.
### 🧪 Tests
- Test suite expanded from 964 → 1027 tests (63 new tests)
- Added `schema-coercion.test.mjs` — 9 tests for numeric field coercion and tool description sanitization
- Added `t40-opencode-cli-tools-integration.test.mjs` — OpenCode/Windsurf CLI integration tests
- Enhanced feature-tests branch with comprehensive coverage tooling
### 📁 New Files
| File | Purpose |
| -------------------------------------------------------- | ----------------------------------------------------------- |
| `open-sse/translator/helpers/schemaCoercion.ts` | Schema coercion and tool description sanitization utilities |
| `tests/unit/schema-coercion.test.mjs` | Unit tests for schema coercion |
| `tests/unit/t40-opencode-cli-tools-integration.test.mjs` | CLI tool integration tests |
| `COVERAGE_PLAN.md` | Test coverage planning document |
## [3.1.8] - 2026-03-27
### 🐛 Bug Fixes & Features
- **Platform Core:** Implemented global state handling for Hidden Models & Combos preventing them from cluttering the catalog or leaking into connected MCP agents (#681).
- **Stability:** Patched streaming crashes related to the native Antigravity provider integration failing due to unhandled undefined state arrays (#684).
- **Localization Sync:** Deployed a fully overhauled `i18n` synchronizer detecting missing nested JSON properties and retro-fitting 30 locales sequentially (#685).## [3.1.7] - 2026-03-27
### 🐛 Bug Fixes
- **Streaming Stability:** Fixed `hasValuableContent` returning `undefined` for empty chunks in SSE streams (#676).
- **Tool Calling:** Fixed an issue in `sseParser.ts` where non-streaming Claude responses with multiple tool calls dropped the `id` of subsequent tool calls due to incorrect index-based deduplication (#671).
---
## [3.1.6] — 2026-03-27
### 🐛 Bug Fixes
+8 -1
View File
@@ -114,6 +114,7 @@ npm run test:fixes # Fix verification tests
# With coverage
npm run test:coverage
npm run coverage:report
# E2E tests (requires Playwright)
npm run test:e2e
@@ -123,7 +124,13 @@ npm run lint
npm run check
```
Current test status: **368+ unit tests** covering:
Coverage notes:
- `npm run test:coverage` measures source coverage for the main unit test suite, excludes `tests/**`, and includes `open-sse/**`
- `npm run coverage:report` prints the detailed file-by-file report from the latest coverage run
- `npm run test:coverage:legacy` preserves the older metric for historical comparison
Current test status: **968+ unit tests** covering:
- Provider translators and format conversion
- Rate limiting, circuit breaker, and resilience
+166
View File
@@ -0,0 +1,166 @@
# Test Coverage Plan
Last updated: 2026-03-28
## Baseline
There are multiple coverage numbers depending on how the report is computed. For planning, only one of them is useful.
| Metric | Scope | Statements / Lines | Branches | Functions | Notes |
| -------------------- | ----------------------------------------------------- | -----------------: | -------: | --------: | --------------------------------------------------- |
| Legacy | Old `npm run test:coverage` | 79.42% | 75.15% | 67.94% | Inflated: counts test files and excludes `open-sse` |
| Diagnostic | Source-only, excluding tests and excluding `open-sse` | 68.16% | 63.55% | 64.06% | Useful only to isolate `src/**` |
| Recommended baseline | Source-only, excluding tests and including `open-sse` | 56.95% | 66.05% | 57.80% | This is the project-wide baseline to improve |
The recommended baseline is the number to optimize against.
## Rules
- Coverage targets apply to source files, not to `tests/**`.
- `open-sse/**` is part of the product and must remain in scope.
- New code should not reduce coverage in touched areas.
- Prefer testing behavior and branch outcomes over implementation details.
- Prefer temp SQLite databases and small fixtures over broad mocks for `src/lib/db/**`.
## Current command set
- `npm run test:coverage`
- Main source coverage gate for the unit test suite
- Generates `text-summary`, `html`, `json-summary`, and `lcov`
- `npm run coverage:report`
- Detailed file-by-file report from the latest run
- `npm run test:coverage:legacy`
- Historical comparison only
## Milestones
| Phase | Target | Focus |
| ------- | ---------------------: | ------------------------------------------------- |
| Phase 1 | 60% statements / lines | Quick wins and low-risk utility coverage |
| Phase 2 | 65% statements / lines | DB and route foundations |
| Phase 3 | 70% statements / lines | Provider validation and usage analytics |
| Phase 4 | 75% statements / lines | `open-sse` translators and helpers |
| Phase 5 | 80% statements / lines | `open-sse` handlers and executor branches |
| Phase 6 | 85% statements / lines | Harder edge cases, branch debt, regression suites |
| Phase 7 | 90% statements / lines | Final sweep, gap closure, strict ratchet |
Branches and functions should ratchet upward with each phase, but the primary hard target is statements / lines.
## Priority hotspots
These files or areas offer the best return for the next phases:
1. `open-sse/handlers`
- `chatCore.ts` at 7.57%
- Overall directory at 29.07%
2. `open-sse/translator/request`
- Overall directory at 36.39%
- Many translators are still near single-digit coverage
3. `open-sse/translator/response`
- Overall directory at 8.07%
4. `open-sse/executors`
- Overall directory at 36.62%
5. `src/lib/db`
- `models.ts` at 20.66%
- `registeredKeys.ts` at 34.46%
- `modelComboMappings.ts` at 36.25%
- `settings.ts` at 46.40%
- `webhooks.ts` at 33.33%
6. `src/lib/usage`
- `usageHistory.ts` at 21.12%
- `usageStats.ts` at 9.56%
- `costCalculator.ts` at 30.00%
7. `src/lib/providers`
- `validation.ts` at 41.16%
8. Low-risk utility and API files for early gains
- `src/shared/utils/upstreamError.ts`
- `src/shared/utils/apiAuth.ts`
- `src/lib/api/errorResponse.ts`
- `src/app/api/settings/require-login/route.ts`
- `src/app/api/providers/[id]/models/route.ts`
## Execution checklist
### Phase 1: 56.95% -> 60%
- [x] Fix coverage metric so it reflects source code instead of test files
- [x] Keep a legacy coverage script for comparison
- [x] Record the baseline and hotspots in-repo
- [ ] Add focused tests for low-risk utilities:
- `src/shared/utils/upstreamError.ts`
- `src/shared/utils/fetchTimeout.ts`
- `src/lib/api/errorResponse.ts`
- `src/shared/utils/apiAuth.ts`
- `src/lib/display/names.ts`
- [ ] Add route tests for:
- `src/app/api/settings/require-login/route.ts`
- `src/app/api/providers/[id]/models/route.ts`
### Phase 2: 60% -> 65%
- [ ] Add DB-backed tests for:
- `src/lib/db/modelComboMappings.ts`
- `src/lib/db/settings.ts`
- `src/lib/db/registeredKeys.ts`
- [ ] Cover branch behavior in:
- `src/lib/providers/validation.ts`
- `src/app/api/v1/embeddings/route.ts`
- `src/app/api/v1/moderations/route.ts`
### Phase 3: 65% -> 70%
- [ ] Add usage analytics tests for:
- `src/lib/usage/usageHistory.ts`
- `src/lib/usage/usageStats.ts`
- `src/lib/usage/costCalculator.ts`
- [ ] Expand route coverage for proxy management and settings branches
### Phase 4: 70% -> 75%
- [ ] Cover translator helpers and central translation paths:
- `open-sse/translator/index.ts`
- `open-sse/translator/helpers/*`
- `open-sse/translator/request/*`
- `open-sse/translator/response/*`
### Phase 5: 75% -> 80%
- [ ] Add handler-level tests for:
- `open-sse/handlers/chatCore.ts`
- `open-sse/handlers/responsesHandler.js`
- `open-sse/handlers/imageGeneration.js`
- `open-sse/handlers/embeddings.js`
- [ ] Add executor branch coverage for provider-specific auth, retries, and endpoint overrides
### Phase 6: 80% -> 85%
- [ ] Merge more edge-case suites into the main coverage path
- [ ] Increase function coverage for DB modules with weak constructor/helper coverage
- [ ] Close branch gaps in `settings.ts`, `registeredKeys.ts`, `validation.ts`, and translator helpers
### Phase 7: 85% -> 90%
- [ ] Treat the remaining low-coverage files as blockers
- [ ] Add regression tests for every uncovered production bug fixed during the push to 90%
- [ ] Raise the coverage gate in CI only after the local baseline is stable for at least two consecutive runs
## Ratchet policy
Update `npm run test:coverage` thresholds only after the project actually exceeds the next milestone with a comfortable buffer.
Recommended ratchet sequence:
1. 55/60/55
2. 60/62/58
3. 65/64/62
4. 70/66/66
5. 75/70/72
6. 80/75/78
7. 85/80/84
8. 90/85/88
Order is `statements-lines / branches / functions`.
## Known gap
The current coverage command measures the main Node unit suite and includes source reached from it, including `open-sse`. It does not yet merge Vitest coverage into a single unified report. That merge is worth doing later, but it is not a blocker for starting the 60% -> 80% climb.
+8 -1
View File
@@ -1,13 +1,17 @@
FROM node:22-bookworm-slim AS builder
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends libsecret-1-0 \
&& rm -rf /var/lib/apt/lists/*
COPY package*.json ./
COPY scripts/postinstall.mjs ./scripts/postinstall.mjs
COPY scripts/native-binary-compat.mjs ./scripts/native-binary-compat.mjs
RUN if [ -f package-lock.json ]; then npm ci --no-audit --no-fund; else npm install --no-audit --no-fund; fi
COPY . ./
RUN mkdir -p /app/data && npm run build
RUN mkdir -p /app/data && npm run build -- --webpack
FROM node:22-bookworm-slim AS runner-base
WORKDIR /app
@@ -25,6 +29,9 @@ ENV NODE_OPTIONS="--max-old-space-size=256"
# Data directory inside Docker — must match the volume mount in docker-compose.yml
ENV DATA_DIR=/app/data
RUN apt-get update \
&& apt-get install -y --no-install-recommends libsecret-1-0 \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /app/data
COPY --from=builder /app/public ./public
+2074
View File
File diff suppressed because it is too large Load Diff
+2074
View File
File diff suppressed because it is too large Load Diff
+2081
View File
File diff suppressed because it is too large Load Diff
+2074
View File
File diff suppressed because it is too large Load Diff
+2074
View File
File diff suppressed because it is too large Load Diff
+2074
View File
File diff suppressed because it is too large Load Diff
+2074
View File
File diff suppressed because it is too large Load Diff
+2074
View File
File diff suppressed because it is too large Load Diff
+1962
View File
File diff suppressed because it is too large Load Diff
+2073
View File
File diff suppressed because it is too large Load Diff
+2074
View File
File diff suppressed because it is too large Load Diff
+29
View File
@@ -876,6 +876,35 @@ docker compose --profile base up -d
docker compose --profile cli up -d
```
**Using Docker Compose with Caddy (HTTPS Auto-TLS):**
OmniRoute can be securely exposed using Caddy's automatic SSL provisioning. Ensure your domain's DNS A record points to your server's IP.
```yaml
services:
omniroute:
image: diegosouzapw/omniroute:latest
container_name: omniroute
restart: unless-stopped
volumes:
- omniroute-data:/app/data
environment:
- PORT=20128
- NEXT_PUBLIC_BASE_URL=https://your-domain.com
caddy:
image: caddy:latest
container_name: caddy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
command: caddy reverse-proxy --from https://your-domain.com --to http://omniroute:20128
volumes:
omniroute-data:
```
| Image | Tag | Size | Description |
| ------------------------ | -------- | ------ | --------------------- |
| `diegosouzapw/omniroute` | `latest` | ~250MB | Latest stable release |
+2074
View File
File diff suppressed because it is too large Load Diff
+2074
View File
File diff suppressed because it is too large Load Diff
+2074
View File
File diff suppressed because it is too large Load Diff
+2074
View File
File diff suppressed because it is too large Load Diff
+2074
View File
File diff suppressed because it is too large Load Diff
+2074
View File
File diff suppressed because it is too large Load Diff
+2074
View File
File diff suppressed because it is too large Load Diff
+2080
View File
File diff suppressed because it is too large Load Diff
+2074
View File
File diff suppressed because it is too large Load Diff
+2074
View File
File diff suppressed because it is too large Load Diff
+2079
View File
File diff suppressed because it is too large Load Diff
+2074
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,7 +1,7 @@
openapi: 3.1.0
info:
title: OmniRoute API
version: 3.1.6
version: 3.1.10
description: |
OmniRoute is a local-first AI API proxy router. It provides an OpenAI-compatible
endpoint that routes requests to multiple AI providers with load balancing,
+2
View File
@@ -18,6 +18,7 @@ const nextConfig = {
"thread-stream",
"better-sqlite3",
"keytar",
"wreq-js",
"zod",
"child_process",
"fs",
@@ -72,6 +73,7 @@ const nextConfig = {
const KNOWN_EXTERNALS = new Set([
"better-sqlite3",
"keytar",
"wreq-js",
"zod",
"pino",
"pino-pretty",
+9
View File
@@ -66,6 +66,15 @@ export const DEFAULT_MAX_TOKENS = 64000;
// Minimum max tokens for tool calling (to prevent truncated arguments)
export const DEFAULT_MIN_TOKENS = 32000;
export const PROVIDER_MAX_TOKENS: Record<string, number> = {
groq: 16384, // Groq strict per-model enforcement
openai: 16384, // GPT-4/4o standard
anthropic: 65536, // Claude models
gemini: 65536, // Gemini Studio
};
export const DEFAULT_PROVIDER_MAX_TOKENS = 32000;
// HTTP status codes
export const HTTP_STATUS = {
BAD_REQUEST: 400,
+2 -2
View File
@@ -291,7 +291,7 @@ export const REGISTRY: Record<string, RegistryEntry> = {
alias: "qw",
format: "openai",
executor: "default",
baseUrl: "https://portal.qwen.ai/v1/chat/completions",
baseUrl: "https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions",
authType: "oauth",
authHeader: "bearer",
headers: {
@@ -626,6 +626,7 @@ export const REGISTRY: Record<string, RegistryEntry> = {
"Anthropic-Beta": "claude-code-20250219,interleaved-thinking-2025-05-14",
},
models: [
{ id: "glm-5.1", name: "GLM 5.1" },
{ id: "glm-5", name: "GLM 5" },
{ id: "glm-5-turbo", name: "GLM 5 Turbo" },
{ id: "glm-4.7-flash", name: "GLM 4.7 Flash" },
@@ -635,7 +636,6 @@ export const REGISTRY: Record<string, RegistryEntry> = {
{ id: "glm-4.5v", name: "GLM 4.5V (Vision)" },
{ id: "glm-4.5", name: "GLM 4.5" },
{ id: "glm-4.5-air", name: "GLM 4.5 Air" },
{ id: "glm-4-32b", name: "GLM 4 32B" },
],
},
+232 -16
View File
@@ -15,7 +15,7 @@ import { getModelTargetFormat, PROVIDER_ID_TO_ALIAS } from "../config/providerMo
import { resolveModelAlias } from "../services/modelDeprecation.ts";
import { getUnsupportedParams } from "../config/providerRegistry.ts";
import { createErrorResult, parseUpstreamError, formatProviderError } from "../utils/error.ts";
import { HTTP_STATUS } from "../config/constants.ts";
import { HTTP_STATUS, PROVIDER_MAX_TOKENS } from "../config/constants.ts";
import { classifyProviderError, PROVIDER_ERROR_TYPES } from "../services/errorClassifier.ts";
import { updateProviderConnection } from "@/lib/db/providers";
import { logAuditEvent } from "@/lib/compliance";
@@ -26,13 +26,17 @@ import {
appendRequestLog,
saveCallLog,
} from "@/lib/usageDb";
import { getLoggedInputTokens, getLoggedOutputTokens } from "@/lib/usage/tokenAccounting";
import { recordCost } from "@/domain/costRules";
import { calculateCost } from "@/lib/usage/costCalculator";
import { CLAUDE_OAUTH_TOOL_PREFIX } from "../translator/request/openai-to-claude.ts";
import {
getModelNormalizeToolCallId,
getModelPreserveOpenAIDeveloperRole,
getModelUpstreamExtraHeaders,
} from "@/lib/localDb";
import { getExecutor } from "../executors/index.ts";
import { CLAUDE_OAUTH_TOOL_PREFIX } from "../translator/request/openai-to-claude.ts";
import {
parseCodexQuotaHeaders,
getCodexResetTime,
@@ -130,6 +134,157 @@ function restoreClaudePassthroughToolNames(
};
}
function getHeaderValueCaseInsensitive(
headers: Record<string, unknown> | null | undefined,
targetName: string
) {
if (!headers || typeof headers !== "object") return null;
const lowered = targetName.toLowerCase();
for (const [key, value] of Object.entries(headers)) {
if (key.toLowerCase() === lowered && typeof value === "string" && value.trim()) {
return value.trim();
}
}
return null;
}
function buildClaudePromptCacheLogMeta(
targetFormat: string,
finalBody: Record<string, unknown> | null | undefined,
providerHeaders: Record<string, unknown> | null | undefined
) {
if (targetFormat !== FORMATS.CLAUDE || !finalBody || typeof finalBody !== "object") return null;
const describeCacheControl = (cacheControl: Record<string, unknown> | undefined, extra = {}) => ({
type:
cacheControl && typeof cacheControl.type === "string" && cacheControl.type.trim()
? cacheControl.type.trim()
: "ephemeral",
ttl:
cacheControl && typeof cacheControl.ttl === "string" && cacheControl.ttl.trim()
? cacheControl.ttl.trim()
: null,
...extra,
});
const systemBreakpoints = Array.isArray(finalBody.system)
? finalBody.system.flatMap((block, index) => {
if (!block || typeof block !== "object") return [];
const cacheControl =
block.cache_control && typeof block.cache_control === "object"
? block.cache_control
: null;
return cacheControl ? [describeCacheControl(cacheControl, { index })] : [];
})
: [];
const toolBreakpoints = Array.isArray(finalBody.tools)
? finalBody.tools.flatMap((tool, index) => {
if (!tool || typeof tool !== "object") return [];
const cacheControl =
tool.cache_control && typeof tool.cache_control === "object" ? tool.cache_control : null;
const name = typeof tool.name === "string" && tool.name.trim() ? tool.name.trim() : null;
return cacheControl ? [describeCacheControl(cacheControl, { index, name })] : [];
})
: [];
const messageBreakpoints = Array.isArray(finalBody.messages)
? finalBody.messages.flatMap((message, messageIndex) => {
if (!message || typeof message !== "object" || !Array.isArray(message.content)) return [];
const role =
typeof message.role === "string" && message.role.trim() ? message.role.trim() : "unknown";
return message.content.flatMap((block, contentIndex) => {
if (!block || typeof block !== "object") return [];
const cacheControl =
block.cache_control && typeof block.cache_control === "object"
? block.cache_control
: null;
if (!cacheControl) return [];
return [
describeCacheControl(cacheControl, {
messageIndex,
contentIndex,
role,
blockType:
typeof block.type === "string" && block.type.trim() ? block.type.trim() : "unknown",
}),
];
});
})
: [];
const totalBreakpoints =
systemBreakpoints.length + toolBreakpoints.length + messageBreakpoints.length;
const anthropicBeta = getHeaderValueCaseInsensitive(providerHeaders, "Anthropic-Beta");
if (totalBreakpoints === 0 && !anthropicBeta) return null;
return {
applied: totalBreakpoints > 0,
totalBreakpoints,
anthropicBeta,
systemBreakpoints,
toolBreakpoints,
messageBreakpoints,
};
}
function toPositiveNumber(value: unknown) {
return typeof value === "number" && Number.isFinite(value) && value > 0 ? value : 0;
}
function buildCacheUsageLogMeta(usage: Record<string, unknown> | null | undefined) {
if (!usage || typeof usage !== "object") return null;
const promptTokenDetails =
usage.prompt_tokens_details && typeof usage.prompt_tokens_details === "object"
? (usage.prompt_tokens_details as Record<string, unknown>)
: undefined;
const hasCacheFields =
"cache_read_input_tokens" in usage ||
"cached_tokens" in usage ||
"cache_creation_input_tokens" in usage ||
(!!promptTokenDetails &&
("cached_tokens" in promptTokenDetails || "cache_creation_tokens" in promptTokenDetails));
const cacheReadTokens = toPositiveNumber(
usage.cache_read_input_tokens ?? usage.cached_tokens ?? promptTokenDetails?.cached_tokens
);
const cacheCreationTokens = toPositiveNumber(
usage.cache_creation_input_tokens ?? promptTokenDetails?.cache_creation_tokens
);
if (!hasCacheFields) return null;
return {
cacheReadTokens,
cacheCreationTokens,
};
}
function attachLogMeta(
payload: Record<string, unknown> | null | undefined,
meta: Record<string, unknown> | null | undefined
) {
if (!meta || typeof meta !== "object") return payload;
const compactMeta = Object.fromEntries(
Object.entries(meta).filter(([, value]) => value !== null && value !== undefined)
);
if (Object.keys(compactMeta).length === 0) return payload;
if (!payload || typeof payload !== "object" || Array.isArray(payload)) {
return { _omniroute: compactMeta, _payload: payload ?? null };
}
const existing =
payload._omniroute &&
typeof payload._omniroute === "object" &&
!Array.isArray(payload._omniroute)
? payload._omniroute
: {};
return {
...payload,
_omniroute: {
...existing,
...compactMeta,
},
};
}
/**
* Core chat handler - shared between SSE and Worker
* Returns { success, response, status, error } for caller to handle fallback
@@ -462,7 +617,6 @@ export async function handleChatCore({
FORMATS.CLAUDE,
model,
{ ...translatedBody, _disableToolPrefix: true },
translatedBody,
stream,
credentials,
provider,
@@ -642,6 +796,22 @@ export async function handleChatCore({
}
}
// Provider-specific max_tokens caps (#711)
// Some providers reject requests when max_tokens exceeds their API limit.
// Cap before sending to avoid upstream HTTP 400 errors.
const providerCap = PROVIDER_MAX_TOKENS[provider];
if (providerCap) {
for (const field of ["max_tokens", "max_completion_tokens"] as const) {
if (typeof translatedBody[field] === "number" && translatedBody[field] > providerCap) {
log?.debug?.(
"PARAMS",
`Capping ${field} from ${translatedBody[field]} to ${providerCap} for ${provider}`
);
translatedBody[field] = providerCap;
}
}
}
// Get executor for this provider
const executor = getExecutor(provider);
const getExecutionCredentials = () =>
@@ -721,6 +891,7 @@ export async function handleChatCore({
let providerUrl;
let providerHeaders;
let finalBody;
let claudePromptCacheLogMeta = null;
try {
const result = await executeProviderRequest(effectiveModel, true);
@@ -729,6 +900,11 @@ export async function handleChatCore({
providerUrl = result.url;
providerHeaders = result.headers;
finalBody = result.transformedBody;
claudePromptCacheLogMeta = buildClaudePromptCacheLogMeta(
targetFormat,
finalBody,
providerHeaders
);
// Log target request (final request to provider)
reqLogger.logTargetRequest(providerUrl, providerHeaders, finalBody);
@@ -758,7 +934,9 @@ export async function handleChatCore({
provider,
connectionId,
duration: Date.now() - startTime,
requestBody: body,
requestBody: attachLogMeta(body, {
claudePromptCache: claudePromptCacheLogMeta,
}),
error: error.message,
sourceFormat,
targetFormat,
@@ -898,7 +1076,9 @@ export async function handleChatCore({
provider,
connectionId,
duration: Date.now() - startTime,
requestBody: body,
requestBody: attachLogMeta(body, {
claudePromptCache: claudePromptCacheLogMeta,
}),
error: message,
sourceFormat,
targetFormat,
@@ -1084,6 +1264,7 @@ export async function handleChatCore({
);
// Save structured call log with full payloads
const cacheUsageLogMeta = buildCacheUsageLogMeta(usage);
saveCallLog({
method: "POST",
path: clientRawRequest?.endpoint || "/v1/chat/completions",
@@ -1094,8 +1275,19 @@ export async function handleChatCore({
connectionId,
duration: Date.now() - startTime,
tokens: usage,
requestBody: body,
responseBody,
requestBody: attachLogMeta(body, {
claudePromptCache: claudePromptCacheLogMeta,
}),
responseBody: attachLogMeta(responseBody, {
claudePromptCache: claudePromptCacheLogMeta
? {
applied: claudePromptCacheLogMeta.applied,
totalBreakpoints: claudePromptCacheLogMeta.totalBreakpoints,
anthropicBeta: claudePromptCacheLogMeta.anthropicBeta,
}
: null,
claudePromptCacheUsage: cacheUsageLogMeta,
}),
sourceFormat,
targetFormat,
comboName,
@@ -1104,7 +1296,7 @@ export async function handleChatCore({
noLog: apiKeyInfo?.noLog === true,
}).catch(() => {});
if (usage && typeof usage === "object") {
const msg = `[${new Date().toLocaleTimeString("en-US", { hour12: false, hour: "2-digit", minute: "2-digit" })}] 📊 [USAGE] ${provider.toUpperCase()} | in=${usage?.prompt_tokens || 0} | out=${usage?.completion_tokens || 0}${connectionId ? ` | account=${connectionId.slice(0, 8)}...` : ""}`;
const msg = `[${new Date().toLocaleTimeString("en-US", { hour12: false, hour: "2-digit", minute: "2-digit" })}] 📊 [USAGE] ${provider.toUpperCase()} | in=${getLoggedInputTokens(usage)} | out=${getLoggedOutputTokens(usage)}${connectionId ? ` | account=${connectionId.slice(0, 8)}...` : ""}`;
console.log(`${COLORS.green}${msg}${COLORS.reset}`);
saveRequestUsage({
@@ -1125,6 +1317,11 @@ export async function handleChatCore({
});
}
if (apiKeyInfo?.id && usage) {
const estimatedCost = await calculateCost(provider, model, usage);
if (estimatedCost > 0) recordCost(apiKeyInfo.id, estimatedCost);
}
// Translate response to client's expected format (usually OpenAI)
// Pass toolNameMap so Claude OAuth proxy_ prefix is stripped in tool_use blocks (#605)
let translatedResponse = needsTranslation(targetFormat, sourceFormat)
@@ -1226,6 +1423,7 @@ export async function handleChatCore({
usage: streamUsage,
responseBody: streamResponseBody,
}) => {
const cacheUsageLogMeta = buildCacheUsageLogMeta(streamUsage);
saveCallLog({
method: "POST",
path: clientRawRequest?.endpoint || "/v1/chat/completions",
@@ -1236,8 +1434,19 @@ export async function handleChatCore({
connectionId,
duration: Date.now() - startTime,
tokens: streamUsage || {},
requestBody: body,
responseBody: streamResponseBody ?? undefined,
requestBody: attachLogMeta(body, {
claudePromptCache: claudePromptCacheLogMeta,
}),
responseBody: attachLogMeta(streamResponseBody ?? undefined, {
claudePromptCache: claudePromptCacheLogMeta
? {
applied: claudePromptCacheLogMeta.applied,
totalBreakpoints: claudePromptCacheLogMeta.totalBreakpoints,
anthropicBeta: claudePromptCacheLogMeta.anthropicBeta,
}
: null,
claudePromptCacheUsage: cacheUsageLogMeta,
}),
sourceFormat,
targetFormat,
comboName,
@@ -1245,22 +1454,29 @@ export async function handleChatCore({
apiKeyName: apiKeyInfo?.name || null,
noLog: apiKeyInfo?.noLog === true,
}).catch(() => {});
if (apiKeyInfo?.id && streamUsage) {
calculateCost(provider, model, streamUsage)
.then((estimatedCost) => {
if (estimatedCost > 0) recordCost(apiKeyInfo.id, estimatedCost);
})
.catch(() => {});
}
};
// For Codex provider, translate response from openai-responses to openai (Chat Completions) format
// For providers using Responses API format, translate stream back to openai (Chat Completions) format
// UNLESS client is Droid CLI which expects openai-responses format back
const isDroidCLI =
userAgent?.toLowerCase().includes("droid") || userAgent?.toLowerCase().includes("codex-cli");
const needsCodexTranslation =
provider === "codex" &&
const needsResponsesTranslation =
targetFormat === FORMATS.OPENAI_RESPONSES &&
sourceFormat === FORMATS.OPENAI &&
!isResponsesEndpoint &&
!isDroidCLI;
if (needsCodexTranslation) {
// Codex returns openai-responses, translate to openai (Chat Completions) that clients expect
log?.debug?.("STREAM", `Codex translation mode: openai-responses → openai`);
if (needsResponsesTranslation) {
// Provider returns openai-responses, translate to openai (Chat Completions) that clients expect
log?.debug?.("STREAM", `Responses translation mode: openai-responses → openai`);
transformStream = createSSETransformStreamWithLogger(
"openai-responses",
"openai",
+1 -1
View File
@@ -36,8 +36,8 @@ export function parseSSEToOpenAIResponse(rawSSE, fallbackModel) {
let usage = null;
const getToolCallKey = (toolCall: Record<string, unknown>) => {
if (toolCall?.id) return `id:${toolCall.id}`;
if (Number.isInteger(toolCall?.index)) return `idx:${toolCall.index}`;
if (toolCall?.id) return `id:${toolCall.id}`;
unknownToolCallSeq += 1;
return `seq:${unknownToolCallSeq}`;
};
+4 -1
View File
@@ -29,7 +29,10 @@ export function extractUsageFromResponse(responseBody, provider) {
return {
prompt_tokens: responsesUsage.input_tokens || 0,
completion_tokens: responsesUsage.output_tokens || 0,
cached_tokens: responsesUsage.cache_read_input_tokens,
cache_read_input_tokens: responsesUsage.cache_read_input_tokens,
cached_tokens:
responsesUsage.input_tokens_details?.cached_tokens ??
responsesUsage.cache_read_input_tokens,
cache_creation_input_tokens: responsesUsage.cache_creation_input_tokens,
reasoning_tokens:
responsesUsage.reasoning_tokens || responsesUsage.output_tokens_details?.reasoning_tokens,
+1 -1
View File
@@ -439,7 +439,7 @@ async function handleListModelsCatalog(args: { provider?: string; capability?: s
if (args.provider && !args.capability) {
// Use direct provider fetch to get real-time API status
path = `/api/providers/${encodeURIComponent(args.provider)}/models`;
path = `/api/providers/${encodeURIComponent(args.provider)}/models?excludeHidden=true`;
isProviderSpecific = true;
} else {
const params = new URLSearchParams();
+4 -1
View File
@@ -36,7 +36,8 @@ const FITNESS_TABLE: Record<string, Record<string, number>> = {
"grok-3": 0.8,
// Kimi K2.5 — agentic with tool calling, good at code tasks
"kimi-k2": 0.82,
// GLM-5 — Z.AI model with 128k output
// GLM-5.1 / GLM-5 — Z.AI reasoning models, 200K context / 128k output
"glm-5.1": 0.78,
"glm-5": 0.78,
// MiniMax M2.5 — reasoning support helps complex code
"minimax-m2.5": 0.75,
@@ -78,6 +79,7 @@ const FITNESS_TABLE: Record<string, Record<string, number>> = {
"deepseek-r1": 0.88,
"deepseek-chat": 0.8,
"kimi-k2": 0.82, // Kimi K2.5 agentic — good for analysis
"glm-5.1": 0.82, // GLM-5.1 free reasoning, 200K context for long analysis
"glm-5": 0.78, // GLM-5 with 128k output for long analysis
"minimax-m2.5": 0.76,
},
@@ -114,6 +116,7 @@ const FITNESS_TABLE: Record<string, Record<string, number>> = {
"grok-4": 0.74,
"grok-3": 0.73,
"kimi-k2": 0.76, // agentic multi-step tasks
"glm-5.1": 0.75,
"glm-5": 0.7,
"minimax-m2.5": 0.7,
},
+9
View File
@@ -568,6 +568,15 @@ export async function handleComboChat({
: handleSingleModel;
// ─────────────────────────────────────────────────────────────────────────
// Route to pinned model if context caching specifies one (Fix #679)
if (pinnedModel) {
log.info(
"COMBO",
`Bypassing strategy — routing directly to pinned context model: ${pinnedModel}`
);
return handleSingleModelWrapped(body, pinnedModel);
}
// Route to round-robin handler if strategy matches
if (strategy === "round-robin") {
return handleRoundRobinCombo({
+33 -3
View File
@@ -86,6 +86,24 @@ export function fixToolUseOrdering(messages) {
return merged;
}
function ensureMessageContentArray(msg) {
if (Array.isArray(msg?.content)) return msg.content;
if (typeof msg?.content === "string" && msg.content.trim()) {
msg.content = [{ type: "text", text: msg.content }];
return msg.content;
}
return [];
}
function markMessageCacheControl(msg, ttl) {
const content = ensureMessageContentArray(msg);
if (content.length === 0) return false;
const lastIndex = content.length - 1;
content[lastIndex].cache_control =
ttl !== undefined ? { type: "ephemeral", ttl } : { type: "ephemeral" };
return true;
}
// Prepare request for Claude format endpoints
// - Cleanup cache_control
// - Filter empty messages
@@ -156,15 +174,27 @@ export function prepareClaudeRequest(body, provider = null) {
const lastMessageIsUser = lastMessage?.role === "user";
const thinkingEnabled = body.thinking?.type === "enabled" && lastMessageIsUser;
// Claude Code-style prompt caching:
// - cache the second-to-last user turn for conversation reuse
// - cache the last assistant turn so the next user turn can reuse it
const userMessageIndexes = filtered.reduce((indexes, msg, index) => {
if (msg?.role === "user") indexes.push(index);
return indexes;
}, []);
const secondToLastUserIndex =
userMessageIndexes.length >= 2 ? userMessageIndexes[userMessageIndexes.length - 2] : -1;
if (secondToLastUserIndex >= 0) {
markMessageCacheControl(filtered[secondToLastUserIndex]);
}
// Pass 2 (reverse): add cache_control to last assistant + handle thinking for Anthropic
let lastAssistantProcessed = false;
for (let i = filtered.length - 1; i >= 0; i--) {
const msg = filtered[i];
if (msg.role === "assistant" && Array.isArray(msg.content)) {
if (msg.role === "assistant" && Array.isArray(ensureMessageContentArray(msg))) {
// Add cache_control to last block of first (from end) assistant with content
if (!lastAssistantProcessed && msg.content.length > 0) {
msg.content[msg.content.length - 1].cache_control = { type: "ephemeral" };
if (!lastAssistantProcessed && markMessageCacheControl(msg)) {
lastAssistantProcessed = true;
}
@@ -0,0 +1,207 @@
/**
* Shared sanitizers for tool payloads that arrive from IDEs/SDKs with
* JSON Schema numeric constraints encoded as strings or invalid descriptions.
*/
type JsonRecord = Record<string, unknown>;
const NUMERIC_SCHEMA_FIELDS = [
"minimum",
"maximum",
"exclusiveMinimum",
"exclusiveMaximum",
"minLength",
"maxLength",
"minItems",
"maxItems",
"minProperties",
"maxProperties",
"multipleOf",
] as const;
function isPlainObject(value: unknown): value is JsonRecord {
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
}
function coerceNumericString(value: unknown): unknown {
if (typeof value !== "string") return value;
const trimmed = value.trim();
if (trimmed.length === 0) return value;
const parsed = Number(trimmed);
return Number.isFinite(parsed) ? parsed : value;
}
function mapRecordValues(record: JsonRecord): JsonRecord {
return Object.fromEntries(
Object.entries(record).map(([key, value]) => [key, coerceSchemaNumericFields(value)])
);
}
function sanitizeDescriptionValue(value: unknown): string | undefined {
if (value === undefined) return undefined;
if (value === null) return "";
return typeof value === "string" ? value : String(value);
}
export function coerceSchemaNumericFields(schema: unknown): unknown {
if (Array.isArray(schema)) {
return schema.map((entry) => coerceSchemaNumericFields(entry));
}
if (!isPlainObject(schema)) return schema;
const result: JsonRecord = { ...schema };
for (const field of NUMERIC_SCHEMA_FIELDS) {
if (field in result) {
result[field] = coerceNumericString(result[field]);
}
}
if (isPlainObject(result.properties)) {
result.properties = mapRecordValues(result.properties);
}
if (isPlainObject(result.patternProperties)) {
result.patternProperties = mapRecordValues(result.patternProperties);
}
if (isPlainObject(result.definitions)) {
result.definitions = mapRecordValues(result.definitions);
}
if (isPlainObject(result.$defs)) {
result.$defs = mapRecordValues(result.$defs);
}
if (isPlainObject(result.dependentSchemas)) {
result.dependentSchemas = mapRecordValues(result.dependentSchemas);
}
if (result.items !== undefined) {
result.items = coerceSchemaNumericFields(result.items);
}
if (result.additionalProperties && typeof result.additionalProperties === "object") {
result.additionalProperties = coerceSchemaNumericFields(result.additionalProperties);
}
if (result.unevaluatedProperties && typeof result.unevaluatedProperties === "object") {
result.unevaluatedProperties = coerceSchemaNumericFields(result.unevaluatedProperties);
}
if (Array.isArray(result.prefixItems)) {
result.prefixItems = result.prefixItems.map((entry) => coerceSchemaNumericFields(entry));
}
if (Array.isArray(result.anyOf)) {
result.anyOf = result.anyOf.map((entry) => coerceSchemaNumericFields(entry));
}
if (Array.isArray(result.oneOf)) {
result.oneOf = result.oneOf.map((entry) => coerceSchemaNumericFields(entry));
}
if (Array.isArray(result.allOf)) {
result.allOf = result.allOf.map((entry) => coerceSchemaNumericFields(entry));
}
if (isPlainObject(result.not)) {
result.not = coerceSchemaNumericFields(result.not);
}
if (isPlainObject(result.if)) {
result.if = coerceSchemaNumericFields(result.if);
}
if (isPlainObject(result.then)) {
result.then = coerceSchemaNumericFields(result.then);
}
if (isPlainObject(result.else)) {
result.else = coerceSchemaNumericFields(result.else);
}
return result;
}
export function sanitizeToolDescription(tool: unknown): unknown {
if (!isPlainObject(tool)) return tool;
const result: JsonRecord = { ...tool };
if (isPlainObject(result.function) && "description" in result.function) {
const description = sanitizeDescriptionValue(result.function.description);
if (description !== undefined) {
result.function = { ...result.function, description };
}
}
if (!isPlainObject(result.function) && "description" in result) {
const description = sanitizeDescriptionValue(result.description);
if (description !== undefined) {
result.description = description;
}
}
if (Array.isArray(result.functionDeclarations)) {
result.functionDeclarations = result.functionDeclarations.map((declaration) => {
if (!isPlainObject(declaration) || !("description" in declaration)) return declaration;
const description = sanitizeDescriptionValue(declaration.description);
return description === undefined ? declaration : { ...declaration, description };
});
}
return result;
}
export function coerceToolSchemas(tools: unknown): unknown {
if (!Array.isArray(tools)) return tools;
return tools.map((tool) => {
if (!isPlainObject(tool)) return tool;
const result: JsonRecord = { ...tool };
if (isPlainObject(result.function) && "parameters" in result.function) {
result.function = {
...result.function,
parameters: coerceSchemaNumericFields(result.function.parameters),
};
}
if (result.input_schema !== undefined) {
result.input_schema = coerceSchemaNumericFields(result.input_schema);
}
if ("parameters" in result && !isPlainObject(result.function)) {
result.parameters = coerceSchemaNumericFields(result.parameters);
}
if (Array.isArray(result.functionDeclarations)) {
result.functionDeclarations = result.functionDeclarations.map((declaration) => {
if (!isPlainObject(declaration) || !("parameters" in declaration)) return declaration;
return {
...declaration,
parameters: coerceSchemaNumericFields(declaration.parameters),
};
});
}
return result;
});
}
export function sanitizeToolDescriptions(tools: unknown): unknown {
if (!Array.isArray(tools)) return tools;
return tools.map((tool) => sanitizeToolDescription(tool));
}
export function injectEmptyReasoningContentForToolCalls(
messages: unknown,
provider: unknown
): unknown {
if (!Array.isArray(messages) || String(provider || "").toLowerCase() !== "deepseek") {
return messages;
}
return messages.map((message) => {
if (!isPlainObject(message)) return message;
if (
message.role !== "assistant" ||
!Array.isArray(message.tool_calls) ||
message.tool_calls.length === 0 ||
message.reasoning_content !== undefined
) {
return message;
}
return { ...message, reasoning_content: "" };
});
}
+36
View File
@@ -2,6 +2,11 @@ import { FORMATS } from "./formats.ts";
import { ensureToolCallIds, fixMissingToolResponses } from "./helpers/toolCallHelper.ts";
import { prepareClaudeRequest } from "./helpers/claudeHelper.ts";
import { filterToOpenAIFormat } from "./helpers/openaiHelper.ts";
import {
coerceToolSchemas,
injectEmptyReasoningContentForToolCalls,
sanitizeToolDescriptions,
} from "./helpers/schemaCoercion.ts";
import { getRequestTranslator, getResponseTranslator } from "./registry.ts";
import { bootstrapTranslatorRegistry } from "./bootstrap.ts";
import { normalizeThinkingConfig } from "../services/provider.ts";
@@ -171,10 +176,41 @@ export function translateRequest(
);
}
if (result.tools !== undefined) {
result.tools = coerceToolSchemas(result.tools);
result.tools = sanitizeToolDescriptions(result.tools);
}
if (targetFormat === FORMATS.OPENAI && result.messages && Array.isArray(result.messages)) {
result.messages = injectEmptyReasoningContentForToolCalls(result.messages, provider);
}
// Ensure unique tool_call ids on final payload (translators may have introduced duplicates)
ensureToolCallIds(result, { use9CharId });
fixMissingToolResponses(result);
if (result.tools) {
result.tools = coerceToolSchemas(result.tools);
result.tools = sanitizeToolDescriptions(result.tools);
}
// Inject reasoning_content = "" for DeepSeek/Reasoning models assistant messages with tool_calls
// if omitted by the client, to avoid upstream 400 errors (e.g. "Messages with role 'assistant' that contain tool_calls must also include reasoning_content")
const isReasoner =
provider === "deepseek" || (typeof model === "string" && /r1|reason/i.test(model));
if (isReasoner && result.messages && Array.isArray(result.messages)) {
for (const msg of result.messages) {
if (
msg.role === "assistant" &&
Array.isArray(msg.tool_calls) &&
msg.tool_calls.length > 0 &&
msg.reasoning_content === undefined
) {
msg.reasoning_content = "";
}
}
}
return result;
}
@@ -90,7 +90,6 @@ export function claudeToOpenAIResponse(chunk, state) {
tool_calls: [
{
index: toolCall.index,
id: toolCall.id,
function: { arguments: delta.partial_json },
},
],
@@ -464,6 +464,9 @@ export function openaiResponsesToOpenAIResponse(chunk, state) {
}
// Function call arguments delta
// NOTE: Do NOT include `id` or `type` here - only first chunk (response.output_item.added)
// should have them. Including `id` on every chunk causes openai-to-claude.ts to emit
// a new content_block_start for each delta, breaking Claude Code ACP sessions.
if (eventType === "response.function_call_arguments.delta") {
const argsDelta = data.delta || "";
if (!argsDelta) return null;
@@ -480,8 +483,6 @@ export function openaiResponsesToOpenAIResponse(chunk, state) {
tool_calls: [
{
index: state.toolCallIndex,
id: state.currentToolCallId,
type: "function",
function: { arguments: argsDelta },
},
],
+19 -17
View File
@@ -39,32 +39,34 @@ export function parseSSELine(line) {
// Check if chunk has valuable content (not empty)
export function hasValuableContent(chunk, format) {
// OpenAI format
if (format === FORMATS.OPENAI && chunk.choices?.[0]?.delta) {
if (format === FORMATS.OPENAI) {
if (!chunk.choices?.[0]?.delta) return false;
const delta = chunk.choices[0].delta;
return (
(delta.content && delta.content !== "") ||
(delta.reasoning_content && delta.reasoning_content !== "") ||
(delta.tool_calls && delta.tool_calls.length > 0) ||
chunk.choices[0].finish_reason ||
delta.role
);
if (typeof delta.content === "string" && delta.content.length > 0) return true;
if (typeof delta.reasoning_content === "string" && delta.reasoning_content.length > 0)
return true;
if (Array.isArray(delta.tool_calls) && delta.tool_calls.length > 0) return true;
if (chunk.choices[0].finish_reason) return true;
if (typeof delta.role === "string" && delta.role.length > 0) return true;
return false;
}
// Claude format
if (format === FORMATS.CLAUDE) {
const isContentBlockDelta = chunk.type === "content_block_delta";
const hasText = chunk.delta?.text && chunk.delta.text !== "";
const hasThinking = chunk.delta?.thinking && chunk.delta.thinking !== "";
const hasInputJson = chunk.delta?.partial_json && chunk.delta.partial_json !== "";
if (isContentBlockDelta && !hasText && !hasThinking && !hasInputJson) {
return false;
if (isContentBlockDelta) {
const hasText = typeof chunk.delta?.text === "string" && chunk.delta.text.length > 0;
const hasThinking =
typeof chunk.delta?.thinking === "string" && chunk.delta.thinking.length > 0;
const hasInputJson =
typeof chunk.delta?.partial_json === "string" && chunk.delta.partial_json.length > 0;
if (!hasText && !hasThinking && !hasInputJson) return false;
}
return true;
}
// Gemini format: filter chunks with no actual content parts
if (format === FORMATS.GEMINI && chunk.candidates?.[0]) {
// Gemini / Antigravity format: filter chunks with no actual content parts
if ((format === FORMATS.GEMINI || format === FORMATS.ANTIGRAVITY) && chunk.candidates?.[0]) {
const candidate = chunk.candidates[0];
// Keep chunks with finish reason or safety ratings (they signal completion)
if (candidate.finishReason) return true;
@@ -73,7 +75,7 @@ export function hasValuableContent(chunk, format) {
if (!parts || parts.length === 0) return false;
// Filter out chunks where all parts have empty text
const hasContent = parts.some(
(p) => (p.text && p.text !== "") || p.functionCall || p.executableCode
(p) => (typeof p.text === "string" && p.text.length > 0) || p.functionCall || p.executableCode
);
return hasContent;
}
+12 -8
View File
@@ -3,6 +3,12 @@
*/
import { saveRequestUsage, appendRequestLog } from "@/lib/usageDb";
import {
getLoggedInputTokens,
getLoggedOutputTokens,
getPromptCacheCreationTokens,
getPromptCacheReadTokens,
} from "@/lib/usage/tokenAccounting";
import { FORMATS } from "../translator/formats.ts";
// ANSI color codes
@@ -415,8 +421,8 @@ export function logUsage(provider, usage, model = null, connectionId = null, api
// Support both formats:
// - OpenAI: prompt_tokens, completion_tokens
// - Claude: input_tokens, output_tokens
const inTokens = usage?.prompt_tokens || usage?.input_tokens || 0;
const outTokens = usage?.completion_tokens || usage?.output_tokens || 0;
const inTokens = getLoggedInputTokens(usage);
const outTokens = getLoggedOutputTokens(usage);
const accountPrefix = connectionId ? connectionId.slice(0, 8) + "..." : "unknown";
let msg = `[${getTimeString()}] 📊 ${COLORS.green}[USAGE] ${p} | in=${inTokens} | out=${outTokens} | account=${accountPrefix}${COLORS.reset}`;
@@ -427,10 +433,10 @@ export function logUsage(provider, usage, model = null, connectionId = null, api
}
// Add cache info if present (unified from different formats)
const cacheRead = usage.cache_read_input_tokens || usage.cached_tokens;
const cacheRead = getPromptCacheReadTokens(usage);
if (cacheRead) msg += ` | cache_read=${cacheRead}`;
const cacheCreation = usage.cache_creation_input_tokens;
const cacheCreation = getPromptCacheCreationTokens(usage);
if (cacheCreation) msg += ` | cache_create=${cacheCreation}`;
const reasoning = usage.reasoning_tokens;
@@ -438,11 +444,9 @@ export function logUsage(provider, usage, model = null, connectionId = null, api
console.log(msg);
// Save to usage DB
// input = total input tokens (non-cached + cache_read + cache_creation)
// This ensures analytics show correct totals for heavily-cached requests
// Save to usage DB with cache-read tracked separately from the main input counter.
const tokens = {
input: inTokens + (cacheRead || 0) + (cacheCreation || 0),
input: inTokens,
output: outTokens,
cacheRead: cacheRead || 0,
cacheCreation: cacheCreation || 0,
+319 -2
View File
@@ -1,12 +1,12 @@
{
"name": "omniroute",
"version": "3.1.6",
"version": "3.1.10",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "omniroute",
"version": "3.1.6",
"version": "3.1.10",
"hasInstallScript": true,
"license": "MIT",
"workspaces": [
@@ -60,6 +60,7 @@
"@types/node": "^25.2.3",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"c8": "^11.0.0",
"concurrently": "^9.2.1",
"cross-env": "^10.1.0",
"eslint": "^9.39.2",
@@ -511,6 +512,16 @@
}
}
},
"node_modules/@bcoe/v8-coverage": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-1.0.2.tgz",
"integrity": "sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=18"
}
},
"node_modules/@braintree/sanitize-url": {
"version": "7.1.2",
"resolved": "https://registry.npmjs.org/@braintree/sanitize-url/-/sanitize-url-7.1.2.tgz",
@@ -2160,6 +2171,16 @@
"url": "https://opencollective.com/libvips"
}
},
"node_modules/@istanbuljs/schema": {
"version": "0.1.3",
"resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz",
"integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/@jridgewell/gen-mapping": {
"version": "0.3.13",
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
@@ -6007,6 +6028,13 @@
"@types/node": "*"
}
},
"node_modules/@types/istanbul-lib-coverage": {
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz",
"integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==",
"dev": true,
"license": "MIT"
},
"node_modules/@types/js-cookie": {
"version": "3.0.6",
"resolved": "https://registry.npmjs.org/@types/js-cookie/-/js-cookie-3.0.6.tgz",
@@ -7659,6 +7687,40 @@
"node": ">=6.0.0"
}
},
"node_modules/c8": {
"version": "11.0.0",
"resolved": "https://registry.npmjs.org/c8/-/c8-11.0.0.tgz",
"integrity": "sha512-e/uRViGHSVIJv7zsaDKM7VRn2390TgHXqUSvYwPHBQaU6L7E9L0n9JbdkwdYPvshDT0KymBmmlwSpms3yBaMNg==",
"dev": true,
"license": "ISC",
"dependencies": {
"@bcoe/v8-coverage": "^1.0.1",
"@istanbuljs/schema": "^0.1.3",
"find-up": "^5.0.0",
"foreground-child": "^3.1.1",
"istanbul-lib-coverage": "^3.2.0",
"istanbul-lib-report": "^3.0.1",
"istanbul-reports": "^3.1.6",
"test-exclude": "^8.0.0",
"v8-to-istanbul": "^9.0.0",
"yargs": "^17.7.2",
"yargs-parser": "^21.1.1"
},
"bin": {
"c8": "bin/c8.js"
},
"engines": {
"node": "20 || >=22"
},
"peerDependencies": {
"monocart-coverage-reports": "^2"
},
"peerDependenciesMeta": {
"monocart-coverage-reports": {
"optional": true
}
}
},
"node_modules/call-bind": {
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz",
@@ -10522,6 +10584,23 @@
"node": ">=0.10.0"
}
},
"node_modules/foreground-child": {
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz",
"integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==",
"dev": true,
"license": "ISC",
"dependencies": {
"cross-spawn": "^7.0.6",
"signal-exit": "^4.0.1"
},
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/form-data": {
"version": "4.0.5",
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz",
@@ -10803,6 +10882,24 @@
"integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==",
"license": "MIT"
},
"node_modules/glob": {
"version": "13.0.6",
"resolved": "https://registry.npmjs.org/glob/-/glob-13.0.6.tgz",
"integrity": "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==",
"dev": true,
"license": "BlueOak-1.0.0",
"dependencies": {
"minimatch": "^10.2.2",
"minipass": "^7.1.3",
"path-scurry": "^2.0.2"
},
"engines": {
"node": "18 || 20 || >=22"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/glob-parent": {
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
@@ -10816,6 +10913,45 @@
"node": ">=10.13.0"
}
},
"node_modules/glob/node_modules/balanced-match": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
"integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
"dev": true,
"license": "MIT",
"engines": {
"node": "18 || 20 || >=22"
}
},
"node_modules/glob/node_modules/brace-expansion": {
"version": "5.0.5",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.5.tgz",
"integrity": "sha512-VZznLgtwhn+Mact9tfiwx64fA9erHH/MCXEUfB/0bX/6Fz6ny5EGTXYltMocqg4xFAQZtnO3DHWWXi8RiuN7cQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"balanced-match": "^4.0.2"
},
"engines": {
"node": "18 || 20 || >=22"
}
},
"node_modules/glob/node_modules/minimatch": {
"version": "10.2.4",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.4.tgz",
"integrity": "sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==",
"dev": true,
"license": "BlueOak-1.0.0",
"dependencies": {
"brace-expansion": "^5.0.2"
},
"engines": {
"node": "18 || 20 || >=22"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/globals": {
"version": "14.0.0",
"resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz",
@@ -11282,6 +11418,13 @@
"node": ">=16.9.0"
}
},
"node_modules/html-escaper": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz",
"integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==",
"dev": true,
"license": "MIT"
},
"node_modules/html-url-attributes": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/html-url-attributes/-/html-url-attributes-3.0.1.tgz",
@@ -12210,6 +12353,45 @@
"node": ">=0.10.0"
}
},
"node_modules/istanbul-lib-coverage": {
"version": "3.2.2",
"resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz",
"integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==",
"dev": true,
"license": "BSD-3-Clause",
"engines": {
"node": ">=8"
}
},
"node_modules/istanbul-lib-report": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz",
"integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==",
"dev": true,
"license": "BSD-3-Clause",
"dependencies": {
"istanbul-lib-coverage": "^3.0.0",
"make-dir": "^4.0.0",
"supports-color": "^7.1.0"
},
"engines": {
"node": ">=10"
}
},
"node_modules/istanbul-reports": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz",
"integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==",
"dev": true,
"license": "BSD-3-Clause",
"dependencies": {
"html-escaper": "^2.0.0",
"istanbul-lib-report": "^3.0.0"
},
"engines": {
"node": ">=8"
}
},
"node_modules/iterator.prototype": {
"version": "1.1.5",
"resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.5.tgz",
@@ -13059,6 +13241,35 @@
"@jridgewell/sourcemap-codec": "^1.5.5"
}
},
"node_modules/make-dir": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz",
"integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==",
"dev": true,
"license": "MIT",
"dependencies": {
"semver": "^7.5.3"
},
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/make-dir/node_modules/semver": {
"version": "7.7.4",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",
"integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",
"dev": true,
"license": "ISC",
"bin": {
"semver": "bin/semver.js"
},
"engines": {
"node": ">=10"
}
},
"node_modules/markdown-extensions": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/markdown-extensions/-/markdown-extensions-2.0.0.tgz",
@@ -14461,6 +14672,16 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/minipass": {
"version": "7.1.3",
"resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz",
"integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",
"dev": true,
"license": "BlueOak-1.0.0",
"engines": {
"node": ">=16 || 14 >=14.17"
}
},
"node_modules/mixin-deep": {
"version": "1.3.2",
"resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz",
@@ -15278,6 +15499,33 @@
"integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
"license": "MIT"
},
"node_modules/path-scurry": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz",
"integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==",
"dev": true,
"license": "BlueOak-1.0.0",
"dependencies": {
"lru-cache": "^11.0.0",
"minipass": "^7.1.2"
},
"engines": {
"node": "18 || 20 || >=22"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/path-scurry/node_modules/lru-cache": {
"version": "11.2.7",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.7.tgz",
"integrity": "sha512-aY/R+aEsRelme17KGQa/1ZSIpLpNYYrhcrepKTZgE+W3WM16YMCaPwOHLHsmopZHELU0Ojin1lPVxKR0MihncA==",
"dev": true,
"license": "BlueOak-1.0.0",
"engines": {
"node": "20 || >=22"
}
},
"node_modules/path-to-regexp": {
"version": "8.3.0",
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.3.0.tgz",
@@ -18144,6 +18392,60 @@
"node": ">=6"
}
},
"node_modules/test-exclude": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-8.0.0.tgz",
"integrity": "sha512-ZOffsNrXYggvU1mDGHk54I96r26P8SyMjO5slMKSc7+IWmtB/MQKnEC2fP51imB3/pT6YK5cT5E8f+Dd9KdyOQ==",
"dev": true,
"license": "ISC",
"dependencies": {
"@istanbuljs/schema": "^0.1.2",
"glob": "^13.0.6",
"minimatch": "^10.2.2"
},
"engines": {
"node": "20 || >=22"
}
},
"node_modules/test-exclude/node_modules/balanced-match": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
"integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
"dev": true,
"license": "MIT",
"engines": {
"node": "18 || 20 || >=22"
}
},
"node_modules/test-exclude/node_modules/brace-expansion": {
"version": "5.0.5",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.5.tgz",
"integrity": "sha512-VZznLgtwhn+Mact9tfiwx64fA9erHH/MCXEUfB/0bX/6Fz6ny5EGTXYltMocqg4xFAQZtnO3DHWWXi8RiuN7cQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"balanced-match": "^4.0.2"
},
"engines": {
"node": "18 || 20 || >=22"
}
},
"node_modules/test-exclude/node_modules/minimatch": {
"version": "10.2.4",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.4.tgz",
"integrity": "sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==",
"dev": true,
"license": "BlueOak-1.0.0",
"dependencies": {
"brace-expansion": "^5.0.2"
},
"engines": {
"node": "18 || 20 || >=22"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/thread-stream": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-4.0.0.tgz",
@@ -18902,6 +19204,21 @@
"uuid": "dist-node/bin/uuid"
}
},
"node_modules/v8-to-istanbul": {
"version": "9.3.0",
"resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz",
"integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==",
"dev": true,
"license": "ISC",
"dependencies": {
"@jridgewell/trace-mapping": "^0.3.12",
"@types/istanbul-lib-coverage": "^2.0.1",
"convert-source-map": "^2.0.0"
},
"engines": {
"node": ">=10.12.0"
}
},
"node_modules/v8n": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/v8n/-/v8n-1.5.1.tgz",
+6 -2
View File
@@ -1,6 +1,6 @@
{
"name": "omniroute",
"version": "3.1.6",
"version": "3.1.10",
"description": "Smart AI Router with auto fallback — route to FREE & cheap models, zero downtime. Works with Cursor, Cline, Claude Desktop, Codex, and any OpenAI-compatible tool.",
"type": "module",
"bin": {
@@ -72,7 +72,10 @@
"test:protocols:e2e": "node scripts/run-protocol-clients-tests.mjs",
"test:vitest": "vitest run open-sse/mcp-server/__tests__/*.test.ts open-sse/services/autoCombo/__tests__/*.test.ts",
"test:ecosystem": "node scripts/run-ecosystem-tests.mjs",
"test:coverage": "npx c8 --exclude=open-sse --check-coverage --lines 50 --functions 50 --branches 50 node --import tsx/esm --test tests/unit/*.test.mjs",
"test:coverage": "c8 --exclude=tests/** --exclude=**/*.test.* --reporter=text-summary --reporter=html --reporter=json-summary --reporter=lcov --check-coverage --statements 55 --lines 55 --functions 55 --branches 60 node --import tsx/esm --test tests/unit/*.test.mjs",
"test:coverage:legacy": "c8 --exclude=open-sse --check-coverage --lines 50 --functions 50 --branches 50 node --import tsx/esm --test tests/unit/*.test.mjs",
"coverage:report": "c8 report --exclude=tests/** --exclude=**/*.test.* --reporter=text --reporter=text-summary --reporter=html --reporter=json-summary --reporter=lcov",
"coverage:report:legacy": "c8 report --exclude=open-sse --reporter=text --reporter=text-summary",
"test:all": "npm run test:unit && npm run test:vitest && npm run test:ecosystem && npm run test:e2e",
"check": "npm run lint && npm run test",
"prepublishOnly": "npm run build:cli",
@@ -124,6 +127,7 @@
"@types/node": "^25.2.3",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"c8": "^11.0.0",
"concurrently": "^9.2.1",
"cross-env": "^10.1.0",
"eslint": "^9.39.2",
+6
View File
@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#4A90E2" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z"/>
<path d="M8 14s1.5 2 4 2 4-2 4-2"/>
<line x1="9" y1="9" x2="9.01" y2="9"/>
<line x1="15" y1="9" x2="15.01" y2="9"/>
</svg>

After

Width:  |  Height:  |  Size: 364 B

+36 -6
View File
@@ -109,6 +109,15 @@ const LOCALE_SPECS = [
readmeName: "ไทย",
docsName: "ไทย",
},
{
code: "tr",
googleTl: "tr",
label: "TR",
flag: "🇹🇷",
languageName: "Türkçe",
readmeName: "Türkçe",
docsName: "Türkçe",
},
{
code: "uk-UA",
googleTl: "uk",
@@ -608,6 +617,9 @@ function collectStringLeaves(node, pathSoFar = [], output = []) {
function setByPath(target, pathTokens, value) {
let current = target;
for (let i = 0; i < pathTokens.length - 1; i += 1) {
if (current[pathTokens[i]] === undefined) {
current[pathTokens[i]] = typeof pathTokens[i + 1] === "number" ? [] : {};
}
current = current[pathTokens[i]];
}
current[pathTokens[pathTokens.length - 1]] = value;
@@ -728,25 +740,43 @@ async function generateMessageTranslations() {
const sourceJson = JSON.parse(sourceRaw);
const leaves = collectStringLeaves(sourceJson);
const sourceValues = leaves.map((entry) => entry.value);
for (const spec of LOCALE_SPECS) {
if (spec.code === "en" || spec.code === "pt-BR") {
if (spec.code === "en") {
continue;
}
const targetPath = path.join(MESSAGES_DIR, `${spec.code}.json`);
let targetJson = {};
if (await fileExists(targetPath)) {
console.log(`[messages] Skipping ${spec.code} (already exists).`);
const targetRaw = await fs.readFile(targetPath, "utf8");
try {
targetJson = JSON.parse(targetRaw);
} catch (e) {
console.warn(`[messages] Failed to parse ${spec.code}.json`);
}
}
const missingLeaves = leaves.filter((leaf) => {
let current = targetJson;
for (const token of leaf.path) {
if (current === undefined || current === null) return true;
current = current[token];
}
return current === undefined || current === null || current === "";
});
if (missingLeaves.length === 0) {
console.log(`[messages] ${spec.code} is up-to-date.`);
continue;
}
console.log(`[messages] Translating ${spec.code}...`);
console.log(`[messages] Translating ${missingLeaves.length} missing keys for ${spec.code}...`);
const sourceValues = missingLeaves.map((entry) => entry.value);
const translatedValues = await translateStrings(sourceValues, spec.googleTl);
const targetJson = structuredClone(sourceJson);
translatedValues.forEach((value, index) => {
setByPath(targetJson, leaves[index].path, value);
setByPath(targetJson, missingLeaves[index].path, value);
});
await fs.writeFile(targetPath, `${JSON.stringify(targetJson, null, 2)}\n`, "utf8");
+1 -1
View File
@@ -45,7 +45,7 @@ async function main() {
const vitestProcess = spawn(
process.execPath,
["./node_modules/vitest/vitest.mjs", "run", "tests/e2e/protocol-clients.test.ts"],
["./node_modules/vitest/vitest.mjs", "run", "tests/e2e/protocol-clients.test.ts", "--dir", "tests"],
{
stdio: "inherit",
env: testEnv,
+2 -1
View File
@@ -15,7 +15,7 @@
*/
import { execSync } from "child_process";
import { readFileSync, writeFileSync, existsSync } from "fs";
import { readFileSync, writeFileSync, existsSync, mkdirSync } from "fs";
import { join, dirname } from "path";
import { fileURLToPath } from "url";
import os from "os";
@@ -162,6 +162,7 @@ const outFile = outArg
const outPath = join(ROOT, outFile);
mkdirSync(dirname(outPath), { recursive: true });
writeFileSync(outPath, report);
console.log(report);
console.log(`\n✅ Report saved to: ${outPath}`);
@@ -403,6 +403,10 @@ interface ConnectionRowProps {
proxyHost?: string;
onRefreshToken?: () => void;
isRefreshing?: boolean;
onApplyCodexAuthLocal?: () => void;
isApplyingCodexAuthLocal?: boolean;
onExportCodexAuthFile?: () => void;
isExportingCodexAuthFile?: boolean;
}
interface AddApiKeyModalProps {
@@ -821,6 +825,8 @@ export default function ProviderDetailPage() {
modelCompatOverrides: Array<CompatModelRow & { id: string }>;
}>({ customModels: [], modelCompatOverrides: [] });
const [compatSavingModelId, setCompatSavingModelId] = useState<string | null>(null);
const [applyingCodexAuthId, setApplyingCodexAuthId] = useState<string | null>(null);
const [exportingCodexAuthId, setExportingCodexAuthId] = useState<string | null>(null);
const providerInfo = providerNode
? {
@@ -1248,6 +1254,39 @@ export default function ProviderDetailPage() {
// T12: Manual token refresh
const [refreshingId, setRefreshingId] = useState<string | null>(null);
const parseApiErrorMessage = async (res: Response, fallback: string) => {
const contentType = res.headers.get("content-type") || "";
if (contentType.includes("application/json")) {
const data = await res.json().catch(() => ({}));
if (typeof data?.error === "string" && data.error.trim()) {
return data.error;
}
if (data?.error?.message) {
return data.error.message;
}
}
const text = await res.text().catch(() => "");
return text.trim() || fallback;
};
const getAttachmentFilename = (res: Response, fallback: string) => {
const disposition = res.headers.get("content-disposition") || "";
const utf8Match = disposition.match(/filename\*=UTF-8''([^;]+)/i);
if (utf8Match?.[1]) {
return decodeURIComponent(utf8Match[1]);
}
const plainMatch = disposition.match(/filename="([^"]+)"/i);
if (plainMatch?.[1]) {
return plainMatch[1];
}
return fallback;
};
const handleRefreshToken = async (connectionId: string) => {
if (refreshingId) return;
setRefreshingId(connectionId);
@@ -1268,6 +1307,82 @@ export default function ProviderDetailPage() {
}
};
const handleApplyCodexAuthLocal = async (connectionId: string) => {
if (applyingCodexAuthId) return;
setApplyingCodexAuthId(connectionId);
const defaultSuccess =
typeof t.has === "function" && t.has("codexAuthAppliedLocal")
? t("codexAuthAppliedLocal")
: "Codex auth.json applied locally";
const defaultError =
typeof t.has === "function" && t.has("codexAuthApplyFailed")
? t("codexAuthApplyFailed")
: "Failed to apply Codex auth.json locally";
try {
const res = await fetch(`/api/providers/${connectionId}/codex-auth/apply-local`, {
method: "POST",
});
if (!res.ok) {
notify.error(await parseApiErrorMessage(res, defaultError));
return;
}
notify.success(defaultSuccess);
} catch (error) {
console.error("Error applying Codex auth locally:", error);
notify.error(defaultError);
} finally {
setApplyingCodexAuthId(null);
}
};
const handleExportCodexAuthFile = async (connectionId: string) => {
if (exportingCodexAuthId) return;
setExportingCodexAuthId(connectionId);
const defaultSuccess =
typeof t.has === "function" && t.has("codexAuthExported")
? t("codexAuthExported")
: "Codex auth.json exported";
const defaultError =
typeof t.has === "function" && t.has("codexAuthExportFailed")
? t("codexAuthExportFailed")
: "Failed to export Codex auth.json";
try {
const res = await fetch(`/api/providers/${connectionId}/codex-auth/export`, {
method: "POST",
});
if (!res.ok) {
notify.error(await parseApiErrorMessage(res, defaultError));
return;
}
const blob = await res.blob();
const filename = getAttachmentFilename(res, "codex-auth.json");
const objectUrl = window.URL.createObjectURL(blob);
const link = document.createElement("a");
link.href = objectUrl;
link.download = filename;
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
window.setTimeout(() => window.URL.revokeObjectURL(objectUrl), 1000);
notify.success(defaultSuccess);
} catch (error) {
console.error("Error exporting Codex auth file:", error);
notify.error(defaultError);
} finally {
setExportingCodexAuthId(null);
}
};
const handleSwapPriority = async (conn1, conn2) => {
if (!conn1 || !conn2) return;
try {
@@ -2103,6 +2218,18 @@ export default function ProviderDetailPage() {
onReauth={isOAuth ? () => setShowOAuthModal(true) : undefined}
onRefreshToken={isOAuth ? () => handleRefreshToken(conn.id) : undefined}
isRefreshing={refreshingId === conn.id}
onApplyCodexAuthLocal={
providerId === "codex"
? () => handleApplyCodexAuthLocal(conn.id)
: undefined
}
isApplyingCodexAuthLocal={applyingCodexAuthId === conn.id}
onExportCodexAuthFile={
providerId === "codex"
? () => handleExportCodexAuthFile(conn.id)
: undefined
}
isExportingCodexAuthFile={exportingCodexAuthId === conn.id}
onProxy={() =>
setProxyTarget({
level: "key",
@@ -2194,6 +2321,18 @@ export default function ProviderDetailPage() {
onReauth={isOAuth ? () => setShowOAuthModal(true) : undefined}
onRefreshToken={isOAuth ? () => handleRefreshToken(conn.id) : undefined}
isRefreshing={refreshingId === conn.id}
onApplyCodexAuthLocal={
providerId === "codex"
? () => handleApplyCodexAuthLocal(conn.id)
: undefined
}
isApplyingCodexAuthLocal={applyingCodexAuthId === conn.id}
onExportCodexAuthFile={
providerId === "codex"
? () => handleExportCodexAuthFile(conn.id)
: undefined
}
isExportingCodexAuthFile={exportingCodexAuthId === conn.id}
onProxy={() =>
setProxyTarget({
level: "key",
@@ -3776,11 +3915,23 @@ function ConnectionRow({
proxyHost,
onRefreshToken,
isRefreshing,
onApplyCodexAuthLocal,
isApplyingCodexAuthLocal,
onExportCodexAuthFile,
isExportingCodexAuthFile,
}: ConnectionRowProps) {
const t = useTranslations("providers");
const displayName = isOAuth
? connection.name || connection.email || connection.displayName || t("oauthAccount")
: connection.name;
const applyCodexAuthLabel =
typeof t.has === "function" && t.has("applyCodexAuthLocal")
? t("applyCodexAuthLocal")
: "Apply auth";
const exportCodexAuthLabel =
typeof t.has === "function" && t.has("exportCodexAuthFile")
? t("exportCodexAuthFile")
: "Export auth";
// Use useState + useEffect for impure Date.now() to avoid calling during render
const [isCooldown, setIsCooldown] = useState(false);
@@ -4014,6 +4165,34 @@ function ConnectionRow({
Token
</Button>
)}
{isCodex && onApplyCodexAuthLocal && (
<Button
size="sm"
variant="ghost"
icon="download_done"
loading={isApplyingCodexAuthLocal}
disabled={isApplyingCodexAuthLocal}
onClick={onApplyCodexAuthLocal}
className="!h-7 !px-2 text-xs text-emerald-500 hover:text-emerald-400"
title={applyCodexAuthLabel}
>
{applyCodexAuthLabel}
</Button>
)}
{isCodex && onExportCodexAuthFile && (
<Button
size="sm"
variant="ghost"
icon="download"
loading={isExportingCodexAuthFile}
disabled={isExportingCodexAuthFile}
onClick={onExportCodexAuthFile}
className="!h-7 !px-2 text-xs text-sky-500 hover:text-sky-400"
title={exportCodexAuthLabel}
>
{exportCodexAuthLabel}
</Button>
)}
<Toggle
size="sm"
checked={connection.isActive ?? true}
@@ -4090,6 +4269,10 @@ ConnectionRow.propTypes = {
onEdit: PropTypes.func.isRequired,
onDelete: PropTypes.func.isRequired,
onReauth: PropTypes.func,
onApplyCodexAuthLocal: PropTypes.func,
isApplyingCodexAuthLocal: PropTypes.bool,
onExportCodexAuthFile: PropTypes.func,
isExportingCodexAuthFile: PropTypes.bool,
};
function AddApiKeyModal({
@@ -18,6 +18,11 @@ export default function SystemStorageTab() {
const [importStatus, setImportStatus] = useState({ type: "", message: "" });
const [confirmImport, setConfirmImport] = useState(false);
const [pendingImportFile, setPendingImportFile] = useState<File | null>(null);
const [maxCallLogs, setMaxCallLogs] = useState(10000);
const [maxCallLogsDraft, setMaxCallLogsDraft] = useState("10000");
const [settingsLoading, setSettingsLoading] = useState(true);
const [maxCallLogsSaving, setMaxCallLogsSaving] = useState(false);
const [maxCallLogsStatus, setMaxCallLogsStatus] = useState({ type: "", message: "" });
const fileInputRef = useRef<HTMLInputElement>(null);
const locale = useLocale();
const t = useTranslations("settings");
@@ -54,6 +59,27 @@ export default function SystemStorageTab() {
}
};
const loadSettings = async () => {
setSettingsLoading(true);
try {
const res = await fetch("/api/settings");
if (!res.ok) return;
const data = await res.json();
const value =
typeof data.maxCallLogs === "number" &&
Number.isInteger(data.maxCallLogs) &&
data.maxCallLogs > 0
? data.maxCallLogs
: 10000;
setMaxCallLogs(value);
setMaxCallLogsDraft(String(value));
} catch (err) {
console.error("Failed to fetch settings:", err);
} finally {
setSettingsLoading(false);
}
};
const handleManualBackup = async () => {
setManualBackupLoading(true);
setManualBackupStatus({ type: "", message: "" });
@@ -119,8 +145,47 @@ export default function SystemStorageTab() {
useEffect(() => {
loadStorageHealth();
loadSettings();
}, []);
const handleSaveMaxCallLogs = async () => {
const parsed = Number.parseInt(maxCallLogsDraft, 10);
if (!Number.isInteger(parsed) || parsed <= 0) {
setMaxCallLogsStatus({
type: "error",
message: "Enter a positive integer for the call log limit.",
});
return;
}
setMaxCallLogsSaving(true);
setMaxCallLogsStatus({ type: "", message: "" });
try {
const res = await fetch("/api/settings", {
method: "PATCH",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ maxCallLogs: parsed }),
});
const data = await res.json();
if (!res.ok) {
throw new Error(data.error || "Failed to save call log limit");
}
setMaxCallLogs(parsed);
setMaxCallLogsDraft(String(parsed));
setMaxCallLogsStatus({
type: "success",
message: "Call log retention limit saved.",
});
} catch (err) {
setMaxCallLogsStatus({
type: "error",
message: (err as Error).message || "Failed to save call log limit",
});
} finally {
setMaxCallLogsSaving(false);
}
};
const handleExport = async () => {
setExportLoading(true);
try {
@@ -276,6 +341,56 @@ export default function SystemStorageTab() {
</div>
</div>
<div className="p-3 rounded-lg bg-bg border border-border mb-4">
<div className="flex items-start justify-between gap-3">
<div>
<p className="text-sm font-medium text-text-main">Call log retention limit</p>
<p className="text-xs text-text-muted">
Keep only the most recent call log entries in SQLite. Older entries are pruned
automatically after each new request log is saved.
</p>
</div>
<Badge variant="default" size="sm">
{maxCallLogs.toLocaleString()}
</Badge>
</div>
<div className="flex flex-wrap items-center gap-2 mt-3">
<input
type="number"
min="1"
step="1"
value={maxCallLogsDraft}
onChange={(e) => setMaxCallLogsDraft(e.target.value)}
disabled={settingsLoading || maxCallLogsSaving}
className="w-40 rounded-lg border border-border bg-bg-secondary px-3 py-2 text-sm text-text-main focus:outline-none focus:ring-1 focus:ring-primary/40"
aria-label="Call log retention limit"
/>
<Button
variant="outline"
size="sm"
onClick={handleSaveMaxCallLogs}
loading={maxCallLogsSaving}
disabled={settingsLoading}
>
Save limit
</Button>
</div>
{maxCallLogsStatus.message && (
<div
className={`mt-3 rounded-lg border px-3 py-2 text-sm ${
maxCallLogsStatus.type === "success"
? "border-green-500/20 bg-green-500/10 text-green-500"
: "border-red-500/20 bg-red-500/10 text-red-500"
}`}
role="alert"
>
{maxCallLogsStatus.message}
</div>
)}
</div>
{/* Export / Import */}
<div className="flex flex-wrap items-center gap-2 mb-4">
<Button variant="outline" size="sm" onClick={handleExport} loading={exportLoading}>
@@ -0,0 +1,41 @@
import { NextResponse } from "next/server";
import { ensureCliConfigWriteAllowed } from "@/shared/services/cliRuntime";
import { CodexAuthFileError, writeCodexAuthFileToLocalCli } from "@/lib/oauth/utils/codexAuthFile";
function toErrorResponse(error: unknown) {
if (error instanceof CodexAuthFileError) {
return NextResponse.json(
{
error: error.message,
code: error.code,
},
{ status: error.status }
);
}
const message = error instanceof Error ? error.message : "Failed to apply Codex auth file";
return NextResponse.json({ error: message }, { status: 500 });
}
export async function POST(_request: Request, { params }: { params: Promise<{ id: string }> }) {
try {
const writeGuard = ensureCliConfigWriteAllowed();
if (writeGuard) {
return NextResponse.json({ error: writeGuard, code: "writes_disabled" }, { status: 403 });
}
const { id } = await params;
const result = await writeCodexAuthFileToLocalCli(id);
return NextResponse.json({
success: true,
connectionId: id,
connectionLabel: result.connectionLabel,
authPath: result.authPath,
writtenAt: new Date().toISOString(),
});
} catch (error) {
console.error("[Codex Auth Apply] Failed:", error);
return toErrorResponse(error);
}
}
@@ -0,0 +1,37 @@
import { NextResponse } from "next/server";
import { buildCodexAuthFile, CodexAuthFileError } from "@/lib/oauth/utils/codexAuthFile";
function toErrorResponse(error: unknown) {
if (error instanceof CodexAuthFileError) {
return NextResponse.json(
{
error: error.message,
code: error.code,
},
{ status: error.status }
);
}
const message = error instanceof Error ? error.message : "Failed to export Codex auth file";
return NextResponse.json({ error: message }, { status: 500 });
}
export async function POST(_request: Request, { params }: { params: Promise<{ id: string }> }) {
try {
const { id } = await params;
const built = await buildCodexAuthFile(id);
return new Response(built.content, {
status: 200,
headers: {
"Content-Type": "application/json; charset=utf-8",
"Content-Disposition": `attachment; filename="${built.fileName}"`,
"Cache-Control": "no-store, max-age=0",
"X-Content-Type-Options": "nosniff",
},
});
} catch (error) {
console.error("[Codex Auth Export] Failed:", error);
return toErrorResponse(error);
}
}
+35 -8
View File
@@ -5,6 +5,7 @@ import {
isAnthropicCompatibleProvider,
} from "@/shared/constants/providers";
import { PROVIDER_MODELS } from "@/shared/constants/models";
import { getModelIsHidden } from "@/lib/localDb";
type JsonRecord = Record<string, unknown>;
@@ -58,6 +59,8 @@ const STATIC_MODEL_PROVIDERS: Record<string, () => Array<{ id: string; name: str
antigravity: () => [
{ id: "claude-opus-4-6-thinking", name: "Claude Opus 4.6 Thinking" },
{ id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6" },
{ id: "gemini-3.1-pro-preview", name: "Gemini 3.1 Pro Preview" },
{ id: "gemini-3.1-flash-lite-preview", name: "Gemini 3.1 Flash Lite Preview" },
{ id: "gemini-2.5-pro", name: "Gemini 2.5 Pro" },
{ id: "gemini-2.5-flash", name: "Gemini 2.5 Flash" },
{ id: "gemini-2.0-flash", name: "Gemini 2.0 Flash" },
@@ -140,7 +143,7 @@ const PROVIDER_MODELS_CONFIG: Record<string, ProviderModelsConfigEntry> = {
})),
},
qwen: {
url: "https://portal.qwen.ai/v1/models",
url: "https://dashscope-intl.aliyuncs.com/compatible-mode/v1/models",
method: "GET",
headers: { "Content-Type": "application/json" },
authHeader: "Authorization",
@@ -317,14 +320,31 @@ const PROVIDER_MODELS_CONFIG: Record<string, ProviderModelsConfigEntry> = {
authPrefix: "Bearer ",
parseResponse: (data) => data.data || data.models || [],
},
"opencode-zen": {
url: "https://opencode.ai/zen/v1/models",
method: "GET",
headers: { "Content-Type": "application/json" },
authHeader: "Authorization",
authPrefix: "Bearer ",
parseResponse: (data) => data.data || data.models || [],
},
};
/**
* GET /api/providers/[id]/models - Get models list from provider
*/
export async function GET(request, { params }) {
export async function GET(
request: Request,
context: { params: Promise<{ id: string }> | { id: string } }
) {
try {
const { id } = await params;
const params = await context.params;
const { id } = params;
// Check if we should exclude hidden models (used by MCP tools to prevent hidden model leaks)
const { searchParams } = new URL(request.url);
const excludeHidden = searchParams.get("excludeHidden") === "true";
const connection = await getProviderConnectionById(id);
if (!connection) {
@@ -339,6 +359,13 @@ export async function GET(request, { params }) {
return NextResponse.json({ error: "Invalid connection provider" }, { status: 400 });
}
const buildResponse = (payload: any, statusConfig?: ResponseInit) => {
if (excludeHidden && payload.models && Array.isArray(payload.models)) {
payload.models = payload.models.filter((m: any) => !getModelIsHidden(provider, m.id));
}
return NextResponse.json(payload, statusConfig);
};
const connectionId = typeof connection.id === "string" ? connection.id : id;
const apiKey = typeof connection.apiKey === "string" ? connection.apiKey : "";
const accessToken = typeof connection.accessToken === "string" ? connection.accessToken : "";
@@ -423,7 +450,7 @@ export async function GET(request, { params }) {
? "local_catalog"
: "api";
return NextResponse.json({
return buildResponse({
provider,
connectionId,
models,
@@ -435,7 +462,7 @@ export async function GET(request, { params }) {
}
if (provider === "claude") {
return NextResponse.json({
return buildResponse({
provider,
connectionId,
models: STATIC_MODEL_PROVIDERS.claude(),
@@ -480,7 +507,7 @@ export async function GET(request, { params }) {
const data = await response.json();
const models = data.data || data.models || [];
return NextResponse.json({
return buildResponse({
provider,
connectionId,
models,
@@ -493,7 +520,7 @@ export async function GET(request, { params }) {
? STATIC_MODEL_PROVIDERS[provider as keyof typeof STATIC_MODEL_PROVIDERS]
: undefined;
if (staticModelsFn) {
return NextResponse.json({
return buildResponse({
provider,
connectionId,
models: staticModelsFn(),
@@ -559,7 +586,7 @@ export async function GET(request, { params }) {
const data = await response.json();
const models = config.parseResponse(data);
return NextResponse.json({
return buildResponse({
provider,
connectionId,
models,
+1 -1
View File
@@ -59,7 +59,7 @@ const OAUTH_TEST_CONFIG = {
refreshable: true,
},
qwen: {
// portal.qwen.ai/v1/models returns 404 — endpoint no longer exists.
// DashScope (previously portal.qwen.ai) /v1/models might return 404 or auth issues.
// Use checkExpiry instead — actual connectivity is validated via real requests.
checkExpiry: true,
refreshable: true,
+5
View File
@@ -114,6 +114,11 @@ export async function PATCH(request) {
setCliCompatProviders(body.cliCompatProviders || []);
}
if ("maxCallLogs" in body) {
const { invalidateCallLogsMaxCache } = await import("@/lib/usage/callLogs");
invalidateCallLogsMaxCache();
}
const { password, ...safeSettings } = settings;
return NextResponse.json(safeSettings);
} catch (error) {
+5 -1
View File
@@ -7,6 +7,7 @@ import {
getAllCustomModels,
getSettings,
getProviderNodes,
getModelIsHidden,
} from "@/lib/localDb";
import { isAuthenticated } from "@/shared/utils/apiAuth";
import { getAllEmbeddingModels } from "@omniroute/open-sse/config/embeddingRegistry.ts";
@@ -223,7 +224,7 @@ export async function getUnifiedModelsResponse(
// Add combos first (they appear at the top) — only active ones
for (const combo of combos) {
if (combo.isActive === false) continue;
if (combo.isActive === false || combo.isHidden === true) continue;
models.push({
id: combo.name,
object: "model",
@@ -255,6 +256,8 @@ export async function getUnifiedModelsResponse(
for (const model of providerModels) {
const aliasId = `${alias}/${model.id}`;
if (getModelIsHidden(canonicalProviderId, model.id)) continue;
const visionFields =
getVisionCapabilityFields(aliasId) || getVisionCapabilityFields(model.id);
// Model-level context length overrides provider default
@@ -416,6 +419,7 @@ export async function getUnifiedModelsResponse(
for (const model of providerCustomModels) {
const modelId = typeof model.id === "string" ? model.id : null;
if (!modelId) continue;
if (model.isHidden === true) continue;
// Skip if already added as built-in
const aliasId = `${alias}/${modelId}`;
+1 -1
View File
@@ -219,7 +219,7 @@ body {
/* Material Symbols */
.material-symbols-outlined {
font-family: "Material Symbols Outlined", sans-serif;
font-family: "Material Symbols Outlined", sans-serif !important;
font-weight: normal;
font-style: normal;
font-size: 24px;
+2
View File
@@ -27,6 +27,7 @@ export const LOCALES = [
"sk",
"sv",
"th",
"tr",
"uk-UA",
"vi",
"zh-CN",
@@ -68,6 +69,7 @@ export const LANGUAGES: readonly {
{ code: "sk", label: "SK", name: "Slovenčina", flag: "🇸🇰" },
{ code: "sv", label: "SV", name: "Svenska", flag: "🇸🇪" },
{ code: "th", label: "TH", name: "ไทย", flag: "🇹🇭" },
{ code: "tr", label: "TR", name: "Türkçe", flag: "🇹🇷" },
{ code: "uk-UA", label: "UK-UA", name: "Українська", flag: "🇺🇦" },
{ code: "vi", label: "VI", name: "Tiếng Việt", flag: "🇻🇳" },
{ code: "zh-CN", label: "ZH-CN", name: "中文 (简体)", flag: "🇨🇳" },
+163 -5
View File
@@ -58,7 +58,85 @@
"free": "مجاني",
"skipToContent": "انتقل إلى المحتوى",
"maintenanceServerIssues": "Server is experiencing issues. Some features may be unavailable.",
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting..."
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting...",
"accept": "قبول",
"accountId": "معرف الحساب",
"alias": "الاسم المستعار",
"apiKeyId": "معرف مفتاح واجهة برمجة التطبيقات",
"apiKeyName": "اسم مفتاح واجهة برمجة التطبيقات",
"apiKeySecret": "سر مفتاح API",
"authorization": "إذن",
"content-type": "نوع المحتوى",
"content-length": "طول المحتوى",
"cookie": "ملف تعريف الارتباط",
"file": "ملف",
"host": "المضيف",
"id": "معرف",
"import": "استيراد",
"limit": "الحد",
"offset": "إزاحة",
"open": "مفتوح",
"origin": "الأصل",
"promptTokens": "الرموز الفورية",
"completionTokens": "رموز الإنجاز",
"totalTokens": "مجموع الرموز",
"rawModel": "النموذج الخام",
"scope": "النطاق",
"skill": "مهارة",
"sortBy": "فرز حسب",
"sortOrder": "ترتيب الفرز",
"tab": "علامة التبويب",
"text": "نص",
"textarea": "منطقة النص",
"tool": "أداة",
"toolId": "معرف الأداة",
"web": "ويب",
"whereUsed": "حيث تستخدم",
"whitelist": "القائمة البيضاء",
"blacklist": "القائمة السوداء",
"resolve": "حل",
"force": "القوة",
"base64url": "عنوان URL Base64",
"hex": "عرافة",
"range": "النطاق",
"component": "مكون",
"redirect_uri": "إعادة توجيه URI",
"idempotency-key": "مفتاح العجز",
"error_description": "وصف الخطأ",
"code": "الكود",
"compatible": "متوافق",
"chat-completions": "استكمالات الدردشة",
"oauth": "OAuth",
"auth_token": "رمز المصادقة",
"crypto": "تشفير",
"hours": "ساعات",
"selfsigned": "موقعة ذاتيا",
"proxy_id": "معرف الوكيل",
"proxyId": "معرف الوكيل",
"connectionId": "معرف الاتصال",
"resolveConnectionId": "حل معرف الاتصال",
"resolve_connection_id": "حل معرف الاتصال",
"scope_id": "معرف النطاق",
"scopeId": "معرف النطاق",
"jwtSecret": "JWT سر",
"keytar": "كيتار",
"better-sqlite3": "أفضل-sqlite3",
"undici": "undici",
"builder-id": "معرف البناء",
"musicDesc": "وصف الموسيقى",
"musicGeneration": "جيل الموسيقى",
"idc": "آي دي سي",
"cloud-status-changed": "تغيرت حالة السحابة",
"where_used": "حيث تستخدم",
"windowMs": "النافذة (مللي ثانية)",
"social-github": "جيثب",
"social-google": "جوجل",
"TOOL_ALLOWLIST": "القائمة المسموح بها للأداة",
"TOOL_DENYLIST": "قائمة رفض الأداة",
"Failed to save pricing": "فشل حفظ الأسعار",
"Failed to reset pricing": "فشل في إعادة تعيين التسعير",
"apikey": "مفتاح واجهة برمجة التطبيقات",
"http": "HTTP"
},
"sidebar": {
"home": "الصفحة الرئيسية",
@@ -179,7 +257,11 @@
"requestsShort": "{count} طلب",
"providerModelsTitle": "{provider} - النماذج",
"copiedModel": "تم النسخ: {model}",
"aliasLabel": "الاسم المستعار"
"aliasLabel": "الاسم المستعار",
"updateNow": "التحديث الآن",
"updating": "جارٍ التحديث...",
"updateAvailableDesc": "نسخة جديدة متاحة. انقر للتحديث.",
"updateStarted": "بدأ التحديث..."
},
"analytics": {
"title": "التحليلات",
@@ -535,6 +617,9 @@
"title": "إضافة تكوين النموذج",
"desc": "أضف التكوين التالي إلى مجموعة النماذج الخاصة بك:"
}
},
"notes": {
"0": "متابعة يستخدم ملف التكوين JSON."
}
},
"opencode": {
@@ -553,6 +638,10 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "يتطلب OpenCode تكوين مفتاح API.",
"1": "قم بتعيين عنوان URL الأساسي إلى نقطة نهاية OmniRoute الخاصة بك."
}
},
"kiro": {
@@ -571,6 +660,9 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "يتطلب كيرو حساب أمازون."
}
}
},
@@ -1314,6 +1406,10 @@
"chatCompletions": "استكمالات الدردشة",
"importingModels": "جارٍ الاستيراد...",
"importFromModels": "الاستيراد من / النماذج",
"clearAllModels": "مسح جميع النماذج",
"clearAllModelsConfirm": "هل أنت متأكد أنك تريد إزالة جميع النماذج لهذا المزود؟ لا يمكن التراجع عن هذا.",
"clearAllModelsSuccess": "تم مسح جميع النماذج",
"clearAllModelsFailed": "فشل في مسح النماذج",
"addConnectionToImport": "أضف اتصالاً لتمكين الاستيراد.",
"noModelsConfigured": "لم يتم تكوين أي نماذج",
"connectionCount": "{count} الاتصال (الاتصالات)",
@@ -1477,7 +1573,16 @@
"compatUpstreamHeaderValue": "Value",
"compatUpstreamHeadersHint": "High-privilege setting — same trust level as editing provider API credentials; only trusted admins should use it. Merged after OmniRoute adds auth from the provider API key. If a custom header uses the same name as an existing one (e.g. Authorization), your value fully replaces the auto-generated header (including the Bearer token) — the upstream only sees what you typed, not the key from settings. Misconfiguration can cause 401 or broken upstream auth. One row per header (e.g. extra Authentication for some gateways). Hover or focus the value to preview. Saves on blur, outside click, or closing this panel.",
"compatUpstreamHeadersLabel": "Extra upstream headers",
"compatUpstreamRemoveRow": "Remove row"
"compatUpstreamRemoveRow": "Remove row",
"autoSync": "المزامنة التلقائية",
"autoSyncTooltip": "تحديث قائمة النماذج تلقائيًا كل 24 ساعة (قابلة للتكوين عبر MODEL_SYNC_INTERVAL_HOURS)",
"autoSyncEnabled": "تم تمكين المزامنة التلقائية — سيتم تحديث النماذج بشكل دوري",
"autoSyncDisabled": "تم تعطيل المزامنة التلقائية",
"autoSyncToggleFailed": "فشل في تبديل المزامنة التلقائية",
"clearAllModels": "مسح كافة النماذج",
"clearAllModelsConfirm": "هل أنت متأكد أنك تريد إزالة كافة النماذج لهذا الموفر؟ لا يمكن التراجع عن هذا.",
"clearAllModelsSuccess": "تم مسح جميع النماذج",
"clearAllModelsFailed": "فشل في مسح النماذج"
},
"settings": {
"title": "الإعدادات",
@@ -2304,7 +2409,15 @@
"restartServerWithNewPassword": "أعد تشغيل الخادم وسيتم استخدام كلمة المرور الجديدة",
"backToLogin": "العودة إلى تسجيل الدخول",
"forgotPassword": "هل نسيت كلمة المرور؟",
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)"
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)",
"Authorization": "إذن",
"Content-Disposition": "التصرف في المحتوى",
"waitingForAuthorization": "في انتظار الترخيص...",
"waitingForGoogleAuthorization": "في انتظار إذن Google...",
"waitingForOpenAIAuthorization": "في انتظار ترخيص OpenAI...",
"waitingForAntigravityAuthorization": "في انتظار تصريح مكافحة الجاذبية...",
"waitingForIFlowAuthorization": "في انتظار ترخيص iFlow...",
"exchangingCodeForTokens": "استبدال الكود بالرموز..."
},
"landing": {
"brandName": "OmniRoute",
@@ -2511,7 +2624,9 @@
"mgmtProxiesBulkAssignNote": "Assign or clear one proxy across many scope IDs in one request.",
"mgmtAssignmentsListNote": "List proxy assignments by scope, scope_id, or proxy_id.",
"mgmtAssignmentsUpdateNote": "Assign or clear proxy for global/provider/account/combo scope.",
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments."
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments.",
"endpointSpeechNote": "توليد تحويل النص إلى كلام (ElevenLabs، OpenAI TTS).",
"endpointEmbeddingsNote": "إنشاء تضمين النص (OpenAI، Cohere، Voyage)."
},
"legal": {
"privacyPolicy": "سياسة الخصوصية",
@@ -2689,5 +2804,48 @@
"domainPlaceholder": "example.com",
"requestTimedOut": "Request timed out ({seconds}s)",
"networkError": "Network error"
},
"templateNames": {
"simple-chat": "دردشة بسيطة",
"streaming": "الجري",
"system-prompt": "موجه النظام",
"thinking": "التفكير",
"tool-calling": "استدعاء الأداة",
"multi-turn": "متعدد المنعطفات"
},
"templateDescriptions": {
"simple-chat": "قالب الدردشة الأساسي مع رسالة النظام",
"streaming": "نموذج لتدفق الردود",
"system-prompt": "قالب مع موجه النظام المخصص",
"thinking": "قالب مع ميزانية التفكير/الاستدلال",
"tool-calling": "نموذج لاستدعاء الأداة/الوظيفة",
"multi-turn": "قالب للمحادثات متعددة المنعطفات"
},
"templatePayloads": {
"simpleChat": {
"system": "أنت مساعد AI مفيد.",
"userGreeting": "مرحبا! كيف يمكنني مساعدتك اليوم؟"
},
"streaming": {
"prompt": "اكتب قصة عنه"
},
"systemPrompt": {
"question": "ما هو معنى الحياة؟",
"systemInstruction": "تقديم إجابة مدروسة وفلسفية."
},
"thinking": {
"question": "شرح الحوسبة الكمومية"
},
"toolCalling": {
"cityNameDescription": "اسم المدينة لمعرفة الطقس لها",
"toolDescription": "الحصول على الطقس الحالي لموقع ما",
"userWeather": "ما هو الطقس في طوكيو ؟"
},
"multiTurn": {
"system": "أنت مساعد مفيد.",
"assistantExample": "سأكون سعيدًا بمساعدتك في ذلك.",
"userInitial": "انا بحاجة الى مساعدة مع",
"userFollowUp": "هل يمكنك توضيح ذلك؟"
}
}
}
+163 -5
View File
@@ -58,7 +58,85 @@
"free": "безплатно",
"skipToContent": "Преминете към съдържанието",
"maintenanceServerIssues": "Server is experiencing issues. Some features may be unavailable.",
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting..."
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting...",
"accept": "Приеми",
"accountId": "ID на акаунта",
"alias": "Псевдоним",
"apiKeyId": "ID на API ключ",
"apiKeyName": "Име на API ключ",
"apiKeySecret": "API Key Secret",
"authorization": "Упълномощаване",
"content-type": "Тип съдържание",
"content-length": "Дължина на съдържанието",
"cookie": "бисквитка",
"file": "Файл",
"host": "Домакин",
"id": "ID",
"import": "Импортиране",
"limit": "Лимит",
"offset": "Офсет",
"open": "Отворете",
"origin": "Произход",
"promptTokens": "Подкани токени",
"completionTokens": "Токени за завършване",
"totalTokens": "Общо токени",
"rawModel": "Суров модел",
"scope": "Обхват",
"skill": "Умение",
"sortBy": "Сортиране по",
"sortOrder": "Ред на сортиране",
"tab": "Таб",
"text": "Текст",
"textarea": "Текстово поле",
"tool": "Инструмент",
"toolId": "ID на инструмента",
"web": "Мрежа",
"whereUsed": "Къде се използва",
"whitelist": "Бял списък",
"blacklist": "Черен списък",
"resolve": "Разрешете",
"force": "Сила",
"base64url": "Base64 URL",
"hex": "шестнадесетичен",
"range": "Обхват",
"component": "Компонент",
"redirect_uri": "URI за пренасочване",
"idempotency-key": "Ключ за идемпотентност",
"error_description": "Описание на грешката",
"code": "Код",
"compatible": "Съвместим",
"chat-completions": "Чат завършвания",
"oauth": "OAuth",
"auth_token": "Токен за удостоверяване",
"crypto": "Крипто",
"hours": "часове",
"selfsigned": "Самоподписан",
"proxy_id": "ID на прокси",
"proxyId": "ID на прокси",
"connectionId": "ID на връзката",
"resolveConnectionId": "Разрешете ИД на връзката",
"resolve_connection_id": "Разрешете ИД на връзката",
"scope_id": "ID на обхвата",
"scopeId": "ID на обхвата",
"jwtSecret": "JWT Secret",
"keytar": "Keytar",
"better-sqlite3": "по-добре-sqlite3",
"undici": "undici",
"builder-id": "ID на строителя",
"musicDesc": "Описание на музиката",
"musicGeneration": "Музикално поколение",
"idc": "IDC",
"cloud-status-changed": "Състоянието на облака е променено",
"where_used": "Къде се използва",
"windowMs": "Прозорец (ms)",
"social-github": "GitHub",
"social-google": "Google",
"TOOL_ALLOWLIST": "Списък с разрешени инструменти",
"TOOL_DENYLIST": "Списък за отказ на инструмента",
"Failed to save pricing": "Неуспешно запазване на цената",
"Failed to reset pricing": "Неуспешно нулиране на цените",
"apikey": "API ключ",
"http": "HTTP"
},
"sidebar": {
"home": "Начало",
@@ -179,7 +257,11 @@
"requestsShort": "{count} изискване",
"providerModelsTitle": "{provider} - Модели",
"copiedModel": "Копирано: {model}",
"aliasLabel": "псевдоним"
"aliasLabel": "псевдоним",
"updateNow": "Актуализирайте сега",
"updating": "Актуализиране...",
"updateAvailableDesc": "Налична е нова версия. Кликнете, за да актуализирате.",
"updateStarted": "Актуализацията започна..."
},
"analytics": {
"title": "Анализ",
@@ -535,6 +617,9 @@
"title": "Добавяне на конфигурация на модела",
"desc": "Добавете следната конфигурация към вашия масив от модели:"
}
},
"notes": {
"0": "Продължаване използва JSON конфигурационен файл."
}
},
"opencode": {
@@ -553,6 +638,10 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "OpenCode изисква конфигурация на API ключ.",
"1": "Задайте основния URL адрес на вашата крайна точка OmniRoute."
}
},
"kiro": {
@@ -571,6 +660,9 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "Киро изисква акаунт в Amazon."
}
}
},
@@ -1314,6 +1406,10 @@
"chatCompletions": "Чат завършвания",
"importingModels": "Импортиране...",
"importFromModels": "Импортиране от /models",
"clearAllModels": "Изчисти всички модели",
"clearAllModelsConfirm": "Сигурни ли сте, че искате да премахнете всички модели за този доставчик? Това не може да бъде отменено.",
"clearAllModelsSuccess": "Всички модели са изчистени",
"clearAllModelsFailed": "Неуспешно изчистване на моделите",
"addConnectionToImport": "Добавете връзка, за да активирате импортирането.",
"noModelsConfigured": "Няма конфигурирани модели",
"connectionCount": "{count} връзка(и)",
@@ -1477,7 +1573,16 @@
"compatUpstreamHeaderValue": "Value",
"compatUpstreamHeadersHint": "High-privilege setting — same trust level as editing provider API credentials; only trusted admins should use it. Merged after OmniRoute adds auth from the provider API key. If a custom header uses the same name as an existing one (e.g. Authorization), your value fully replaces the auto-generated header (including the Bearer token) — the upstream only sees what you typed, not the key from settings. Misconfiguration can cause 401 or broken upstream auth. One row per header (e.g. extra Authentication for some gateways). Hover or focus the value to preview. Saves on blur, outside click, or closing this panel.",
"compatUpstreamHeadersLabel": "Extra upstream headers",
"compatUpstreamRemoveRow": "Remove row"
"compatUpstreamRemoveRow": "Remove row",
"autoSync": "Автоматично синхронизиране",
"autoSyncTooltip": "Автоматично опресняване на списъка с модели на всеки 24 часа (може да се конфигурира чрез MODEL_SYNC_INTERVAL_HOURS)",
"autoSyncEnabled": "Автоматичното синхронизиране е активирано — моделите ще се опресняват периодично",
"autoSyncDisabled": "Автоматичното синхронизиране е деактивирано",
"autoSyncToggleFailed": "Неуспешно превключване на автоматичното синхронизиране",
"clearAllModels": "Изчистване на всички модели",
"clearAllModelsConfirm": "Сигурни ли сте, че искате да премахнете всички модели за този доставчик? Това не може да бъде отменено.",
"clearAllModelsSuccess": "Всички модели изчистени",
"clearAllModelsFailed": "Неуспешно изчистване на моделите"
},
"settings": {
"title": "Настройки",
@@ -2304,7 +2409,15 @@
"restartServerWithNewPassword": "Рестартирайте сървъра - той ще използва новата парола",
"backToLogin": "Назад към Вход",
"forgotPassword": "Забравена парола?",
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)"
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)",
"Authorization": "Упълномощаване",
"Content-Disposition": "Съдържание-разположение",
"waitingForAuthorization": "Чака се оторизация...",
"waitingForGoogleAuthorization": "Изчаква се разрешение от Google...",
"waitingForOpenAIAuthorization": "Изчаква се разрешение за OpenAI...",
"waitingForAntigravityAuthorization": "Изчаква се разрешение за антигравитация...",
"waitingForIFlowAuthorization": "Изчаква се разрешение за iFlow...",
"exchangingCodeForTokens": "Размяна на код за токени..."
},
"landing": {
"brandName": "OmniRoute",
@@ -2511,7 +2624,9 @@
"mgmtProxiesBulkAssignNote": "Assign or clear one proxy across many scope IDs in one request.",
"mgmtAssignmentsListNote": "List proxy assignments by scope, scope_id, or proxy_id.",
"mgmtAssignmentsUpdateNote": "Assign or clear proxy for global/provider/account/combo scope.",
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments."
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments.",
"endpointSpeechNote": "Генериране на текст към реч (ElevenLabs, OpenAI TTS).",
"endpointEmbeddingsNote": "Генериране на вграждане на текст (OpenAI, Cohere, Voyage)."
},
"legal": {
"privacyPolicy": "Политика за поверителност",
@@ -2689,5 +2804,48 @@
"domainPlaceholder": "example.com",
"requestTimedOut": "Request timed out ({seconds}s)",
"networkError": "Network error"
},
"templateNames": {
"simple-chat": "Обикновен чат",
"streaming": "Поточно предаване",
"system-prompt": "Системен ред",
"thinking": "Мислене",
"tool-calling": "Извикване на инструмент",
"multi-turn": "Многооборотен"
},
"templateDescriptions": {
"simple-chat": "Основен шаблон за чат със системно съобщение",
"streaming": "Шаблон за поточно предаване на отговори",
"system-prompt": "Шаблон с персонализирана системна подкана",
"thinking": "Шаблон с бюджет за разсъждения/мислене",
"tool-calling": "Шаблон за извикване на инструмент/функция",
"multi-turn": "Шаблон за многооборотни разговори"
},
"templatePayloads": {
"simpleChat": {
"system": "Вие сте полезен AI помощник.",
"userGreeting": "здравей Как мога да ви помогна днес?"
},
"streaming": {
"prompt": "Напишете история за"
},
"systemPrompt": {
"question": "Какъв е смисълът на живота?",
"systemInstruction": "Дайте обмислен, философски отговор."
},
"thinking": {
"question": "Обяснете квантовите изчисления"
},
"toolCalling": {
"cityNameDescription": "Името на града, за който да получите прогноза за времето",
"toolDescription": "Вземете текущото време за местоположение",
"userWeather": "Какво е времето в Токио?"
},
"multiTurn": {
"system": "Вие сте полезен помощник.",
"assistantExample": "Ще се радвам да ви помогна с това.",
"userInitial": "Имам нужда от помощ за",
"userFollowUp": "Можете ли да разкажете по-подробно за това?"
}
}
}
+34 -1
View File
@@ -1470,6 +1470,10 @@
"chatCompletions": "Chat Completions",
"importingModels": "Importuji...",
"importFromModels": "Import z /models",
"clearAllModels": "Vymazat všechny modely",
"clearAllModelsConfirm": "Opravdu chcete odebrat všechny modely pro tohoto poskytovatele? Tuto akci nelze vrátit.",
"clearAllModelsSuccess": "Všechny modely vymazány",
"clearAllModelsFailed": "Nepodařilo se vymazat modely",
"addConnectionToImport": "Přidejte připojení pro povolení importu.",
"noModelsConfigured": "Žádné nastavené modely",
"connectionCount": "{count} připojení",
@@ -2474,7 +2478,9 @@
"waitingForOpenAIAuthorization": "Čekám na OpenAI autorizaci...",
"waitingForAntigravityAuthorization": "Čekám na Antigravity autorizaci...",
"waitingForIFlowAuthorization": "Čekám na iFlow autorizaci...",
"exchangingCodeForTokens": "Vyměňuji kód za tokeny..."
"exchangingCodeForTokens": "Vyměňuji kód za tokeny...",
"Authorization": "Autorizace",
"Content-Disposition": "Obsah-Dispozice"
},
"landing": {
"brandName": "OmniRoute",
@@ -2814,5 +2820,32 @@
"thinking": "Šablona s rozpočtem na přemýšlení/odůvodňování",
"tool-calling": "Šablona pro volání nástrojů/funkcí",
"multi-turn": "Šablona pro konverzace s Multitahy"
},
"templatePayloads": {
"simpleChat": {
"system": "Jste užitečný asistent AI.",
"userGreeting": "Dobrý den! Jak vám dnes mohu pomoci?"
},
"streaming": {
"prompt": "Napište příběh o"
},
"systemPrompt": {
"question": "Jaký je smysl života?",
"systemInstruction": "Poskytněte promyšlenou, filozofickou odpověď."
},
"thinking": {
"question": "Vysvětlete kvantové výpočty"
},
"toolCalling": {
"cityNameDescription": "Název města, pro které se má zjistit počasí",
"toolDescription": "Získejte aktuální počasí pro místo",
"userWeather": "Jaké je počasí v Tokiu?"
},
"multiTurn": {
"system": "Jste užitečný pomocník.",
"assistantExample": "Rád vám s tím pomohu.",
"userInitial": "Potřebuji pomoct",
"userFollowUp": "Můžete to upřesnit?"
}
}
}
+163 -5
View File
@@ -58,7 +58,85 @@
"free": "Gratis",
"skipToContent": "Gå til indhold",
"maintenanceServerIssues": "Server is experiencing issues. Some features may be unavailable.",
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting..."
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting...",
"accept": "Accepter",
"accountId": "Konto-id",
"alias": "Alias",
"apiKeyId": "API-nøgle-id",
"apiKeyName": "API-nøglenavn",
"apiKeySecret": "API-nøglehemmelighed",
"authorization": "Autorisation",
"content-type": "Indholdstype",
"content-length": "Indholdslængde",
"cookie": "Cookie",
"file": "Fil",
"host": "vært",
"id": "ID",
"import": "Importer",
"limit": "Grænse",
"offset": "Offset",
"open": "Åbn",
"origin": "Oprindelse",
"promptTokens": "Spørg tokens",
"completionTokens": "Fuldførelsestokens",
"totalTokens": "Samlede tokens",
"rawModel": "Rå model",
"scope": "Omfang",
"skill": "Færdighed",
"sortBy": "Sorter efter",
"sortOrder": "Sorteringsrækkefølge",
"tab": "Tab",
"text": "Tekst",
"textarea": "Tekstområde",
"tool": "Værktøj",
"toolId": "Værktøjs-id",
"web": "Web",
"whereUsed": "Hvor brugt",
"whitelist": "Hvidliste",
"blacklist": "Sortliste",
"resolve": "Løs",
"force": "Kraft",
"base64url": "Base64 URL",
"hex": "Hex",
"range": "Rækkevidde",
"component": "Komponent",
"redirect_uri": "Omdiriger URI",
"idempotency-key": "Idempotens nøgle",
"error_description": "Fejlbeskrivelse",
"code": "Kode",
"compatible": "Kompatibel",
"chat-completions": "Chatafslutninger",
"oauth": "OAuth",
"auth_token": "Auth Token",
"crypto": "Krypto",
"hours": "Timer",
"selfsigned": "Selvsigneret",
"proxy_id": "Proxy ID",
"proxyId": "Proxy ID",
"connectionId": "Forbindelses-id",
"resolveConnectionId": "Løs forbindelses-id",
"resolve_connection_id": "Løs forbindelses-id",
"scope_id": "Omfang ID",
"scopeId": "Omfang ID",
"jwtSecret": "JWT-hemmelighed",
"keytar": "Keytar",
"better-sqlite3": "bedre-sqlite3",
"undici": "undici",
"builder-id": "Bygherre-id",
"musicDesc": "Musikbeskrivelse",
"musicGeneration": "Musik Generation",
"idc": "IDC",
"cloud-status-changed": "Cloud-status ændret",
"where_used": "Hvor brugt",
"windowMs": "Vindue (ms)",
"social-github": "GitHub",
"social-google": "Google",
"TOOL_ALLOWLIST": "Værktøjstilladelsesliste",
"TOOL_DENYLIST": "Værktøj Denylist",
"Failed to save pricing": "Kunne ikke gemme prisen",
"Failed to reset pricing": "Failed to reset pricing",
"apikey": "API nøgle",
"http": "HTTP"
},
"sidebar": {
"home": "Hjem",
@@ -179,7 +257,11 @@
"requestsShort": "{count} req",
"providerModelsTitle": "{provider} - Modeller",
"copiedModel": "Kopieret: {model}",
"aliasLabel": "alias"
"aliasLabel": "alias",
"updateNow": "Opdater nu",
"updating": "Opdaterer...",
"updateAvailableDesc": "En ny version er tilgængelig. Klik for at opdatere.",
"updateStarted": "Opdatering startet..."
},
"analytics": {
"title": "Analytics",
@@ -535,6 +617,9 @@
"title": "Tilføj Model Config",
"desc": "Tilføj følgende konfiguration til dit modelarray:"
}
},
"notes": {
"0": "Continue bruger JSON-konfigurationsfil."
}
},
"opencode": {
@@ -553,6 +638,10 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "OpenCode kræver API-nøglekonfiguration.",
"1": "Indstil basis-URL'en til dit OmniRoute-slutpunkt."
}
},
"kiro": {
@@ -571,6 +660,9 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "Kiro kræver en Amazon-konto."
}
}
},
@@ -1314,6 +1406,10 @@
"chatCompletions": "Chatafslutninger",
"importingModels": "Importerer...",
"importFromModels": "Importer fra /models",
"clearAllModels": "Ryd alle modeller",
"clearAllModelsConfirm": "Er du sikker på, at du vil fjerne alle modeller for denne udbyder? Dette kan ikke fortrydes.",
"clearAllModelsSuccess": "Alle modeller ryddet",
"clearAllModelsFailed": "Kunne ikke rydde modeller",
"addConnectionToImport": "Tilføj en forbindelse for at aktivere import.",
"noModelsConfigured": "Ingen modeller konfigureret",
"connectionCount": "{count} forbindelse(r)",
@@ -1477,7 +1573,16 @@
"compatUpstreamHeaderValue": "Value",
"compatUpstreamHeadersHint": "High-privilege setting — same trust level as editing provider API credentials; only trusted admins should use it. Merged after OmniRoute adds auth from the provider API key. If a custom header uses the same name as an existing one (e.g. Authorization), your value fully replaces the auto-generated header (including the Bearer token) — the upstream only sees what you typed, not the key from settings. Misconfiguration can cause 401 or broken upstream auth. One row per header (e.g. extra Authentication for some gateways). Hover or focus the value to preview. Saves on blur, outside click, or closing this panel.",
"compatUpstreamHeadersLabel": "Extra upstream headers",
"compatUpstreamRemoveRow": "Remove row"
"compatUpstreamRemoveRow": "Remove row",
"autoSync": "Auto-synkronisering",
"autoSyncTooltip": "Opdater modellisten automatisk hver 24. time (kan konfigureres via MODEL_SYNC_INTERVAL_HOURS)",
"autoSyncEnabled": "Automatisk synkronisering aktiveret - modellerne opdateres med jævne mellemrum",
"autoSyncDisabled": "Automatisk synkronisering deaktiveret",
"autoSyncToggleFailed": "Automatisk synkronisering kunne ikke slås til eller fra",
"clearAllModels": "Ryd alle modeller",
"clearAllModelsConfirm": "Er du sikker på, at du vil fjerne alle modeller for denne udbyder? Dette kan ikke fortrydes.",
"clearAllModelsSuccess": "Alle modeller ryddet",
"clearAllModelsFailed": "Det lykkedes ikke at rydde modeller"
},
"settings": {
"title": "Indstillinger",
@@ -2304,7 +2409,15 @@
"restartServerWithNewPassword": "Genstart serveren - den vil bruge den nye adgangskode",
"backToLogin": "Tilbage til Login",
"forgotPassword": "Glemt adgangskode?",
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)"
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)",
"Authorization": "Autorisation",
"Content-Disposition": "Indhold-Disposition",
"waitingForAuthorization": "Venter på godkendelse...",
"waitingForGoogleAuthorization": "Venter på Google-godkendelse...",
"waitingForOpenAIAuthorization": "Venter på OpenAI-godkendelse...",
"waitingForAntigravityAuthorization": "Venter på antigravity-autorisation...",
"waitingForIFlowAuthorization": "Venter på iFlow-godkendelse...",
"exchangingCodeForTokens": "Udveksler kode til tokens..."
},
"landing": {
"brandName": "OmniRoute",
@@ -2511,7 +2624,9 @@
"mgmtProxiesBulkAssignNote": "Assign or clear one proxy across many scope IDs in one request.",
"mgmtAssignmentsListNote": "List proxy assignments by scope, scope_id, or proxy_id.",
"mgmtAssignmentsUpdateNote": "Assign or clear proxy for global/provider/account/combo scope.",
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments."
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments.",
"endpointSpeechNote": "Tekst-til-tale generation (ElevenLabs, OpenAI TTS).",
"endpointEmbeddingsNote": "Generering af tekstindlejring (OpenAI, Cohere, Voyage)."
},
"legal": {
"privacyPolicy": "Privatlivspolitik",
@@ -2689,5 +2804,48 @@
"domainPlaceholder": "example.com",
"requestTimedOut": "Request timed out ({seconds}s)",
"networkError": "Network error"
},
"templateNames": {
"simple-chat": "Simpel chat",
"streaming": "Streaming",
"system-prompt": "Systemprompt",
"thinking": "Tænker",
"tool-calling": "Værktøjsopkald",
"multi-turn": "Multivending"
},
"templateDescriptions": {
"simple-chat": "Grundlæggende chatskabelon med systembesked",
"streaming": "Skabelon til streaming svar",
"system-prompt": "Skabelon med brugerdefineret systemprompt",
"thinking": "Skabelon med ræsonnement/tænkebudget",
"tool-calling": "Skabelon til værktøj/funktionskald",
"multi-turn": "Skabelon til samtaler med flere sving"
},
"templatePayloads": {
"simpleChat": {
"system": "Du er en hjælpsom AI-assistent.",
"userGreeting": "Hej! Hvordan kan jeg hjælpe dig i dag?"
},
"streaming": {
"prompt": "Skriv en historie om"
},
"systemPrompt": {
"question": "Hvad er meningen med livet?",
"systemInstruction": "Giv et tankevækkende, filosofisk svar."
},
"thinking": {
"question": "Forklar kvanteberegning"
},
"toolCalling": {
"cityNameDescription": "Navnet på byen for at få vejr til",
"toolDescription": "Få det aktuelle vejr for en placering",
"userWeather": "Hvordan er vejret i Tokyo?"
},
"multiTurn": {
"system": "Du er en hjælpsom assistent.",
"assistantExample": "Det hjælper jeg dig gerne med.",
"userInitial": "Jeg har brug for hjælp til",
"userFollowUp": "Kan du uddybe det?"
}
}
}
+34 -1
View File
@@ -1406,6 +1406,10 @@
"chatCompletions": "Chat-Abschlüsse",
"importingModels": "Importieren...",
"importFromModels": "Import aus /models",
"clearAllModels": "Alle Modelle löschen",
"clearAllModelsConfirm": "Sind Sie sicher, dass Sie alle Modelle für diesen Anbieter entfernen möchten? Dies kann nicht rückgängig gemacht werden.",
"clearAllModelsSuccess": "Alle Modelle gelöscht",
"clearAllModelsFailed": "Modelle konnten nicht gelöscht werden",
"addConnectionToImport": "Fügen Sie eine Verbindung hinzu, um den Import zu ermöglichen.",
"noModelsConfigured": "Keine Modelle konfiguriert",
"connectionCount": "{count} Verbindung(en)",
@@ -2411,7 +2415,9 @@
"waitingForOpenAIAuthorization": "Warte auf OpenAI-Autorisierung...",
"waitingForAntigravityAuthorization": "Warte auf Antigravity-Autorisierung...",
"waitingForIFlowAuthorization": "Warte auf iFlow-Autorisierung...",
"exchangingCodeForTokens": "Tausche Code gegen Token aus..."
"exchangingCodeForTokens": "Tausche Code gegen Token aus...",
"Authorization": "Autorisierung",
"Content-Disposition": "Inhaltliche Disposition"
},
"landing": {
"brandName": "OmniRoute",
@@ -2814,5 +2820,32 @@
"thinking": "Vorlage mit Denk-/Argumentationsbudget",
"tool-calling": "Vorlage für Werkzeug-/Funktionsaufrufe",
"multi-turn": "Vorlage für mehrstufige Konversationen"
},
"templatePayloads": {
"simpleChat": {
"system": "Sie sind ein hilfreicher KI-Assistent.",
"userGreeting": "Hallo! Wie kann ich Ihnen heute helfen?"
},
"streaming": {
"prompt": "Schreiben Sie eine Geschichte darüber"
},
"systemPrompt": {
"question": "Was ist der Sinn des Lebens?",
"systemInstruction": "Geben Sie eine nachdenkliche, philosophische Antwort."
},
"thinking": {
"question": "Erklären Sie Quantencomputing"
},
"toolCalling": {
"cityNameDescription": "Der Name der Stadt, für die das Wetter ermittelt werden soll",
"toolDescription": "Erhalten Sie das aktuelle Wetter für einen Standort",
"userWeather": "Wie ist das Wetter in Tokio?"
},
"multiTurn": {
"system": "Sie sind ein hilfreicher Assistent.",
"assistantExample": "Gerne helfe ich Ihnen dabei.",
"userInitial": "Ich brauche Hilfe dabei",
"userFollowUp": "Können Sie das näher erläutern?"
}
}
}
+6
View File
@@ -1635,6 +1635,12 @@
"compatibleProdPlaceholder": "{type} Compatible (Prod)",
"tokenRefreshed": "Token refreshed successfully",
"tokenRefreshFailed": "Token refresh failed",
"applyCodexAuthLocal": "Apply auth",
"exportCodexAuthFile": "Export auth",
"codexAuthAppliedLocal": "Codex auth.json applied locally",
"codexAuthApplyFailed": "Failed to apply Codex auth.json locally",
"codexAuthExported": "Codex auth.json exported",
"codexAuthExportFailed": "Failed to export Codex auth.json",
"advancedSettings": "Advanced Settings",
"chatPathLabel": "Chat Endpoint Path",
"chatPathPlaceholder": "/chat/completions",
+43 -2
View File
@@ -128,7 +128,15 @@
"idc": "idc",
"cloud-status-changed": "cloud-status-changed",
"where_used": "where_used",
"windowMs": "windowMs"
"windowMs": "windowMs",
"social-github": "GitHub",
"social-google": "google",
"TOOL_ALLOWLIST": "Lista de herramientas permitidas",
"TOOL_DENYLIST": "Lista de denegaciones de herramientas",
"Failed to save pricing": "No se pudo guardar el precio",
"Failed to reset pricing": "No se pudo restablecer el precio",
"apikey": "Clave API",
"http": "HTTP"
},
"sidebar": {
"home": "Inicio",
@@ -1398,6 +1406,10 @@
"chatCompletions": "Finalizaciones de chat",
"importingModels": "Importando...",
"importFromModels": "Importar desde /modelos",
"clearAllModels": "Borrar todos los modelos",
"clearAllModelsConfirm": "¿Estás seguro de que quieres eliminar todos los modelos de este proveedor? Esta acción no se puede deshacer.",
"clearAllModelsSuccess": "Todos los modelos eliminados",
"clearAllModelsFailed": "Error al eliminar los modelos",
"addConnectionToImport": "Agregue una conexión para permitir la importación.",
"noModelsConfigured": "No hay modelos configurados",
"connectionCount": "{count} conexión(es)",
@@ -2403,7 +2415,9 @@
"waitingForOpenAIAuthorization": "Waiting for OpenAI authorization...",
"waitingForAntigravityAuthorization": "Waiting for Antigravity authorization...",
"waitingForIFlowAuthorization": "Waiting for iFlow authorization...",
"exchangingCodeForTokens": "Exchanging code for tokens..."
"exchangingCodeForTokens": "Exchanging code for tokens...",
"Authorization": "Autorización",
"Content-Disposition": "Disposición de contenido"
},
"landing": {
"brandName": "OmniRuta",
@@ -2806,5 +2820,32 @@
"thinking": "Thinking template",
"tool-calling": "Tool calling template",
"multi-turn": "Multi-turn template"
},
"templatePayloads": {
"simpleChat": {
"system": "Eres un útil asistente de IA.",
"userGreeting": "¡Hola! ¿Cómo puedo ayudarte hoy?"
},
"streaming": {
"prompt": "Escribe una historia sobre"
},
"systemPrompt": {
"question": "¿Cuál es el significado de la vida?",
"systemInstruction": "Proporcione una respuesta reflexiva y filosófica."
},
"thinking": {
"question": "Explicar la computación cuántica"
},
"toolCalling": {
"cityNameDescription": "El nombre de la ciudad para obtener el clima.",
"toolDescription": "Obtener el clima actual para una ubicación",
"userWeather": "¿Cuál es el clima en Tokio?"
},
"multiTurn": {
"system": "Eres un asistente útil.",
"assistantExample": "Estaré encantado de ayudarte con eso.",
"userInitial": "necesito ayuda con",
"userFollowUp": "¿Puedes dar más detalles sobre eso?"
}
}
}
+163 -5
View File
@@ -58,7 +58,85 @@
"free": "Ilmainen",
"skipToContent": "Siirry sisältöön",
"maintenanceServerIssues": "Server is experiencing issues. Some features may be unavailable.",
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting..."
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting...",
"accept": "Hyväksy",
"accountId": "Tilin tunnus",
"alias": "Alias",
"apiKeyId": "API-avaimen tunnus",
"apiKeyName": "API-avaimen nimi",
"apiKeySecret": "API-avaimen salaisuus",
"authorization": "Valtuutus",
"content-type": "Sisältötyyppi",
"content-length": "Sisällön pituus",
"cookie": "Eväste",
"file": "Tiedosto",
"host": "Isäntä",
"id": "ID",
"import": "Tuo",
"limit": "Raja",
"offset": "Offset",
"open": "Avaa",
"origin": "Alkuperä",
"promptTokens": "Kehotusmerkit",
"completionTokens": "Päättymismerkit",
"totalTokens": "Tokeneja yhteensä",
"rawModel": "Raaka malli",
"scope": "Laajuus",
"skill": "Taito",
"sortBy": "Lajitteluperuste",
"sortOrder": "Lajittelujärjestys",
"tab": "Tab",
"text": "Teksti",
"textarea": "Textarea",
"tool": "Työkalu",
"toolId": "Työkalun tunnus",
"web": "Web",
"whereUsed": "Missä käytetty",
"whitelist": "Valkoinen lista",
"blacklist": "Musta lista",
"resolve": "Ratkaise",
"force": "Voimaa",
"base64url": "Base64 URL",
"hex": "Hex",
"range": "Alue",
"component": "Komponentti",
"redirect_uri": "Uudelleenohjaus URI",
"idempotency-key": "Idempotenssiavain",
"error_description": "Virheen kuvaus",
"code": "Koodi",
"compatible": "Yhteensopiva",
"chat-completions": "Chatin loppuun saattaminen",
"oauth": "OAuth",
"auth_token": "Auth Token",
"crypto": "Krypto",
"hours": "Tuntia",
"selfsigned": "Itse allekirjoitettu",
"proxy_id": "Välityspalvelimen tunnus",
"proxyId": "Välityspalvelimen tunnus",
"connectionId": "Yhteystunnus",
"resolveConnectionId": "Ratkaise yhteystunnus",
"resolve_connection_id": "Ratkaise yhteystunnus",
"scope_id": "Laajuustunnus",
"scopeId": "Laajuustunnus",
"jwtSecret": "JWT Secret",
"keytar": "Keytar",
"better-sqlite3": "parempi-sqlite3",
"undici": "undici",
"builder-id": "Rakentajan tunnus",
"musicDesc": "Musiikki Kuvaus",
"musicGeneration": "Musiikin sukupolvi",
"idc": "IDC",
"cloud-status-changed": "Pilven tila muuttunut",
"where_used": "Missä käytetty",
"windowMs": "Ikkuna (ms)",
"social-github": "GitHub",
"social-google": "Google",
"TOOL_ALLOWLIST": "Työkalujen sallittu luettelo",
"TOOL_DENYLIST": "Tool Denylist",
"Failed to save pricing": "Hinnoittelun tallentaminen epäonnistui",
"Failed to reset pricing": "Hinnoittelun nollaaminen epäonnistui",
"apikey": "API-avain",
"http": "HTTP"
},
"sidebar": {
"home": "Kotiin",
@@ -179,7 +257,11 @@
"requestsShort": "{count} vaatimus",
"providerModelsTitle": "{provider} - Mallit",
"copiedModel": "Kopioitu: {model}",
"aliasLabel": "alias"
"aliasLabel": "alias",
"updateNow": "Päivitä nyt",
"updating": "Päivitetään...",
"updateAvailableDesc": "Uusi versio on saatavilla. Päivitä napsauttamalla.",
"updateStarted": "Päivitys aloitettu..."
},
"analytics": {
"title": "Analytics",
@@ -535,6 +617,9 @@
"title": "Lisää mallin kokoonpano",
"desc": "Lisää seuraavat kokoonpanot mallien matriisiisi:"
}
},
"notes": {
"0": "Jatka käyttää JSON-määritystiedostoa."
}
},
"opencode": {
@@ -553,6 +638,10 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "OpenCode vaatii API-avaimen määrityksen.",
"1": "Aseta perus-URL-osoite OmniRoute-päätepisteellesi."
}
},
"kiro": {
@@ -571,6 +660,9 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "Kiro vaatii Amazon-tilin."
}
}
},
@@ -1314,6 +1406,10 @@
"chatCompletions": "Chatin loppuun saattaminen",
"importingModels": "Tuodaan...",
"importFromModels": "Tuo / mallit",
"clearAllModels": "Tyhjennä kaikki mallit",
"clearAllModelsConfirm": "Haluatko varmasti poistaa kaikki tämän palveluntarjoajan mallit? Tätä ei voi kumota.",
"clearAllModelsSuccess": "Kaikki mallit tyhjennetty",
"clearAllModelsFailed": "Mallien tyhjentäminen epäonnistui",
"addConnectionToImport": "Lisää yhteys ottaaksesi tuonnin käyttöön.",
"noModelsConfigured": "Ei malleja määritetty",
"connectionCount": "{count} yhteyttä",
@@ -1477,7 +1573,16 @@
"compatUpstreamHeaderValue": "Value",
"compatUpstreamHeadersHint": "High-privilege setting — same trust level as editing provider API credentials; only trusted admins should use it. Merged after OmniRoute adds auth from the provider API key. If a custom header uses the same name as an existing one (e.g. Authorization), your value fully replaces the auto-generated header (including the Bearer token) — the upstream only sees what you typed, not the key from settings. Misconfiguration can cause 401 or broken upstream auth. One row per header (e.g. extra Authentication for some gateways). Hover or focus the value to preview. Saves on blur, outside click, or closing this panel.",
"compatUpstreamHeadersLabel": "Extra upstream headers",
"compatUpstreamRemoveRow": "Remove row"
"compatUpstreamRemoveRow": "Remove row",
"autoSync": "Automaattinen synkronointi",
"autoSyncTooltip": "Päivitä malliluettelo automaattisesti 24 tunnin välein (konfiguroitavissa kohdassa MODEL_SYNC_INTERVAL_HOURS)",
"autoSyncEnabled": "Automaattinen synkronointi käytössä mallit päivittyvät säännöllisesti",
"autoSyncDisabled": "Automaattinen synkronointi poistettu käytöstä",
"autoSyncToggleFailed": "Automaattisen synkronoinnin vaihtaminen epäonnistui",
"clearAllModels": "Tyhjennä kaikki mallit",
"clearAllModelsConfirm": "Haluatko varmasti poistaa kaikki tämän palveluntarjoajan mallit? Tätä ei voi kumota.",
"clearAllModelsSuccess": "Kaikki mallit tyhjennetty",
"clearAllModelsFailed": "Mallien tyhjennys epäonnistui"
},
"settings": {
"title": "Asetukset",
@@ -2304,7 +2409,15 @@
"restartServerWithNewPassword": "Käynnistä palvelin uudelleen - se käyttää uutta salasanaa",
"backToLogin": "Takaisin kirjautumiseen",
"forgotPassword": "Unohditko salasanan?",
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)"
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)",
"Authorization": "Valtuutus",
"Content-Disposition": "Sisältö-sijoittelu",
"waitingForAuthorization": "Odotetaan valtuutusta...",
"waitingForGoogleAuthorization": "Odotetaan Googlen valtuutusta...",
"waitingForOpenAIAuthorization": "Odotetaan OpenAI-valtuutusta...",
"waitingForAntigravityAuthorization": "Odotetaan antigravitaatiovaltuutusta...",
"waitingForIFlowAuthorization": "Odotetaan iFlow-valtuutusta...",
"exchangingCodeForTokens": "Vaihdetaan koodia tokeneihin..."
},
"landing": {
"brandName": "OmniRoute",
@@ -2511,7 +2624,9 @@
"mgmtProxiesBulkAssignNote": "Assign or clear one proxy across many scope IDs in one request.",
"mgmtAssignmentsListNote": "List proxy assignments by scope, scope_id, or proxy_id.",
"mgmtAssignmentsUpdateNote": "Assign or clear proxy for global/provider/account/combo scope.",
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments."
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments.",
"endpointSpeechNote": "Tekstistä puheeksi luominen (ElevenLabs, OpenAI TTS).",
"endpointEmbeddingsNote": "Tekstin upottaminen (OpenAI, Cohere, Voyage)."
},
"legal": {
"privacyPolicy": "Tietosuojakäytäntö",
@@ -2689,5 +2804,48 @@
"domainPlaceholder": "example.com",
"requestTimedOut": "Request timed out ({seconds}s)",
"networkError": "Network error"
},
"templateNames": {
"simple-chat": "Yksinkertainen chat",
"streaming": "Suoratoisto",
"system-prompt": "Järjestelmäkehote",
"thinking": "Ajatteleminen",
"tool-calling": "Työkalun kutsuminen",
"multi-turn": "Monikierros"
},
"templateDescriptions": {
"simple-chat": "Peruskeskustelumalli järjestelmäviestillä",
"streaming": "Malli vastausten suoratoistoon",
"system-prompt": "Malli mukautetulla järjestelmäkehotteella",
"thinking": "Malli perustelulla/ajattelulla",
"tool-calling": "Malli työkalun/toiminnon kutsumiseen",
"multi-turn": "Malli usean käännöksen keskusteluille"
},
"templatePayloads": {
"simpleChat": {
"system": "Olet avulias AI-avustaja.",
"userGreeting": "Hei! Kuinka voin auttaa sinua tänään?"
},
"streaming": {
"prompt": "Kirjoita tarina aiheesta"
},
"systemPrompt": {
"question": "Mikä on elämän tarkoitus?",
"systemInstruction": "Anna harkittu, filosofinen vastaus."
},
"thinking": {
"question": "Selitä kvanttilaskenta"
},
"toolCalling": {
"cityNameDescription": "Kaupungin nimi, jolle sää haetaan",
"toolDescription": "Hanki sijainnin nykyinen sää",
"userWeather": "Millainen sää on Tokiossa?"
},
"multiTurn": {
"system": "Olet avulias avustaja.",
"assistantExample": "Autan sinua siinä mielelläni.",
"userInitial": "Tarvitsen apua",
"userFollowUp": "Voitko tarkentaa sitä?"
}
}
}
+43 -2
View File
@@ -128,7 +128,15 @@
"idc": "idc",
"cloud-status-changed": "cloud-status-changed",
"where_used": "where_used",
"windowMs": "windowMs"
"windowMs": "windowMs",
"social-github": "GitHub",
"social-google": "Google",
"TOOL_ALLOWLIST": "Liste autorisée des outils",
"TOOL_DENYLIST": "Liste de refus d'outils",
"Failed to save pricing": "Échec de l'enregistrement des prix",
"Failed to reset pricing": "Échec de la réinitialisation des prix",
"apikey": "Clé API",
"http": "HTTP"
},
"sidebar": {
"home": "Accueil",
@@ -1398,6 +1406,10 @@
"chatCompletions": "Achèvements des discussions",
"importingModels": "Importation...",
"importFromModels": "Importer depuis /models",
"clearAllModels": "Supprimer tous les modèles",
"clearAllModelsConfirm": "Êtes-vous sûr de vouloir supprimer tous les modèles de ce fournisseur ? Cette action est irréversible.",
"clearAllModelsSuccess": "Tous les modèles supprimés",
"clearAllModelsFailed": "Échec de la suppression des modèles",
"addConnectionToImport": "Ajoutez une connexion pour activer l'importation.",
"noModelsConfigured": "Aucun modèle configuré",
"connectionCount": "{count} connexion(s)",
@@ -2403,7 +2415,9 @@
"waitingForOpenAIAuthorization": "Waiting for OpenAI authorization...",
"waitingForAntigravityAuthorization": "Waiting for Antigravity authorization...",
"waitingForIFlowAuthorization": "Waiting for iFlow authorization...",
"exchangingCodeForTokens": "Exchanging code for tokens..."
"exchangingCodeForTokens": "Exchanging code for tokens...",
"Authorization": "Autorisation",
"Content-Disposition": "Disposition du contenu"
},
"landing": {
"brandName": "OmniRoute",
@@ -2806,5 +2820,32 @@
"thinking": "Thinking template",
"tool-calling": "Tool calling template",
"multi-turn": "Multi-turn template"
},
"templatePayloads": {
"simpleChat": {
"system": "Vous êtes un assistant IA utile.",
"userGreeting": "Bonjour ! Comment puis-je vous aider aujourd'hui ?"
},
"streaming": {
"prompt": "Écrire une histoire sur"
},
"systemPrompt": {
"question": "Quel est le sens de la vie ?",
"systemInstruction": "Fournissez une réponse réfléchie et philosophique."
},
"thinking": {
"question": "Expliquer l'informatique quantique"
},
"toolCalling": {
"cityNameDescription": "Le nom de la ville pour laquelle obtenir la météo",
"toolDescription": "Obtenir la météo actuelle pour un emplacement",
"userWeather": "Quel temps fait-il à Tokyo ?"
},
"multiTurn": {
"system": "Vous êtes un assistant utile.",
"assistantExample": "Je serais heureux de vous aider avec cela.",
"userInitial": "J'ai besoin d'aide pour",
"userFollowUp": "Pouvez-vous développer cela ?"
}
}
}
+163 -5
View File
@@ -58,7 +58,85 @@
"free": "חינם",
"skipToContent": "דלג לתוכן",
"maintenanceServerIssues": "Server is experiencing issues. Some features may be unavailable.",
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting..."
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting...",
"accept": "קבל",
"accountId": "מזהה חשבון",
"alias": "כינוי",
"apiKeyId": "מזהה מפתח API",
"apiKeyName": "שם מפתח API",
"apiKeySecret": "סוד מפתח API",
"authorization": "הרשאה",
"content-type": "סוג תוכן",
"content-length": "אורך תוכן",
"cookie": "קוקי",
"file": "קובץ",
"host": "מארח",
"id": "תעודה מזהה",
"import": "ייבוא",
"limit": "הגבלה",
"offset": "קיזוז",
"open": "פתוח",
"origin": "מוצא",
"promptTokens": "אסימוני הנחיה",
"completionTokens": "אסימוני השלמה",
"totalTokens": "סך הכל אסימונים",
"rawModel": "דגם גלם",
"scope": "היקף",
"skill": "מיומנות",
"sortBy": "מיין לפי",
"sortOrder": "סדר מיון",
"tab": "כרטיסייה",
"text": "טקסט",
"textarea": "Textarea",
"tool": "כלי",
"toolId": "מזהה כלי",
"web": "אינטרנט",
"whereUsed": "היכן בשימוש",
"whitelist": "רשימת הלבנים",
"blacklist": "רשימה שחורה",
"resolve": "פתרון",
"force": "כוח",
"base64url": "כתובת אתר של Base64",
"hex": "משושה",
"range": "טווח",
"component": "רכיב",
"redirect_uri": "כתובת URL להפניה מחדש",
"idempotency-key": "מפתח אידמפוטנציה",
"error_description": "תיאור שגיאה",
"code": "קוד",
"compatible": "תואם",
"chat-completions": "השלמת צ'אט",
"oauth": "OAuth",
"auth_token": "Auth Token",
"crypto": "קריפטו",
"hours": "שעות",
"selfsigned": "חתום בעצמו",
"proxy_id": "מזהה פרוקסי",
"proxyId": "מזהה פרוקסי",
"connectionId": "מזהה חיבור",
"resolveConnectionId": "פתרון מזהה חיבור",
"resolve_connection_id": "פתרון מזהה חיבור",
"scope_id": "מזהה היקף",
"scopeId": "מזהה היקף",
"jwtSecret": "סוד JWT",
"keytar": "Keytar",
"better-sqlite3": "better-sqlite3",
"undici": "undici",
"builder-id": "מזהה בונה",
"musicDesc": "תיאור מוזיקה",
"musicGeneration": "דור המוזיקה",
"idc": "הבינתחומי",
"cloud-status-changed": "סטטוס הענן השתנה",
"where_used": "היכן בשימוש",
"windowMs": "חלון (ms)",
"social-github": "GitHub",
"social-google": "גוגל",
"TOOL_ALLOWLIST": "רשימת ההיתרים של הכלים",
"TOOL_DENYLIST": "רשימת הכלים",
"Failed to save pricing": "חיסכון במחיר נכשל",
"Failed to reset pricing": "איפוס התמחור נכשל",
"apikey": "מפתח API",
"http": "HTTP"
},
"sidebar": {
"home": "בית",
@@ -179,7 +257,11 @@
"requestsShort": "{count} בקשות",
"providerModelsTitle": "{provider} - דגמים",
"copiedModel": "הועתק: {model}",
"aliasLabel": "כינוי"
"aliasLabel": "כינוי",
"updateNow": "עדכן עכשיו",
"updating": "מעדכן...",
"updateAvailableDesc": "גרסה חדשה זמינה. לחץ לעדכון.",
"updateStarted": "העדכון התחיל..."
},
"analytics": {
"title": "אנליטיקס",
@@ -535,6 +617,9 @@
"title": "הוסף דגם Config",
"desc": "הוסף את התצורה הבאה למערך הדגמים שלך:"
}
},
"notes": {
"0": "המשך משתמש בקובץ התצורה של JSON."
}
},
"opencode": {
@@ -553,6 +638,10 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "OpenCode דורש תצורת מפתח API.",
"1": "הגדר את כתובת האתר הבסיסית לנקודת הקצה של OmniRoute שלך."
}
},
"kiro": {
@@ -571,6 +660,9 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "Kiro דורש חשבון אמזון."
}
}
},
@@ -1314,6 +1406,10 @@
"chatCompletions": "השלמת צ'אט",
"importingModels": "מייבא...",
"importFromModels": "ייבוא מ /models",
"clearAllModels": "מחק את כל המודלים",
"clearAllModelsConfirm": "האם אתה בטוח שברצונך להסיר את כל המודלים עבור ספק זה? לא ניתן לבטל פעולה זו.",
"clearAllModelsSuccess": "כל המודלים נמחקו",
"clearAllModelsFailed": "מחיקת המודלים נכשלה",
"addConnectionToImport": "הוסף חיבור כדי לאפשר ייבוא.",
"noModelsConfigured": "לא הוגדרו דגמים",
"connectionCount": "{count} חיבור(ים)",
@@ -1477,7 +1573,16 @@
"compatUpstreamHeaderValue": "Value",
"compatUpstreamHeadersHint": "High-privilege setting — same trust level as editing provider API credentials; only trusted admins should use it. Merged after OmniRoute adds auth from the provider API key. If a custom header uses the same name as an existing one (e.g. Authorization), your value fully replaces the auto-generated header (including the Bearer token) — the upstream only sees what you typed, not the key from settings. Misconfiguration can cause 401 or broken upstream auth. One row per header (e.g. extra Authentication for some gateways). Hover or focus the value to preview. Saves on blur, outside click, or closing this panel.",
"compatUpstreamHeadersLabel": "Extra upstream headers",
"compatUpstreamRemoveRow": "Remove row"
"compatUpstreamRemoveRow": "Remove row",
"autoSync": "סנכרון אוטומטי",
"autoSyncTooltip": "רענן אוטומטית את רשימת הדגמים כל 24 שעות (ניתן להגדרה באמצעות MODEL_SYNC_INTERVAL_HOURS)",
"autoSyncEnabled": "סנכרון אוטומטי מופעל - הדגמים יתרעננו מעת לעת",
"autoSyncDisabled": "הסנכרון האוטומטי מושבת",
"autoSyncToggleFailed": "החלפת הסנכרון האוטומטי נכשלה",
"clearAllModels": "נקה את כל הדגמים",
"clearAllModelsConfirm": "האם אתה בטוח שברצונך להסיר את כל הדגמים עבור ספק זה? לא ניתן לבטל זאת.",
"clearAllModelsSuccess": "כל הדגמים נוקו",
"clearAllModelsFailed": "ניקוי הדגמים נכשל"
},
"settings": {
"title": "הגדרות",
@@ -2304,7 +2409,15 @@
"restartServerWithNewPassword": "הפעל מחדש את השרת - הוא ישתמש בסיסמה החדשה",
"backToLogin": "חזרה לכניסה",
"forgotPassword": "שכחת סיסמה?",
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)"
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)",
"Authorization": "הרשאה",
"Content-Disposition": "תוכן-נטייה",
"waitingForAuthorization": "ממתין לאישור...",
"waitingForGoogleAuthorization": "ממתין לאישור Google...",
"waitingForOpenAIAuthorization": "ממתין להרשאת OpenAI...",
"waitingForAntigravityAuthorization": "ממתין לאישור נגד כבידה...",
"waitingForIFlowAuthorization": "ממתין להרשאת iFlow...",
"exchangingCodeForTokens": "מחליף קוד לאסימונים..."
},
"landing": {
"brandName": "OmniRoute",
@@ -2511,7 +2624,9 @@
"mgmtProxiesBulkAssignNote": "Assign or clear one proxy across many scope IDs in one request.",
"mgmtAssignmentsListNote": "List proxy assignments by scope, scope_id, or proxy_id.",
"mgmtAssignmentsUpdateNote": "Assign or clear proxy for global/provider/account/combo scope.",
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments."
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments.",
"endpointSpeechNote": "יצירת טקסט לדיבור (ElevenLabs, OpenAI TTS).",
"endpointEmbeddingsNote": "יצירת הטבעת טקסט (OpenAI, Cohere, Voyage)."
},
"legal": {
"privacyPolicy": "מדיניות פרטיות",
@@ -2689,5 +2804,48 @@
"domainPlaceholder": "example.com",
"requestTimedOut": "Request timed out ({seconds}s)",
"networkError": "Network error"
},
"templateNames": {
"simple-chat": "צ'אט פשוט",
"streaming": "סטרימינג",
"system-prompt": "הנחית מערכת",
"thinking": "חושבים",
"tool-calling": "כלי שיחות",
"multi-turn": "רב סיבובים"
},
"templateDescriptions": {
"simple-chat": "תבנית צ'אט בסיסית עם הודעת מערכת",
"streaming": "תבנית להזרמת תגובות",
"system-prompt": "תבנית עם הודעת מערכת מותאמת אישית",
"thinking": "תבנית עם היגיון/תקציב חשיבה",
"tool-calling": "תבנית לקריאת כלי/פונקציה",
"multi-turn": "תבנית לשיחות מרובי פניות"
},
"templatePayloads": {
"simpleChat": {
"system": "אתה עוזר AI מועיל.",
"userGreeting": "שלום! איך אני יכול לעזור לך היום?"
},
"streaming": {
"prompt": "כתבו סיפור על"
},
"systemPrompt": {
"question": "מהי משמעות החיים?",
"systemInstruction": "ספק תשובה מהורהרת, פילוסופית."
},
"thinking": {
"question": "הסבר מחשוב קוונטי"
},
"toolCalling": {
"cityNameDescription": "שם העיר שאפשר לקבל עליה מזג אוויר",
"toolDescription": "קבל מזג אוויר עדכני עבור מיקום",
"userWeather": "מה מזג האוויר בטוקיו?"
},
"multiTurn": {
"system": "אתה עוזר מועיל.",
"assistantExample": "אני אשמח לעזור לך עם זה.",
"userInitial": "אני צריך עזרה עם",
"userFollowUp": "אתה יכול לפרט על זה?"
}
}
}
+163 -5
View File
@@ -58,7 +58,85 @@
"free": "Ingyenes",
"skipToContent": "Ugrás a tartalomhoz",
"maintenanceServerIssues": "Server is experiencing issues. Some features may be unavailable.",
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting..."
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting...",
"accept": "Elfogadás",
"accountId": "Számlaazonosító",
"alias": "Alias",
"apiKeyId": "API kulcs azonosítója",
"apiKeyName": "API kulcs neve",
"apiKeySecret": "API kulcs titka",
"authorization": "Engedélyezés",
"content-type": "Tartalom típusa",
"content-length": "Tartalom hossza",
"cookie": "Cookie",
"file": "Fájl",
"host": "Házigazda",
"id": "ID",
"import": "Importálás",
"limit": "Limit",
"offset": "Offset",
"open": "Nyissa meg",
"origin": "Eredet",
"promptTokens": "Prompt Tokenek",
"completionTokens": "Befejezési tokenek",
"totalTokens": "Összes token",
"rawModel": "Nyers modell",
"scope": "Hatály",
"skill": "Ügyesség",
"sortBy": "Rendezés alapja",
"sortOrder": "Rendezési sorrend",
"tab": "Tab",
"text": "Szöveg",
"textarea": "Textarea",
"tool": "Eszköz",
"toolId": "Szerszámazonosító",
"web": "Web",
"whereUsed": "Hol használták",
"whitelist": "Fehérlista",
"blacklist": "Feketelista",
"resolve": "Oldja meg",
"force": "Kényszer",
"base64url": "Base64 URL",
"hex": "Hex",
"range": "Tartomány",
"component": "Összetevő",
"redirect_uri": "Átirányítási URI",
"idempotency-key": "Idempotencia kulcs",
"error_description": "Hiba leírása",
"code": "kód",
"compatible": "Kompatibilis",
"chat-completions": "Csevegés befejezése",
"oauth": "OAuth",
"auth_token": "Auth Token",
"crypto": "Crypto",
"hours": "Órák",
"selfsigned": "Önaláírt",
"proxy_id": "Proxy azonosítója",
"proxyId": "Proxy azonosítója",
"connectionId": "Csatlakozási azonosító",
"resolveConnectionId": "A kapcsolatazonosító feloldása",
"resolve_connection_id": "A kapcsolatazonosító feloldása",
"scope_id": "Hatókör azonosítója",
"scopeId": "Hatókör azonosítója",
"jwtSecret": "JWT Secret",
"keytar": "Keytar",
"better-sqlite3": "jobb-sqlite3",
"undici": "undici",
"builder-id": "Építőazonosító",
"musicDesc": "Zene Leírás",
"musicGeneration": "Zenegeneráció",
"idc": "IDC",
"cloud-status-changed": "A felhő állapota megváltozott",
"where_used": "Hol használták",
"windowMs": "Ablak (ms)",
"social-github": "GitHub",
"social-google": "Google",
"TOOL_ALLOWLIST": "Eszköz engedélyezési lista",
"TOOL_DENYLIST": "Tool Denylist",
"Failed to save pricing": "Nem sikerült menteni az árakat",
"Failed to reset pricing": "Nem sikerült visszaállítani az árakat",
"apikey": "API kulcs",
"http": "HTTP"
},
"sidebar": {
"home": "Otthon",
@@ -179,7 +257,11 @@
"requestsShort": "{count} igény",
"providerModelsTitle": "{provider} - Modellek",
"copiedModel": "Másolva: {model}",
"aliasLabel": "alias"
"aliasLabel": "alias",
"updateNow": "Frissítés most",
"updating": "Frissítés...",
"updateAvailableDesc": "Új verzió érhető el. Kattintson a frissítéshez.",
"updateStarted": "Frissítés elindult..."
},
"analytics": {
"title": "Analytics",
@@ -535,6 +617,9 @@
"title": "Add Model Config",
"desc": "Adja hozzá a következő konfigurációt a modellek tömbjéhez:"
}
},
"notes": {
"0": "A folytatás a JSON konfigurációs fájl használatával."
}
},
"opencode": {
@@ -553,6 +638,10 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "Az OpenCode API-kulcs-konfigurációt igényel.",
"1": "Állítsa be az alap URL-t az OmniRoute végpontra."
}
},
"kiro": {
@@ -571,6 +660,9 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "A Kiro Amazon-fiókot igényel."
}
}
},
@@ -1314,6 +1406,10 @@
"chatCompletions": "Csevegés befejezése",
"importingModels": "Importálás...",
"importFromModels": "Importálás a /models-ből",
"clearAllModels": "Összes modell törlése",
"clearAllModelsConfirm": "Biztosan el szeretné távolítani az összes modellt ehhez a szolgáltatóhoz? Ez a művelet nem vonható vissza.",
"clearAllModelsSuccess": "Összes modell törölve",
"clearAllModelsFailed": "A modellek törlése sikertelen",
"addConnectionToImport": "Adjon hozzá egy kapcsolatot az importálás engedélyezéséhez.",
"noModelsConfigured": "Nincsenek konfigurálva modellek",
"connectionCount": "{count} kapcsolat",
@@ -1477,7 +1573,16 @@
"compatUpstreamHeaderValue": "Value",
"compatUpstreamHeadersHint": "High-privilege setting — same trust level as editing provider API credentials; only trusted admins should use it. Merged after OmniRoute adds auth from the provider API key. If a custom header uses the same name as an existing one (e.g. Authorization), your value fully replaces the auto-generated header (including the Bearer token) — the upstream only sees what you typed, not the key from settings. Misconfiguration can cause 401 or broken upstream auth. One row per header (e.g. extra Authentication for some gateways). Hover or focus the value to preview. Saves on blur, outside click, or closing this panel.",
"compatUpstreamHeadersLabel": "Extra upstream headers",
"compatUpstreamRemoveRow": "Remove row"
"compatUpstreamRemoveRow": "Remove row",
"autoSync": "Automatikus szinkronizálás",
"autoSyncTooltip": "A modelllista automatikus frissítése 24 óránként (konfigurálható: MODEL_SYNC_INTERVAL_HOURS)",
"autoSyncEnabled": "Automatikus szinkronizálás engedélyezve a modellek rendszeresen frissülnek",
"autoSyncDisabled": "Az automatikus szinkronizálás letiltva",
"autoSyncToggleFailed": "Failed to toggle auto-sync",
"clearAllModels": "Minden modell törlése",
"clearAllModelsConfirm": "Biztosan eltávolítja ennek a szolgáltatónak az összes modelljét? Ezt nem lehet visszavonni.",
"clearAllModelsSuccess": "Minden modell törölve",
"clearAllModelsFailed": "Nem sikerült törölni a modelleket"
},
"settings": {
"title": "Beállítások elemre",
@@ -2304,7 +2409,15 @@
"restartServerWithNewPassword": "Indítsa újra a szervert - az új jelszót fogja használni",
"backToLogin": "Vissza a Bejelentkezéshez",
"forgotPassword": "Elfelejtetted a jelszavad?",
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)"
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)",
"Authorization": "Engedélyezés",
"Content-Disposition": "Tartalom-Diszpozíció",
"waitingForAuthorization": "Várakozás az engedélyezésre...",
"waitingForGoogleAuthorization": "Várakozás a Google engedélyére...",
"waitingForOpenAIAuthorization": "Várakozás az OpenAI engedélyezésére...",
"waitingForAntigravityAuthorization": "Várakozás az Antigravitációs engedélyezésre...",
"waitingForIFlowAuthorization": "Várakozás az iFlow engedélyezésére...",
"exchangingCodeForTokens": "Kód cseréje tokenre..."
},
"landing": {
"brandName": "OmniRoute",
@@ -2511,7 +2624,9 @@
"mgmtProxiesBulkAssignNote": "Assign or clear one proxy across many scope IDs in one request.",
"mgmtAssignmentsListNote": "List proxy assignments by scope, scope_id, or proxy_id.",
"mgmtAssignmentsUpdateNote": "Assign or clear proxy for global/provider/account/combo scope.",
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments."
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments.",
"endpointSpeechNote": "Szövegfelolvasó generálás (ElevenLabs, OpenAI TTS).",
"endpointEmbeddingsNote": "Szövegbeágyazás generálása (OpenAI, Cohere, Voyage)."
},
"legal": {
"privacyPolicy": "Adatvédelmi szabályzat",
@@ -2689,5 +2804,48 @@
"domainPlaceholder": "example.com",
"requestTimedOut": "Request timed out ({seconds}s)",
"networkError": "Network error"
},
"templateNames": {
"simple-chat": "Egyszerű csevegés",
"streaming": "Streaming",
"system-prompt": "Rendszer prompt",
"thinking": "Gondolkodás",
"tool-calling": "Szerszámhívás",
"multi-turn": "Többfordulós"
},
"templateDescriptions": {
"simple-chat": "Alapvető chat-sablon rendszerüzenettel",
"streaming": "Sablon a válaszok streameléséhez",
"system-prompt": "Sablon egyéni rendszerkéréssel",
"thinking": "Sablon érveléssel/gondolkodó költségvetéssel",
"tool-calling": "Sablon az eszköz/funkció hívásához",
"multi-turn": "Sablon többfordulós beszélgetésekhez"
},
"templatePayloads": {
"simpleChat": {
"system": "Segítőkész AI-asszisztens vagy.",
"userGreeting": "Sziasztok! Hogyan segíthetek ma?"
},
"streaming": {
"prompt": "Írj egy történetet róla"
},
"systemPrompt": {
"question": "Mi az élet értelme?",
"systemInstruction": "Adjon megfontolt, filozófiai választ."
},
"thinking": {
"question": "Magyarázza el a kvantumszámítást!"
},
"toolCalling": {
"cityNameDescription": "A város neve, amelyhez időjárást kell kérni",
"toolDescription": "Az adott hely aktuális időjárásának megtekintése",
"userWeather": "Milyen az idő Tokióban?"
},
"multiTurn": {
"system": "Segítőkész asszisztens vagy.",
"assistantExample": "Szívesen segítek ebben.",
"userInitial": "Segítségre van szükségem",
"userFollowUp": "Kifejtenéd ezt bővebben?"
}
}
}
+43 -2
View File
@@ -128,7 +128,15 @@
"idc": "idc",
"cloud-status-changed": "cloud-status-changed",
"where_used": "where_used",
"windowMs": "windowMs"
"windowMs": "windowMs",
"social-github": "GitHub",
"social-google": "Google",
"TOOL_ALLOWLIST": "Daftar Alat yang Diizinkan",
"TOOL_DENYLIST": "Daftar Penolakan Alat",
"Failed to save pricing": "Gagal menyimpan harga",
"Failed to reset pricing": "Gagal menyetel ulang harga",
"apikey": "Kunci API",
"http": "HTTP"
},
"sidebar": {
"home": "Rumah",
@@ -1398,6 +1406,10 @@
"chatCompletions": "Penyelesaian Obrolan",
"importingModels": "Mengimpor...",
"importFromModels": "Impor dari /models",
"clearAllModels": "Hapus Semua Model",
"clearAllModelsConfirm": "Apakah Anda yakin ingin menghapus semua model untuk penyedia ini? Tindakan ini tidak dapat dibatalkan.",
"clearAllModelsSuccess": "Semua model dihapus",
"clearAllModelsFailed": "Gagal menghapus model",
"addConnectionToImport": "Tambahkan koneksi untuk mengaktifkan impor.",
"noModelsConfigured": "Tidak ada model yang dikonfigurasi",
"connectionCount": "{count} koneksi",
@@ -2403,7 +2415,9 @@
"waitingForOpenAIAuthorization": "Waiting for OpenAI authorization...",
"waitingForAntigravityAuthorization": "Waiting for Antigravity authorization...",
"waitingForIFlowAuthorization": "Waiting for iFlow authorization...",
"exchangingCodeForTokens": "Exchanging code for tokens..."
"exchangingCodeForTokens": "Exchanging code for tokens...",
"Authorization": "Otorisasi",
"Content-Disposition": "Disposisi Konten"
},
"landing": {
"brandName": "OmniRoute",
@@ -2806,5 +2820,32 @@
"thinking": "Thinking template",
"tool-calling": "Tool calling template",
"multi-turn": "Multi-turn template"
},
"templatePayloads": {
"simpleChat": {
"system": "Anda adalah asisten AI yang membantu.",
"userGreeting": "Halo! Apa yang bisa saya bantu hari ini?"
},
"streaming": {
"prompt": "Tulis cerita tentang"
},
"systemPrompt": {
"question": "Apa arti hidup?",
"systemInstruction": "Berikan jawaban yang bijaksana dan filosofis."
},
"thinking": {
"question": "Jelaskan komputasi kuantum"
},
"toolCalling": {
"cityNameDescription": "Nama kota untuk mengetahui cuaca",
"toolDescription": "Dapatkan cuaca terkini untuk suatu lokasi",
"userWeather": "Bagaimana cuaca di Tokyo?"
},
"multiTurn": {
"system": "Anda adalah asisten yang membantu.",
"assistantExample": "Saya akan dengan senang hati membantu Anda dalam hal itu.",
"userInitial": "Saya butuh bantuan",
"userFollowUp": "Bisakah Anda menjelaskannya lebih lanjut?"
}
}
}
File diff suppressed because it is too large Load Diff
+43 -2
View File
@@ -128,7 +128,15 @@
"idc": "idc",
"cloud-status-changed": "cloud-status-changed",
"where_used": "where_used",
"windowMs": "windowMs"
"windowMs": "windowMs",
"social-github": "GitHub",
"social-google": "Google",
"TOOL_ALLOWLIST": "Lista consentita degli strumenti",
"TOOL_DENYLIST": "Elenco negati dello strumento",
"Failed to save pricing": "Impossibile salvare i prezzi",
"Failed to reset pricing": "Impossibile reimpostare i prezzi",
"apikey": "Chiave API",
"http": "HTTP"
},
"sidebar": {
"home": "Casa",
@@ -1398,6 +1406,10 @@
"chatCompletions": "Completamenti della chat",
"importingModels": "Importazione...",
"importFromModels": "Importa da /modelli",
"clearAllModels": "Cancella tutti i modelli",
"clearAllModelsConfirm": "Sei sicuro di voler rimuovere tutti i modelli per questo provider? Questa azione non può essere annullata.",
"clearAllModelsSuccess": "Tutti i modelli cancellati",
"clearAllModelsFailed": "Impossibile cancellare i modelli",
"addConnectionToImport": "Aggiungi una connessione per abilitare l'importazione.",
"noModelsConfigured": "Nessun modello configurato",
"connectionCount": "{count} connessione/i",
@@ -2403,7 +2415,9 @@
"waitingForOpenAIAuthorization": "Waiting for OpenAI authorization...",
"waitingForAntigravityAuthorization": "Waiting for Antigravity authorization...",
"waitingForIFlowAuthorization": "Waiting for iFlow authorization...",
"exchangingCodeForTokens": "Exchanging code for tokens..."
"exchangingCodeForTokens": "Exchanging code for tokens...",
"Authorization": "Autorizzazione",
"Content-Disposition": "Disposizione del contenuto"
},
"landing": {
"brandName": "OmniRoute",
@@ -2806,5 +2820,32 @@
"thinking": "Thinking template",
"tool-calling": "Tool calling template",
"multi-turn": "Multi-turn template"
},
"templatePayloads": {
"simpleChat": {
"system": "Sei un utile assistente AI.",
"userGreeting": "Ciao! Come posso aiutarti oggi?"
},
"streaming": {
"prompt": "Scrivi una storia su"
},
"systemPrompt": {
"question": "Qual è il significato della vita?",
"systemInstruction": "Fornisci una risposta ponderata e filosofica."
},
"thinking": {
"question": "Spiegare l'informatica quantistica"
},
"toolCalling": {
"cityNameDescription": "Il nome della città per la quale ottenere il meteo",
"toolDescription": "Ottieni il meteo attuale per una località",
"userWeather": "Che tempo fa a Tokio?"
},
"multiTurn": {
"system": "Sei un assistente utile.",
"assistantExample": "Sarei felice di aiutarti in questo.",
"userInitial": "Ho bisogno di aiuto con",
"userFollowUp": "Puoi approfondire questo argomento?"
}
}
}
+43 -2
View File
@@ -128,7 +128,15 @@
"idc": "idc",
"cloud-status-changed": "cloud-status-changed",
"where_used": "where_used",
"windowMs": "windowMs"
"windowMs": "windowMs",
"social-github": "GitHub",
"social-google": "Google",
"TOOL_ALLOWLIST": "ツールの許可リスト",
"TOOL_DENYLIST": "ツール拒否リスト",
"Failed to save pricing": "価格設定を保存できませんでした",
"Failed to reset pricing": "価格設定のリセットに失敗しました",
"apikey": "APIキー",
"http": "HTTP"
},
"sidebar": {
"home": "ホーム",
@@ -1398,6 +1406,10 @@
"chatCompletions": "チャットの完了",
"importingModels": "インポート中...",
"importFromModels": "/models からインポート",
"clearAllModels": "すべてのモデルを削除",
"clearAllModelsConfirm": "このプロバイダーのすべてのモデルを削除してもよろしいですか?この操作は元に戻せません。",
"clearAllModelsSuccess": "すべてのモデルを削除しました",
"clearAllModelsFailed": "モデルの削除に失敗しました",
"addConnectionToImport": "接続を追加してインポートを有効にします。",
"noModelsConfigured": "モデルが設定されていません",
"connectionCount": "{count} 接続",
@@ -2403,7 +2415,9 @@
"waitingForOpenAIAuthorization": "Waiting for OpenAI authorization...",
"waitingForAntigravityAuthorization": "Waiting for Antigravity authorization...",
"waitingForIFlowAuthorization": "Waiting for iFlow authorization...",
"exchangingCodeForTokens": "Exchanging code for tokens..."
"exchangingCodeForTokens": "Exchanging code for tokens...",
"Authorization": "認可",
"Content-Disposition": "コンテンツの配置"
},
"landing": {
"brandName": "オムニルート",
@@ -2806,5 +2820,32 @@
"thinking": "Thinking template",
"tool-calling": "Tool calling template",
"multi-turn": "Multi-turn template"
},
"templatePayloads": {
"simpleChat": {
"system": "あなたは役に立つ AI アシスタントです。",
"userGreeting": "こんにちは!今日はどのようにお手伝いできますか?"
},
"streaming": {
"prompt": "~についての話を書いてください"
},
"systemPrompt": {
"question": "人生の意味とは何でしょうか?",
"systemInstruction": "思慮深く哲学的な答えを提供してください。"
},
"thinking": {
"question": "量子コンピューティングについて説明する"
},
"toolCalling": {
"cityNameDescription": "天気を取得する都市の名前",
"toolDescription": "場所の現在の天気を取得する",
"userWeather": "東京の天気はどうですか?"
},
"multiTurn": {
"system": "あなたは役に立つアシスタントです。",
"assistantExample": "喜んでお手伝いさせていただきます。",
"userInitial": "助けが必要です",
"userFollowUp": "それについて詳しく教えてもらえますか?"
}
}
}
+43 -2
View File
@@ -128,7 +128,15 @@
"idc": "idc",
"cloud-status-changed": "cloud-status-changed",
"where_used": "where_used",
"windowMs": "windowMs"
"windowMs": "windowMs",
"social-github": "GitHub",
"social-google": "구글",
"TOOL_ALLOWLIST": "도구 허용 목록",
"TOOL_DENYLIST": "도구 거부 목록",
"Failed to save pricing": "가격을 저장하지 못했습니다.",
"Failed to reset pricing": "가격을 재설정하지 못했습니다.",
"apikey": "API 키",
"http": "HTTP"
},
"sidebar": {
"home": "홈",
@@ -1398,6 +1406,10 @@
"chatCompletions": "채팅 완료",
"importingModels": "가져오는 중...",
"importFromModels": "/models에서 가져오기",
"clearAllModels": "모든 모델 지우기",
"clearAllModelsConfirm": "이 제공자의 모든 모델을 제거하시겠습니까? 이 작업은 되돌릴 수 없습니다.",
"clearAllModelsSuccess": "모든 모델이 지워졌습니다",
"clearAllModelsFailed": "모델 지우기 실패",
"addConnectionToImport": "가져오기를 활성화하려면 연결을 추가하세요.",
"noModelsConfigured": "구성된 모델이 없습니다.",
"connectionCount": "{count} 연결",
@@ -2403,7 +2415,9 @@
"waitingForOpenAIAuthorization": "Waiting for OpenAI authorization...",
"waitingForAntigravityAuthorization": "Waiting for Antigravity authorization...",
"waitingForIFlowAuthorization": "Waiting for iFlow authorization...",
"exchangingCodeForTokens": "Exchanging code for tokens..."
"exchangingCodeForTokens": "Exchanging code for tokens...",
"Authorization": "승인",
"Content-Disposition": "컨텐츠 처리"
},
"landing": {
"brandName": "옴니루트",
@@ -2806,5 +2820,32 @@
"thinking": "Thinking template",
"tool-calling": "Tool calling template",
"multi-turn": "Multi-turn template"
},
"templatePayloads": {
"simpleChat": {
"system": "당신은 유용한 AI 비서입니다.",
"userGreeting": "안녕하세요! 오늘은 무엇을 도와드릴까요?"
},
"streaming": {
"prompt": "에 관한 이야기를 써 보세요."
},
"systemPrompt": {
"question": "삶의 의미는 무엇입니까?",
"systemInstruction": "사려 깊고 철학적인 답변을 제공하세요."
},
"thinking": {
"question": "양자 컴퓨팅 설명"
},
"toolCalling": {
"cityNameDescription": "날씨를 확인할 도시의 이름",
"toolDescription": "특정 위치의 현재 날씨 확인",
"userWeather": "도쿄 날씨는 어떻습니까?"
},
"multiTurn": {
"system": "당신은 도움이 되는 조수입니다.",
"assistantExample": "기꺼이 도와드리겠습니다.",
"userInitial": "도움이 필요해요",
"userFollowUp": "그것에 대해 자세히 설명해주실 수 있나요?"
}
}
}
+163 -5
View File
@@ -58,7 +58,85 @@
"free": "Percuma",
"skipToContent": "Langkau ke kandungan",
"maintenanceServerIssues": "Server is experiencing issues. Some features may be unavailable.",
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting..."
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting...",
"accept": "Terima",
"accountId": "ID Akaun",
"alias": "Alias",
"apiKeyId": "ID Kunci API",
"apiKeyName": "Nama Kunci API",
"apiKeySecret": "Rahsia Kunci API",
"authorization": "Keizinan",
"content-type": "Jenis Kandungan",
"content-length": "Panjang Kandungan",
"cookie": "Kuki",
"file": "Fail",
"host": "hos",
"id": "ID",
"import": "Import",
"limit": "had",
"offset": "Offset",
"open": "Buka",
"origin": "asal usul",
"promptTokens": "Token Gesaan",
"completionTokens": "Token Penyiapan",
"totalTokens": "Jumlah Token",
"rawModel": "Model Mentah",
"scope": "Skop",
"skill": "Kemahiran",
"sortBy": "Isih Mengikut",
"sortOrder": "Susun Susunan",
"tab": "Tab",
"text": "Teks",
"textarea": "Textarea",
"tool": "alat",
"toolId": "ID alat",
"web": "Web",
"whereUsed": "Di mana Digunakan",
"whitelist": "Senarai putih",
"blacklist": "Senarai hitam",
"resolve": "Selesaikan",
"force": "Paksa",
"base64url": "URL Base64",
"hex": "Hex",
"range": "Julat",
"component": "Komponen",
"redirect_uri": "Ubah hala URI",
"idempotency-key": "Kunci Idepotency",
"error_description": "Penerangan Ralat",
"code": "Kod",
"compatible": "serasi",
"chat-completions": "Selesai Sembang",
"oauth": "OAuth",
"auth_token": "Token Pengesahan",
"crypto": "Kripto",
"hours": "jam",
"selfsigned": "Ditandatangani sendiri",
"proxy_id": "ID proksi",
"proxyId": "ID proksi",
"connectionId": "ID Sambungan",
"resolveConnectionId": "Selesaikan ID Sambungan",
"resolve_connection_id": "Selesaikan ID Sambungan",
"scope_id": "ID Skop",
"scopeId": "ID Skop",
"jwtSecret": "Rahsia JWT",
"keytar": "Keytar",
"better-sqlite3": "lebih baik-sqlite3",
"undici": "undici",
"builder-id": "ID Pembina",
"musicDesc": "Penerangan Muzik",
"musicGeneration": "Penjanaan Muzik",
"idc": "IDC",
"cloud-status-changed": "Status awan berubah",
"where_used": "Di mana Digunakan",
"windowMs": "Tetingkap (ms)",
"social-github": "GitHub",
"social-google": "Google",
"TOOL_ALLOWLIST": "Senarai Benarkan Alat",
"TOOL_DENYLIST": "Senarai Penafian Alat",
"Failed to save pricing": "Gagal menyimpan harga",
"Failed to reset pricing": "Gagal menetapkan semula harga",
"apikey": "Kunci API",
"http": "HTTP"
},
"sidebar": {
"home": "Rumah",
@@ -179,7 +257,11 @@
"requestsShort": "{count} permintaan",
"providerModelsTitle": "{provider} - Model",
"copiedModel": "Disalin: {model}",
"aliasLabel": "alias"
"aliasLabel": "alias",
"updateNow": "Kemas kini Sekarang",
"updating": "Mengemas kini...",
"updateAvailableDesc": "Versi baharu tersedia. Klik untuk mengemas kini.",
"updateStarted": "Kemas kini bermula..."
},
"analytics": {
"title": "Analitis",
@@ -535,6 +617,9 @@
"title": "Tambah Konfigurasi Model",
"desc": "Tambahkan konfigurasi berikut pada tatasusunan model anda:"
}
},
"notes": {
"0": "Teruskan menggunakan fail konfigurasi JSON."
}
},
"opencode": {
@@ -553,6 +638,10 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "OpenCode memerlukan konfigurasi kunci API.",
"1": "Tetapkan URL asas kepada titik akhir OmniRoute anda."
}
},
"kiro": {
@@ -571,6 +660,9 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "Kiro memerlukan akaun Amazon."
}
}
},
@@ -1314,6 +1406,10 @@
"chatCompletions": "Selesai Sembang",
"importingModels": "Mengimport...",
"importFromModels": "Import daripada /models",
"clearAllModels": "Padam Semua Model",
"clearAllModelsConfirm": "Adakah anda pasti mahu membuang semua model untuk pembekal ini? Tindakan ini tidak boleh dibuat asal.",
"clearAllModelsSuccess": "Semua model dipadamkan",
"clearAllModelsFailed": "Gagal memadamkan model",
"addConnectionToImport": "Tambahkan sambungan untuk mendayakan pengimportan.",
"noModelsConfigured": "Tiada model yang dikonfigurasikan",
"connectionCount": "{count} sambungan",
@@ -1477,7 +1573,16 @@
"compatUpstreamHeaderValue": "Value",
"compatUpstreamHeadersHint": "High-privilege setting — same trust level as editing provider API credentials; only trusted admins should use it. Merged after OmniRoute adds auth from the provider API key. If a custom header uses the same name as an existing one (e.g. Authorization), your value fully replaces the auto-generated header (including the Bearer token) — the upstream only sees what you typed, not the key from settings. Misconfiguration can cause 401 or broken upstream auth. One row per header (e.g. extra Authentication for some gateways). Hover or focus the value to preview. Saves on blur, outside click, or closing this panel.",
"compatUpstreamHeadersLabel": "Extra upstream headers",
"compatUpstreamRemoveRow": "Remove row"
"compatUpstreamRemoveRow": "Remove row",
"autoSync": "Auto-Segerak",
"autoSyncTooltip": "Muat semula senarai model secara automatik setiap 24j (boleh dikonfigurasikan melalui MODEL_SYNC_INTERVAL_HOURS)",
"autoSyncEnabled": "Autosegerak didayakan — model akan dimuat semula secara berkala",
"autoSyncDisabled": "Autosegerak dilumpuhkan",
"autoSyncToggleFailed": "Gagal untuk menogol autosegerak",
"clearAllModels": "Kosongkan Semua Model",
"clearAllModelsConfirm": "Adakah anda pasti mahu mengalih keluar semua model untuk pembekal ini? Ini tidak boleh dibuat asal.",
"clearAllModelsSuccess": "Semua model dibersihkan",
"clearAllModelsFailed": "Gagal mengosongkan model"
},
"settings": {
"title": "tetapan",
@@ -2304,7 +2409,15 @@
"restartServerWithNewPassword": "Mulakan semula pelayan - ia akan menggunakan kata laluan baharu",
"backToLogin": "Kembali ke Log Masuk",
"forgotPassword": "Lupa kata laluan?",
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)"
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)",
"Authorization": "Keizinan",
"Content-Disposition": "Kandungan-Pelupusan",
"waitingForAuthorization": "Menunggu kebenaran...",
"waitingForGoogleAuthorization": "Menunggu kebenaran Google...",
"waitingForOpenAIAuthorization": "Menunggu kebenaran OpenAI...",
"waitingForAntigravityAuthorization": "Menunggu kebenaran Antigraviti...",
"waitingForIFlowAuthorization": "Menunggu kebenaran iFlow...",
"exchangingCodeForTokens": "Bertukar kod untuk token..."
},
"landing": {
"brandName": "OmniRoute",
@@ -2511,7 +2624,9 @@
"mgmtProxiesBulkAssignNote": "Assign or clear one proxy across many scope IDs in one request.",
"mgmtAssignmentsListNote": "List proxy assignments by scope, scope_id, or proxy_id.",
"mgmtAssignmentsUpdateNote": "Assign or clear proxy for global/provider/account/combo scope.",
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments."
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments.",
"endpointSpeechNote": "Penjanaan teks ke pertuturan (ElevenLabs, OpenAI TTS).",
"endpointEmbeddingsNote": "Penjanaan pembenaman teks (OpenAI, Cohere, Voyage)."
},
"legal": {
"privacyPolicy": "Dasar Privasi",
@@ -2689,5 +2804,48 @@
"domainPlaceholder": "example.com",
"requestTimedOut": "Request timed out ({seconds}s)",
"networkError": "Network error"
},
"templateNames": {
"simple-chat": "Sembang Mudah",
"streaming": "Penstriman",
"system-prompt": "Gesaan Sistem",
"thinking": "Berfikir",
"tool-calling": "Alat Panggilan",
"multi-turn": "Pelbagai pusingan"
},
"templateDescriptions": {
"simple-chat": "Templat sembang asas dengan mesej sistem",
"streaming": "Templat untuk respons penstriman",
"system-prompt": "Templat dengan gesaan sistem tersuai",
"thinking": "Templat dengan bajet penaakulan/pemikiran",
"tool-calling": "Templat untuk panggilan alat/fungsi",
"multi-turn": "Templat untuk perbualan berbilang pusingan"
},
"templatePayloads": {
"simpleChat": {
"system": "Anda seorang pembantu AI yang membantu.",
"userGreeting": "hello! Bagaimana saya boleh membantu anda hari ini?"
},
"streaming": {
"prompt": "Tulis cerita tentang"
},
"systemPrompt": {
"question": "Apakah erti kehidupan?",
"systemInstruction": "Berikan jawapan yang bernas dan berfalsafah."
},
"thinking": {
"question": "Terangkan pengkomputeran kuantum"
},
"toolCalling": {
"cityNameDescription": "Nama bandar untuk mendapatkan cuaca",
"toolDescription": "Dapatkan cuaca semasa untuk lokasi",
"userWeather": "Bagaimanakah cuaca di Tokyo?"
},
"multiTurn": {
"system": "Anda seorang pembantu yang membantu.",
"assistantExample": "Saya berbesar hati untuk membantu anda dengan itu.",
"userInitial": "Saya perlukan bantuan",
"userFollowUp": "Bolehkah anda menghuraikan perkara itu?"
}
}
}
+163 -5
View File
@@ -58,7 +58,85 @@
"free": "Gratis",
"skipToContent": "Ga naar de inhoud",
"maintenanceServerIssues": "Server is experiencing issues. Some features may be unavailable.",
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting..."
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting...",
"accept": "Accepteer",
"accountId": "Account-ID",
"alias": "Alias",
"apiKeyId": "API-sleutel-ID",
"apiKeyName": "API-sleutelnaam",
"apiKeySecret": "API-sleutelgeheim",
"authorization": "Autorisatie",
"content-type": "Inhoudstype",
"content-length": "Inhoud lengte",
"cookie": "Koekje",
"file": "Bestand",
"host": "Gastheer",
"id": "Identiteitskaart",
"import": "Importeren",
"limit": "Limiet",
"offset": "Offset",
"open": "Openen",
"origin": "Oorsprong",
"promptTokens": "Prompt-tokens",
"completionTokens": "Voltooiingstokens",
"totalTokens": "Totaal tokens",
"rawModel": "Ruw model",
"scope": "Reikwijdte",
"skill": "Vaardigheid",
"sortBy": "Sorteer op",
"sortOrder": "Sorteervolgorde",
"tab": "Tab",
"text": "Tekst",
"textarea": "Tekstgebied",
"tool": "Gereedschap",
"toolId": "Gereedschaps-ID",
"web": "Web",
"whereUsed": "Waar gebruikt",
"whitelist": "Witte lijst",
"blacklist": "Zwarte lijst",
"resolve": "Oplossen",
"force": "Kracht",
"base64url": "Base64-URL",
"hex": "Hex",
"range": "Bereik",
"component": "Onderdeel",
"redirect_uri": "Omleidings-URI",
"idempotency-key": "Idempotentie sleutel",
"error_description": "Foutbeschrijving",
"code": "Codeer",
"compatible": "Compatibel",
"chat-completions": "Chat-voltooiingen",
"oauth": "OAuth",
"auth_token": "Authenticatietoken",
"crypto": "Crypto",
"hours": "Uur",
"selfsigned": "Zelf ondertekend",
"proxy_id": "Proxy-ID",
"proxyId": "Proxy-ID",
"connectionId": "Verbindings-ID",
"resolveConnectionId": "Verbindings-ID oplossen",
"resolve_connection_id": "Verbindings-ID oplossen",
"scope_id": "Bereik-ID",
"scopeId": "Bereik-ID",
"jwtSecret": "JWT-geheim",
"keytar": "Keytar",
"better-sqlite3": "beter-sqlite3",
"undici": "undici",
"builder-id": "Bouwer-ID",
"musicDesc": "Muziekbeschrijving",
"musicGeneration": "Muziek generatie",
"idc": "IDC",
"cloud-status-changed": "Cloudstatus gewijzigd",
"where_used": "Waar gebruikt",
"windowMs": "Venster (ms)",
"social-github": "GitHub",
"social-google": "Googlen",
"TOOL_ALLOWLIST": "Tool Toelatingslijst",
"TOOL_DENYLIST": "Tool-weigerlijst",
"Failed to save pricing": "Kan de prijzen niet opslaan",
"Failed to reset pricing": "Kan de prijzen niet opnieuw instellen",
"apikey": "API-sleutel",
"http": "HTTP"
},
"sidebar": {
"home": "Thuis",
@@ -179,7 +257,11 @@
"requestsShort": "{count} vereisten",
"providerModelsTitle": "{provider} - Modellen",
"copiedModel": "Gekopieerd: {model}",
"aliasLabel": "alias"
"aliasLabel": "alias",
"updateNow": "Nu bijwerken",
"updating": "Updaten...",
"updateAvailableDesc": "Er is een nieuwe versie beschikbaar. Klik om bij te werken.",
"updateStarted": "Update gestart..."
},
"analytics": {
"title": "Analyses",
@@ -535,6 +617,9 @@
"title": "Modelconfiguratie toevoegen",
"desc": "Voeg de volgende configuratie toe aan uw modellenarray:"
}
},
"notes": {
"0": "Doorgaan gebruikt het JSON-configuratiebestand."
}
},
"opencode": {
@@ -553,6 +638,10 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "OpenCode vereist API-sleutelconfiguratie.",
"1": "Stel de basis-URL in op uw OmniRoute-eindpunt."
}
},
"kiro": {
@@ -571,6 +660,9 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "Voor Kiro is een Amazon-account vereist."
}
}
},
@@ -1314,6 +1406,10 @@
"chatCompletions": "Chat-voltooiingen",
"importingModels": "Importeren...",
"importFromModels": "Importeren uit /modellen",
"clearAllModels": "Alle modellen wissen",
"clearAllModelsConfirm": "Weet je zeker dat je alle modellen voor deze provider wilt verwijderen? Dit kan niet ongedaan worden gemaakt.",
"clearAllModelsSuccess": "Alle modellen gewist",
"clearAllModelsFailed": "Kon modellen niet wissen",
"addConnectionToImport": "Voeg een verbinding toe om importeren mogelijk te maken.",
"noModelsConfigured": "Geen modellen geconfigureerd",
"connectionCount": "{count} verbinding(en)",
@@ -1477,7 +1573,16 @@
"compatUpstreamHeaderValue": "Value",
"compatUpstreamHeadersHint": "High-privilege setting — same trust level as editing provider API credentials; only trusted admins should use it. Merged after OmniRoute adds auth from the provider API key. If a custom header uses the same name as an existing one (e.g. Authorization), your value fully replaces the auto-generated header (including the Bearer token) — the upstream only sees what you typed, not the key from settings. Misconfiguration can cause 401 or broken upstream auth. One row per header (e.g. extra Authentication for some gateways). Hover or focus the value to preview. Saves on blur, outside click, or closing this panel.",
"compatUpstreamHeadersLabel": "Extra upstream headers",
"compatUpstreamRemoveRow": "Remove row"
"compatUpstreamRemoveRow": "Remove row",
"autoSync": "Automatische synchronisatie",
"autoSyncTooltip": "Modellijst automatisch elke 24 uur vernieuwen (configureerbaar via MODEL_SYNC_INTERVAL_HOURS)",
"autoSyncEnabled": "Automatische synchronisatie ingeschakeld: modellen worden periodiek vernieuwd",
"autoSyncDisabled": "Automatische synchronisatie uitgeschakeld",
"autoSyncToggleFailed": "Kan automatische synchronisatie niet in- of uitschakelen",
"clearAllModels": "Wis alle modellen",
"clearAllModelsConfirm": "Weet u zeker dat u alle modellen voor deze aanbieder wilt verwijderen? Dit kan niet ongedaan worden gemaakt.",
"clearAllModelsSuccess": "Alle modellen gewist",
"clearAllModelsFailed": "Kan modellen niet wissen"
},
"settings": {
"title": "Instellingen",
@@ -2304,7 +2409,15 @@
"restartServerWithNewPassword": "Start de server opnieuw op. Deze gebruikt het nieuwe wachtwoord",
"backToLogin": "Terug naar Inloggen",
"forgotPassword": "Wachtwoord vergeten?",
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)"
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)",
"Authorization": "Autorisatie",
"Content-Disposition": "Inhoud-dispositie",
"waitingForAuthorization": "Wachten op toestemming...",
"waitingForGoogleAuthorization": "Wachten op Google-autorisatie...",
"waitingForOpenAIAuthorization": "Wachten op OpenAI-autorisatie...",
"waitingForAntigravityAuthorization": "Wachten op toestemming voor anti-zwaartekracht...",
"waitingForIFlowAuthorization": "Wachten op iFlow-autorisatie...",
"exchangingCodeForTokens": "Code uitwisselen voor tokens..."
},
"landing": {
"brandName": "OmniRoute",
@@ -2511,7 +2624,9 @@
"mgmtProxiesBulkAssignNote": "Assign or clear one proxy across many scope IDs in one request.",
"mgmtAssignmentsListNote": "List proxy assignments by scope, scope_id, or proxy_id.",
"mgmtAssignmentsUpdateNote": "Assign or clear proxy for global/provider/account/combo scope.",
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments."
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments.",
"endpointSpeechNote": "Tekst-naar-spraakgeneratie (ElevenLabs, OpenAI TTS).",
"endpointEmbeddingsNote": "Genereren van tekstinsluiting (OpenAI, Cohere, Voyage)."
},
"legal": {
"privacyPolicy": "Privacybeleid",
@@ -2689,5 +2804,48 @@
"domainPlaceholder": "example.com",
"requestTimedOut": "Request timed out ({seconds}s)",
"networkError": "Network error"
},
"templateNames": {
"simple-chat": "Eenvoudig chatten",
"streaming": "Streamen",
"system-prompt": "Systeemprompt",
"thinking": "Denken",
"tool-calling": "Gereedschap bellen",
"multi-turn": "Multi-turn"
},
"templateDescriptions": {
"simple-chat": "Basischatsjabloon met systeembericht",
"streaming": "Sjabloon voor het streamen van antwoorden",
"system-prompt": "Sjabloon met aangepaste systeemprompt",
"thinking": "Sjabloon met redeneer-/denkbudget",
"tool-calling": "Sjabloon voor het oproepen van gereedschap/functies",
"multi-turn": "Sjabloon voor gesprekken met meerdere beurten"
},
"templatePayloads": {
"simpleChat": {
"system": "Je bent een behulpzame AI-assistent.",
"userGreeting": "Hallo! Hoe kan ik je vandaag helpen?"
},
"streaming": {
"prompt": "Schrijf een verhaal over"
},
"systemPrompt": {
"question": "Wat is de zin van het leven?",
"systemInstruction": "Geef een doordacht, filosofisch antwoord."
},
"thinking": {
"question": "Kwantumcomputers uitleggen"
},
"toolCalling": {
"cityNameDescription": "De naam van de stad waarvoor u het weer wilt ophalen",
"toolDescription": "Ontvang het huidige weer voor een locatie",
"userWeather": "Hoe is het weer in Tokio?"
},
"multiTurn": {
"system": "Je bent een behulpzame assistent.",
"assistantExample": "Ik help je daar graag mee.",
"userInitial": "Ik heb hulp nodig bij",
"userFollowUp": "Kunt u dat nader toelichten?"
}
}
}
+163 -5
View File
@@ -58,7 +58,85 @@
"free": "Gratis",
"skipToContent": "Gå til innhold",
"maintenanceServerIssues": "Server is experiencing issues. Some features may be unavailable.",
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting..."
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting...",
"accept": "Godta",
"accountId": "Konto-ID",
"alias": "Alias",
"apiKeyId": "API-nøkkel-ID",
"apiKeyName": "API-nøkkelnavn",
"apiKeySecret": "API-nøkkelhemmelighet",
"authorization": "Autorisasjon",
"content-type": "Innholdstype",
"content-length": "Innholdslengde",
"cookie": "Cookie",
"file": "Fil",
"host": "Vert",
"id": "ID",
"import": "Importer",
"limit": "Begrens",
"offset": "Offset",
"open": "Åpne",
"origin": "Opprinnelse",
"promptTokens": "Spør Tokens",
"completionTokens": "Fullføringssymboler",
"totalTokens": "Totalt tokens",
"rawModel": "Rå modell",
"scope": "Omfang",
"skill": "Ferdighet",
"sortBy": "Sorter etter",
"sortOrder": "Sorteringsrekkefølge",
"tab": "Tab",
"text": "Tekst",
"textarea": "Tekstområde",
"tool": "Verktøy",
"toolId": "Verktøy-ID",
"web": "Web",
"whereUsed": "Hvor det brukes",
"whitelist": "Hviteliste",
"blacklist": "Svarteliste",
"resolve": "Løs",
"force": "Kraft",
"base64url": "Base64 URL",
"hex": "Hex",
"range": "Rekkevidde",
"component": "Komponent",
"redirect_uri": "Omdiriger URI",
"idempotency-key": "Idempotensnøkkel",
"error_description": "Feilbeskrivelse",
"code": "Kode",
"compatible": "Kompatibel",
"chat-completions": "Chatfullføringer",
"oauth": "OAuth",
"auth_token": "Auth Token",
"crypto": "Krypto",
"hours": "Timer",
"selfsigned": "Selvsignert",
"proxy_id": "Proxy ID",
"proxyId": "Proxy ID",
"connectionId": "Tilkoblings-ID",
"resolveConnectionId": "Løs tilkoblings-ID",
"resolve_connection_id": "Løs tilkoblings-ID",
"scope_id": "Omfang ID",
"scopeId": "Omfang ID",
"jwtSecret": "JWT-hemmelighet",
"keytar": "Keytar",
"better-sqlite3": "bedre-sqlite3",
"undici": "undici",
"builder-id": "Byggherre-ID",
"musicDesc": "Musikkbeskrivelse",
"musicGeneration": "Musikkgenerasjon",
"idc": "IDC",
"cloud-status-changed": "Skystatus endret",
"where_used": "Hvor det brukes",
"windowMs": "Vindu (ms)",
"social-github": "GitHub",
"social-google": "Google",
"TOOL_ALLOWLIST": "Verktøytillatelsesliste",
"TOOL_DENYLIST": "Verktøyfornektelsesliste",
"Failed to save pricing": "Kunne ikke lagre prisen",
"Failed to reset pricing": "Kunne ikke tilbakestille priser",
"apikey": "API-nøkkel",
"http": "HTTP"
},
"sidebar": {
"home": "Hjem",
@@ -179,7 +257,11 @@
"requestsShort": "{count} req",
"providerModelsTitle": "{provider} - Modeller",
"copiedModel": "Kopiert: {model}",
"aliasLabel": "alias"
"aliasLabel": "alias",
"updateNow": "Oppdater nå",
"updating": "Oppdaterer...",
"updateAvailableDesc": "En ny versjon er tilgjengelig. Klikk for å oppdatere.",
"updateStarted": "Oppdatering startet..."
},
"analytics": {
"title": "Analytics",
@@ -535,6 +617,9 @@
"title": "Legg til modellkonfig",
"desc": "Legg til følgende konfigurasjon til modellarrayet ditt:"
}
},
"notes": {
"0": "Continue bruker JSON-konfigurasjonsfilen."
}
},
"opencode": {
@@ -553,6 +638,10 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "OpenCode krever API-nøkkelkonfigurasjon.",
"1": "Angi basis-URL til OmniRoute-endepunktet."
}
},
"kiro": {
@@ -571,6 +660,9 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "Kiro krever Amazon-konto."
}
}
},
@@ -1314,6 +1406,10 @@
"chatCompletions": "Chatfullføringer",
"importingModels": "Importerer...",
"importFromModels": "Importer fra /models",
"clearAllModels": "Slett alle modeller",
"clearAllModelsConfirm": "Er du sikker på at du vil fjerne alle modeller for denne leverandøren? Dette kan ikke angres.",
"clearAllModelsSuccess": "Alle modeller slettet",
"clearAllModelsFailed": "Kunne ikke slette modeller",
"addConnectionToImport": "Legg til en tilkobling for å aktivere import.",
"noModelsConfigured": "Ingen modeller er konfigurert",
"connectionCount": "{count} tilkobling(er)",
@@ -1477,7 +1573,16 @@
"compatUpstreamHeaderValue": "Value",
"compatUpstreamHeadersHint": "High-privilege setting — same trust level as editing provider API credentials; only trusted admins should use it. Merged after OmniRoute adds auth from the provider API key. If a custom header uses the same name as an existing one (e.g. Authorization), your value fully replaces the auto-generated header (including the Bearer token) — the upstream only sees what you typed, not the key from settings. Misconfiguration can cause 401 or broken upstream auth. One row per header (e.g. extra Authentication for some gateways). Hover or focus the value to preview. Saves on blur, outside click, or closing this panel.",
"compatUpstreamHeadersLabel": "Extra upstream headers",
"compatUpstreamRemoveRow": "Remove row"
"compatUpstreamRemoveRow": "Remove row",
"autoSync": "Auto-synkronisering",
"autoSyncTooltip": "Oppdater modelllisten automatisk hver 24. time (kan konfigureres via MODEL_SYNC_INTERVAL_HOURS)",
"autoSyncEnabled": "Automatisk synkronisering aktivert modellene oppdateres med jevne mellomrom",
"autoSyncDisabled": "Automatisk synkronisering er deaktivert",
"autoSyncToggleFailed": "Kunne ikke slå på automatisk synkronisering",
"clearAllModels": "Fjern alle modeller",
"clearAllModelsConfirm": "Er du sikker på at du vil fjerne alle modellene for denne leverandøren? Dette kan ikke angres.",
"clearAllModelsSuccess": "Alle modeller ryddet",
"clearAllModelsFailed": "Kunne ikke slette modeller"
},
"settings": {
"title": "Innstillinger",
@@ -2304,7 +2409,15 @@
"restartServerWithNewPassword": "Start serveren på nytt - den vil bruke det nye passordet",
"backToLogin": "Tilbake til pålogging",
"forgotPassword": "Glemt passord?",
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)"
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)",
"Authorization": "Autorisasjon",
"Content-Disposition": "Innhold-Disposisjon",
"waitingForAuthorization": "Venter på autorisasjon...",
"waitingForGoogleAuthorization": "Venter på Google-autorisasjon...",
"waitingForOpenAIAuthorization": "Venter på OpenAI-godkjenning...",
"waitingForAntigravityAuthorization": "Venter på antigravity-autorisasjon...",
"waitingForIFlowAuthorization": "Venter på iFlow-autorisasjon...",
"exchangingCodeForTokens": "Utveksler kode for tokens..."
},
"landing": {
"brandName": "OmniRoute",
@@ -2511,7 +2624,9 @@
"mgmtProxiesBulkAssignNote": "Assign or clear one proxy across many scope IDs in one request.",
"mgmtAssignmentsListNote": "List proxy assignments by scope, scope_id, or proxy_id.",
"mgmtAssignmentsUpdateNote": "Assign or clear proxy for global/provider/account/combo scope.",
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments."
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments.",
"endpointSpeechNote": "Tekst-til-tale generering (ElevenLabs, OpenAI TTS).",
"endpointEmbeddingsNote": "Generering av tekstinnbygging (OpenAI, Cohere, Voyage)."
},
"legal": {
"privacyPolicy": "Personvernerklæring",
@@ -2689,5 +2804,48 @@
"domainPlaceholder": "example.com",
"requestTimedOut": "Request timed out ({seconds}s)",
"networkError": "Network error"
},
"templateNames": {
"simple-chat": "Enkel chat",
"streaming": "Streaming",
"system-prompt": "Systemmelding",
"thinking": "Tenker",
"tool-calling": "Verktøyanrop",
"multi-turn": "Multisving"
},
"templateDescriptions": {
"simple-chat": "Grunnleggende chatmal med systemmelding",
"streaming": "Mal for strømmesvar",
"system-prompt": "Mal med tilpasset systemforespørsel",
"thinking": "Mal med resonnement/tenkebudsjett",
"tool-calling": "Mal for verktøy/funksjonskall",
"multi-turn": "Mal for samtaler med flere svinger"
},
"templatePayloads": {
"simpleChat": {
"system": "Du er en hjelpsom AI-assistent.",
"userGreeting": "Hei! Hvordan kan jeg hjelpe deg i dag?"
},
"streaming": {
"prompt": "Skriv en historie om"
},
"systemPrompt": {
"question": "Hva er meningen med livet?",
"systemInstruction": "Gi et gjennomtenkt, filosofisk svar."
},
"thinking": {
"question": "Forklar kvanteberegning"
},
"toolCalling": {
"cityNameDescription": "Navnet på byen å få vær for",
"toolDescription": "Få gjeldende vær for et sted",
"userWeather": "Hvordan er været i Tokyo?"
},
"multiTurn": {
"system": "Du er en hjelpsom assistent.",
"assistantExample": "Jeg hjelper deg gjerne med det.",
"userInitial": "Jeg trenger hjelp med",
"userFollowUp": "Kan du utdype det?"
}
}
}
+163 -5
View File
@@ -58,7 +58,85 @@
"free": "Libre",
"skipToContent": "Lumaktaw sa nilalaman",
"maintenanceServerIssues": "Server is experiencing issues. Some features may be unavailable.",
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting..."
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting...",
"accept": "Tanggapin",
"accountId": "Account ID",
"alias": "alyas",
"apiKeyId": "API Key ID",
"apiKeyName": "Pangalan ng API Key",
"apiKeySecret": "Lihim ng Key ng API",
"authorization": "Awtorisasyon",
"content-type": "Uri ng Nilalaman",
"content-length": "Haba ng Nilalaman",
"cookie": "Cookie",
"file": "file",
"host": "Host",
"id": "ID",
"import": "Mag-import",
"limit": "Limitahan",
"offset": "Offset",
"open": "Bukas",
"origin": "Pinagmulan",
"promptTokens": "Mga Prompt Token",
"completionTokens": "Mga Token ng Pagkumpleto",
"totalTokens": "Kabuuang Token",
"rawModel": "Hilaw na Modelo",
"scope": "Saklaw",
"skill": "Kasanayan",
"sortBy": "Pagbukud-bukurin Ayon",
"sortOrder": "Pagbukud-bukurin",
"tab": "Tab",
"text": "Text",
"textarea": "Textarea",
"tool": "Tool",
"toolId": "Tool ID",
"web": "Web",
"whereUsed": "Kung Saan Ginamit",
"whitelist": "Whitelist",
"blacklist": "Blacklist",
"resolve": "Lutasin",
"force": "Puwersa",
"base64url": "Base64 URL",
"hex": "Hex",
"range": "Saklaw",
"component": "Component",
"redirect_uri": "I-redirect ang URI",
"idempotency-key": "Idepotency Key",
"error_description": "Paglalarawan ng Error",
"code": "Code",
"compatible": "Magkatugma",
"chat-completions": "Mga Pagkumpleto ng Chat",
"oauth": "OAuth",
"auth_token": "Auth Token",
"crypto": "Crypto",
"hours": "Oras",
"selfsigned": "Self-signed",
"proxy_id": "Proxy ID",
"proxyId": "Proxy ID",
"connectionId": "ID ng Koneksyon",
"resolveConnectionId": "Lutasin ang Connection ID",
"resolve_connection_id": "Lutasin ang Connection ID",
"scope_id": "ID ng Saklaw",
"scopeId": "ID ng Saklaw",
"jwtSecret": "Sikreto ng JWT",
"keytar": "Keytar",
"better-sqlite3": "mas mahusay-sqlite3",
"undici": "undici",
"builder-id": "ID ng Tagabuo",
"musicDesc": "Paglalarawan ng Musika",
"musicGeneration": "Pagbuo ng Musika",
"idc": "IDC",
"cloud-status-changed": "Nagbago ang status ng cloud",
"where_used": "Kung Saan Ginamit",
"windowMs": "Window (ms)",
"social-github": "GitHub",
"social-google": "Google",
"TOOL_ALLOWLIST": "Tool Allowlist",
"TOOL_DENYLIST": "Tool Denylist",
"Failed to save pricing": "Nabigong i-save ang pagpepresyo",
"Failed to reset pricing": "Nabigong i-reset ang pagpepresyo",
"apikey": "API Key",
"http": "HTTP"
},
"sidebar": {
"home": "Bahay",
@@ -179,7 +257,11 @@
"requestsShort": "{count} mga kahilingan",
"providerModelsTitle": "{provider} - Mga Modelo",
"copiedModel": "Nakopya: {model}",
"aliasLabel": "alyas"
"aliasLabel": "alyas",
"updateNow": "Update Ngayon",
"updating": "Ina-update...",
"updateAvailableDesc": "Available ang isang bagong bersyon. I-click para mag-update.",
"updateStarted": "Nagsimula ang pag-update..."
},
"analytics": {
"title": "Analytics",
@@ -535,6 +617,9 @@
"title": "Magdagdag ng Model Config",
"desc": "Idagdag ang sumusunod na configuration sa iyong array ng mga modelo:"
}
},
"notes": {
"0": "Magpatuloy ay gumagamit ng JSON config file."
}
},
"opencode": {
@@ -553,6 +638,10 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "Nangangailangan ang OpenCode ng configuration ng API key.",
"1": "Itakda ang base URL sa iyong OmniRoute endpoint."
}
},
"kiro": {
@@ -571,6 +660,9 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "Ang Kiro ay nangangailangan ng Amazon account."
}
}
},
@@ -1314,6 +1406,10 @@
"chatCompletions": "Mga Pagkumpleto ng Chat",
"importingModels": "Ini-import...",
"importFromModels": "Mag-import mula sa /models",
"clearAllModels": "Burahin Lahat ng Modelo",
"clearAllModelsConfirm": "Sigurado ka bang gusto mong alisin lahat ng modelo para sa provider na ito? Hindi na ito mababawi.",
"clearAllModelsSuccess": "Lahat ng modelo ay nabura",
"clearAllModelsFailed": "Nabigong burahin ang mga modelo",
"addConnectionToImport": "Magdagdag ng koneksyon upang paganahin ang pag-import.",
"noModelsConfigured": "Walang mga modelong na-configure",
"connectionCount": "{count} (mga) koneksyon",
@@ -1477,7 +1573,16 @@
"compatUpstreamHeaderValue": "Value",
"compatUpstreamHeadersHint": "High-privilege setting — same trust level as editing provider API credentials; only trusted admins should use it. Merged after OmniRoute adds auth from the provider API key. If a custom header uses the same name as an existing one (e.g. Authorization), your value fully replaces the auto-generated header (including the Bearer token) — the upstream only sees what you typed, not the key from settings. Misconfiguration can cause 401 or broken upstream auth. One row per header (e.g. extra Authentication for some gateways). Hover or focus the value to preview. Saves on blur, outside click, or closing this panel.",
"compatUpstreamHeadersLabel": "Extra upstream headers",
"compatUpstreamRemoveRow": "Remove row"
"compatUpstreamRemoveRow": "Remove row",
"autoSync": "Auto-Sync",
"autoSyncTooltip": "Awtomatikong i-refresh ang listahan ng modelo tuwing 24h (mako-configure sa pamamagitan ng MODEL_SYNC_INTERVAL_HOURS)",
"autoSyncEnabled": "Pinagana ang auto-sync — pana-panahong magre-refresh ang mga modelo",
"autoSyncDisabled": "Na-disable ang auto-sync",
"autoSyncToggleFailed": "Nabigong i-toggle ang auto-sync",
"clearAllModels": "I-clear ang Lahat ng Modelo",
"clearAllModelsConfirm": "Sigurado ka bang gusto mong alisin ang lahat ng modelo para sa provider na ito? Hindi na ito maaaring bawiin.",
"clearAllModelsSuccess": "Na-clear ang lahat ng mga modelo",
"clearAllModelsFailed": "Nabigong i-clear ang mga modelo"
},
"settings": {
"title": "Mga setting",
@@ -2304,7 +2409,15 @@
"restartServerWithNewPassword": "I-restart ang server - gagamitin nito ang bagong password",
"backToLogin": "Bumalik sa Login",
"forgotPassword": "Nakalimutan ang password?",
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)"
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)",
"Authorization": "Awtorisasyon",
"Content-Disposition": "Nilalaman-Disposisyon",
"waitingForAuthorization": "Naghihintay ng awtorisasyon...",
"waitingForGoogleAuthorization": "Naghihintay ng pahintulot ng Google...",
"waitingForOpenAIAuthorization": "Naghihintay ng awtorisasyon sa OpenAI...",
"waitingForAntigravityAuthorization": "Naghihintay ng awtorisasyon sa Antigravity...",
"waitingForIFlowAuthorization": "Naghihintay ng awtorisasyon ng iFlow...",
"exchangingCodeForTokens": "Pagpapalit ng code para sa mga token..."
},
"landing": {
"brandName": "OmniRoute",
@@ -2511,7 +2624,9 @@
"mgmtProxiesBulkAssignNote": "Assign or clear one proxy across many scope IDs in one request.",
"mgmtAssignmentsListNote": "List proxy assignments by scope, scope_id, or proxy_id.",
"mgmtAssignmentsUpdateNote": "Assign or clear proxy for global/provider/account/combo scope.",
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments."
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments.",
"endpointSpeechNote": "Pagbuo ng text-to-speech (ElevenLabs, OpenAI TTS).",
"endpointEmbeddingsNote": "Pagbuo ng text embed (OpenAI, Cohere, Voyage)."
},
"legal": {
"privacyPolicy": "Patakaran sa Privacy",
@@ -2689,5 +2804,48 @@
"domainPlaceholder": "example.com",
"requestTimedOut": "Request timed out ({seconds}s)",
"networkError": "Network error"
},
"templateNames": {
"simple-chat": "Simpleng Chat",
"streaming": "Streaming",
"system-prompt": "System Prompt",
"thinking": "Nag-iisip",
"tool-calling": "Tool Calling",
"multi-turn": "Multi-turn"
},
"templateDescriptions": {
"simple-chat": "Pangunahing template ng chat na may mensahe ng system",
"streaming": "Template para sa streaming na mga tugon",
"system-prompt": "Template na may pasadyang system prompt",
"thinking": "Template na may pangangatwiran/pag-iisip na badyet",
"tool-calling": "Template para sa tool/function na pagtawag",
"multi-turn": "Template para sa mga multi-turn na pag-uusap"
},
"templatePayloads": {
"simpleChat": {
"system": "Isa kang matulunging AI assistant.",
"userGreeting": "Hello! Paano kita matutulungan ngayon?"
},
"streaming": {
"prompt": "Sumulat ng isang kuwento tungkol sa"
},
"systemPrompt": {
"question": "Ano ang kahulugan ng buhay?",
"systemInstruction": "Magbigay ng maalalahanin, pilosopong sagot."
},
"thinking": {
"question": "Ipaliwanag ang quantum computing"
},
"toolCalling": {
"cityNameDescription": "Ang pangalan ng lungsod upang makakuha ng panahon para sa",
"toolDescription": "Kunin ang kasalukuyang panahon para sa isang lokasyon",
"userWeather": "Ano ang lagay ng panahon sa Tokyo?"
},
"multiTurn": {
"system": "Isa kang matulunging katulong.",
"assistantExample": "Ikalulugod kong tulungan ka niyan.",
"userInitial": "Kailangan ko ng tulong sa",
"userFollowUp": "Maaari mo bang ipaliwanag iyon?"
}
}
}
+43 -2
View File
@@ -128,7 +128,15 @@
"idc": "idc",
"cloud-status-changed": "cloud-status-changed",
"where_used": "where_used",
"windowMs": "windowMs"
"windowMs": "windowMs",
"social-github": "GitHub",
"social-google": "Google'a",
"TOOL_ALLOWLIST": "Lista dozwolonych narzędzi",
"TOOL_DENYLIST": "Lista odrzuconych narzędzi",
"Failed to save pricing": "Nie udało się zapisać cen",
"Failed to reset pricing": "Nie udało się zresetować cen",
"apikey": "Klucz API",
"http": "HTTP"
},
"sidebar": {
"home": "Dom",
@@ -1398,6 +1406,10 @@
"chatCompletions": "Zakończenia czatu",
"importingModels": "Importowanie...",
"importFromModels": "Importuj z /modele",
"clearAllModels": "Wyczyść wszystkie modele",
"clearAllModelsConfirm": "Czy na pewno chcesz usunąć wszystkie modele dla tego dostawcy? Tej operacji nie można cofnąć.",
"clearAllModelsSuccess": "Wszystkie modele wyczyszczone",
"clearAllModelsFailed": "Nie udało się wyczyścić modeli",
"addConnectionToImport": "Dodaj połączenie, aby umożliwić importowanie.",
"noModelsConfigured": "Nie skonfigurowano żadnych modeli",
"connectionCount": "{count} połączenia",
@@ -2403,7 +2415,9 @@
"waitingForOpenAIAuthorization": "Waiting for OpenAI authorization...",
"waitingForAntigravityAuthorization": "Waiting for Antigravity authorization...",
"waitingForIFlowAuthorization": "Waiting for iFlow authorization...",
"exchangingCodeForTokens": "Exchanging code for tokens..."
"exchangingCodeForTokens": "Exchanging code for tokens...",
"Authorization": "Autoryzacja",
"Content-Disposition": "Dyspozycja treści"
},
"landing": {
"brandName": "OmniRoute",
@@ -2806,5 +2820,32 @@
"thinking": "Thinking template",
"tool-calling": "Tool calling template",
"multi-turn": "Multi-turn template"
},
"templatePayloads": {
"simpleChat": {
"system": "Jesteś pomocnym asystentem AI.",
"userGreeting": "Witam! Jak mogę Ci dzisiaj pomóc?"
},
"streaming": {
"prompt": "Napisz opowiadanie o"
},
"systemPrompt": {
"question": "Jaki jest sens życia?",
"systemInstruction": "Podaj przemyślaną, filozoficzną odpowiedź."
},
"thinking": {
"question": "Wyjaśnij obliczenia kwantowe"
},
"toolCalling": {
"cityNameDescription": "Nazwa miasta, dla którego chcesz uzyskać pogodę",
"toolDescription": "Uzyskaj aktualną pogodę dla danej lokalizacji",
"userWeather": "Jaka jest pogoda w Tokio?"
},
"multiTurn": {
"system": "Jesteś pomocnym asystentem.",
"assistantExample": "Chętnie Ci w tym pomogę.",
"userInitial": "Potrzebuję pomocy",
"userFollowUp": "Możesz to rozwinąć?"
}
}
}
+169 -5
View File
@@ -58,7 +58,85 @@
"free": "Gratuito",
"skipToContent": "Pular para conteúdo",
"maintenanceServerIssues": "Server is experiencing issues. Some features may be unavailable.",
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting..."
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting...",
"accept": "Aceitar",
"accountId": "ID da conta",
"alias": "Alias",
"apiKeyId": "ID da chave de API",
"apiKeyName": "Nome da chave de API",
"apiKeySecret": "Segredo da chave API",
"authorization": "Autorização",
"content-type": "Tipo de conteúdo",
"content-length": "Comprimento do conteúdo",
"cookie": "Biscoito",
"file": "Arquivo",
"host": "Anfitrião",
"id": "ID",
"import": "Importar",
"limit": "Limite",
"offset": "Deslocamento",
"open": "Abrir",
"origin": "Origem",
"promptTokens": "Tokens de prompt",
"completionTokens": "Tokens de conclusão",
"totalTokens": "Total de fichas",
"rawModel": "Modelo Bruto",
"scope": "Escopo",
"skill": "Habilidade",
"sortBy": "Classificar por",
"sortOrder": "Ordem de classificação",
"tab": "Guia",
"text": "Texto",
"textarea": "Área de texto",
"tool": "Ferramenta",
"toolId": "ID da ferramenta",
"web": "Rede",
"whereUsed": "Onde usado",
"whitelist": "Lista de permissões",
"blacklist": "Lista negra",
"resolve": "Resolver",
"force": "Força",
"base64url": "URL Base64",
"hex": "Feitiço",
"range": "Alcance",
"component": "Componente",
"redirect_uri": "Redirecionar URI",
"idempotency-key": "Chave de Idempotência",
"error_description": "Descrição do erro",
"code": "Código",
"compatible": "Compatível",
"chat-completions": "Conclusões de bate-papo",
"oauth": "OAuth",
"auth_token": "Token de autenticação",
"crypto": "Criptografia",
"hours": "Horas",
"selfsigned": "Autoassinado",
"proxy_id": "ID do proxy",
"proxyId": "ID do proxy",
"connectionId": "ID de conexão",
"resolveConnectionId": "Resolver ID de conexão",
"resolve_connection_id": "Resolver ID de conexão",
"scope_id": "ID do escopo",
"scopeId": "ID do escopo",
"jwtSecret": "Segredo JWT",
"keytar": "Keytar",
"better-sqlite3": "melhor-sqlite3",
"undici": "unici",
"builder-id": "ID do construtor",
"musicDesc": "Descrição da música",
"musicGeneration": "Geração Musical",
"idc": "CDI",
"cloud-status-changed": "Status da nuvem alterado",
"where_used": "Onde usado",
"windowMs": "Janela (ms)",
"social-github": "GitHub",
"social-google": "Google",
"TOOL_ALLOWLIST": "Lista de permissões de ferramentas",
"TOOL_DENYLIST": "Lista de bloqueios de ferramentas",
"Failed to save pricing": "Falha ao salvar o preço",
"Failed to reset pricing": "Falha ao redefinir o preço",
"apikey": "Chave de API",
"http": "HTTP"
},
"sidebar": {
"home": "Início",
@@ -179,7 +257,11 @@
"requestsShort": "{count} reqs",
"providerModelsTitle": "{provider} - Modelos",
"copiedModel": "Copiado: {model}",
"aliasLabel": "alias"
"aliasLabel": "alias",
"updateNow": "Atualizar agora",
"updating": "Atualizando...",
"updateAvailableDesc": "Uma nova versão está disponível. Clique para atualizar.",
"updateStarted": "Atualização iniciada..."
},
"analytics": {
"title": "Análises",
@@ -535,6 +617,9 @@
"title": "Adicionar Config de Modelo",
"desc": "Adicione a configuração abaixo ao array de modelos:"
}
},
"notes": {
"0": "Continuar usa o arquivo de configuração JSON."
}
},
"opencode": {
@@ -553,6 +638,10 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "OpenCode requer configuração de chave API.",
"1": "Configure a URL base para seu endpoint do OmniRoute."
}
},
"kiro": {
@@ -571,6 +660,9 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "Kiro requer uma conta Amazon."
}
}
},
@@ -1326,6 +1418,10 @@
"chatCompletions": "Chat Completions",
"importingModels": "Importando...",
"importFromModels": "Importar de /models",
"clearAllModels": "Limpar Todos os Modelos",
"clearAllModelsConfirm": "Tem certeza de que deseja remover todos os modelos deste provedor? Esta ação não pode ser desfeita.",
"clearAllModelsSuccess": "Todos os modelos foram limpos",
"clearAllModelsFailed": "Falha ao limpar os modelos",
"addConnectionToImport": "Adicione uma conexão para habilitar importação.",
"noModelsConfigured": "Nenhum modelo configurado",
"connectionCount": "{count} conexão(ões)",
@@ -1483,13 +1579,28 @@
"compatProtocolClaude": "Anthropic Messages",
"tokenRefreshed": "Token refreshed successfully",
"tokenRefreshFailed": "Token refresh failed",
"applyCodexAuthLocal": "Aplicar auth",
"exportCodexAuthFile": "Exportar auth",
"codexAuthAppliedLocal": "auth.json do Codex aplicado localmente",
"codexAuthApplyFailed": "Falha ao aplicar o auth.json do Codex localmente",
"codexAuthExported": "auth.json do Codex exportado",
"codexAuthExportFailed": "Falha ao exportar o auth.json do Codex",
"compatBadgeUpstreamHeaders": "Headers",
"compatUpstreamAddRow": "Add header",
"compatUpstreamHeaderName": "Header name",
"compatUpstreamHeaderValue": "Value",
"compatUpstreamHeadersHint": "High-privilege setting — same trust level as editing provider API credentials; only trusted admins should use it. Merged after OmniRoute adds auth from the provider API key. If a custom header uses the same name as an existing one (e.g. Authorization), your value fully replaces the auto-generated header (including the Bearer token) — the upstream only sees what you typed, not the key from settings. Misconfiguration can cause 401 or broken upstream auth. One row per header (e.g. extra Authentication for some gateways). Hover or focus the value to preview. Saves on blur, outside click, or closing this panel.",
"compatUpstreamHeadersLabel": "Extra upstream headers",
"compatUpstreamRemoveRow": "Remove row"
"compatUpstreamRemoveRow": "Remove row",
"autoSync": "Sincronização automática",
"autoSyncTooltip": "Atualize automaticamente a lista de modelos a cada 24h (configurável via MODEL_SYNC_INTERVAL_HOURS)",
"autoSyncEnabled": "Sincronização automática habilitada os modelos serão atualizados periodicamente",
"autoSyncDisabled": "Sincronização automática desativada",
"autoSyncToggleFailed": "Falha ao alternar a sincronização automática",
"clearAllModels": "Limpar todos os modelos",
"clearAllModelsConfirm": "Tem certeza de que deseja remover todos os modelos deste provedor? Isto não pode ser desfeito.",
"clearAllModelsSuccess": "Todos os modelos foram apagados",
"clearAllModelsFailed": "Falha ao limpar modelos"
},
"settings": {
"title": "Configurações",
@@ -2316,7 +2427,15 @@
"restartServerWithNewPassword": "Reinicie o servidor - ele usará a nova senha",
"backToLogin": "Voltar para o Login",
"forgotPassword": "Esqueceu a senha?",
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)"
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)",
"Authorization": "Autorização",
"Content-Disposition": "Disposição de conteúdo",
"waitingForAuthorization": "Aguardando autorização...",
"waitingForGoogleAuthorization": "Aguardando autorização do Google...",
"waitingForOpenAIAuthorization": "Aguardando autorização do OpenAI...",
"waitingForAntigravityAuthorization": "Aguardando autorização antigravidade...",
"waitingForIFlowAuthorization": "Aguardando autorização do iFlow...",
"exchangingCodeForTokens": "Trocando código por tokens..."
},
"landing": {
"brandName": "OmniRoute",
@@ -2523,7 +2642,9 @@
"mgmtProxiesBulkAssignNote": "Assign or clear one proxy across many scope IDs in one request.",
"mgmtAssignmentsListNote": "List proxy assignments by scope, scope_id, or proxy_id.",
"mgmtAssignmentsUpdateNote": "Assign or clear proxy for global/provider/account/combo scope.",
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments."
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments.",
"endpointSpeechNote": "Geração de texto para fala (ElevenLabs, OpenAI TTS).",
"endpointEmbeddingsNote": "Geração de incorporação de texto (OpenAI, Cohere, Voyage)."
},
"legal": {
"privacyPolicy": "Política de Privacidade",
@@ -2701,5 +2822,48 @@
"domainPlaceholder": "example.com",
"requestTimedOut": "Request timed out ({seconds}s)",
"networkError": "Network error"
},
"templateNames": {
"simple-chat": "Bate-papo simples",
"streaming": "Transmissão",
"system-prompt": "Alerta do sistema",
"thinking": "Pensando",
"tool-calling": "Chamada de ferramenta",
"multi-turn": "Multivoltas"
},
"templateDescriptions": {
"simple-chat": "Modelo básico de chat com mensagem do sistema",
"streaming": "Modelo para streaming de respostas",
"system-prompt": "Modelo com prompt de sistema personalizado",
"thinking": "Modelo com orçamento de raciocínio/pensamento",
"tool-calling": "Modelo para chamada de ferramenta/função",
"multi-turn": "Modelo para conversas múltiplas"
},
"templatePayloads": {
"simpleChat": {
"system": "Você é um assistente de IA útil.",
"userGreeting": "Olá! Como posso ajudá-lo hoje?"
},
"streaming": {
"prompt": "Escreva uma história sobre"
},
"systemPrompt": {
"question": "Qual é o sentido da vida?",
"systemInstruction": "Forneça uma resposta ponderada e filosófica."
},
"thinking": {
"question": "Explique a computação quântica"
},
"toolCalling": {
"cityNameDescription": "O nome da cidade para obter o clima",
"toolDescription": "Obtenha o clima atual para um local",
"userWeather": "Qual é o clima em Tóquio?"
},
"multiTurn": {
"system": "Você é um assistente útil.",
"assistantExample": "Ficarei feliz em ajudá-lo com isso.",
"userInitial": "preciso de ajuda com",
"userFollowUp": "Você pode explicar isso?"
}
}
}
+43 -2
View File
@@ -128,7 +128,15 @@
"idc": "idc",
"cloud-status-changed": "cloud-status-changed",
"where_used": "where_used",
"windowMs": "windowMs"
"windowMs": "windowMs",
"social-github": "GitHub",
"social-google": "Google",
"TOOL_ALLOWLIST": "Lista de permissões de ferramentas",
"TOOL_DENYLIST": "Lista de bloqueios de ferramentas",
"Failed to save pricing": "Falha ao salvar o preço",
"Failed to reset pricing": "Falha ao redefinir o preço",
"apikey": "Chave de API",
"http": "HTTP"
},
"sidebar": {
"home": "Página inicial",
@@ -1410,6 +1418,10 @@
"chatCompletions": "Conclusões de bate-papo",
"importingModels": "Importando...",
"importFromModels": "Importar de /modelos",
"clearAllModels": "Limpar Todos os Modelos",
"clearAllModelsConfirm": "Tem a certeza de que quer remover todos os modelos deste fornecedor? Esta ação não pode ser revertida.",
"clearAllModelsSuccess": "Todos os modelos foram limpos",
"clearAllModelsFailed": "Falha ao limpar os modelos",
"addConnectionToImport": "Adicione uma conexão para permitir a importação.",
"noModelsConfigured": "Nenhum modelo configurado",
"connectionCount": "{count} conexões",
@@ -2415,7 +2427,9 @@
"waitingForOpenAIAuthorization": "Waiting for OpenAI authorization...",
"waitingForAntigravityAuthorization": "Waiting for Antigravity authorization...",
"waitingForIFlowAuthorization": "Waiting for iFlow authorization...",
"exchangingCodeForTokens": "Exchanging code for tokens..."
"exchangingCodeForTokens": "Exchanging code for tokens...",
"Authorization": "Autorização",
"Content-Disposition": "Disposição de conteúdo"
},
"landing": {
"brandName": "OmniRoute",
@@ -2806,5 +2820,32 @@
"thinking": "Thinking template",
"tool-calling": "Tool calling template",
"multi-turn": "Multi-turn template"
},
"templatePayloads": {
"simpleChat": {
"system": "Você é um assistente de IA útil.",
"userGreeting": "Olá! Como posso ajudá-lo hoje?"
},
"streaming": {
"prompt": "Escreva uma história sobre"
},
"systemPrompt": {
"question": "Qual é o sentido da vida?",
"systemInstruction": "Forneça uma resposta ponderada e filosófica."
},
"thinking": {
"question": "Explique a computação quântica"
},
"toolCalling": {
"cityNameDescription": "O nome da cidade para obter o clima",
"toolDescription": "Obtenha o clima atual para um local",
"userWeather": "Qual é o clima em Tóquio?"
},
"multiTurn": {
"system": "Você é um assistente útil.",
"assistantExample": "Ficarei feliz em ajudá-lo com isso.",
"userInitial": "preciso de ajuda com",
"userFollowUp": "Você pode explicar isso?"
}
}
}
+163 -5
View File
@@ -58,7 +58,85 @@
"free": "Gratuit",
"skipToContent": "Treci la conținut",
"maintenanceServerIssues": "Server is experiencing issues. Some features may be unavailable.",
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting..."
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting...",
"accept": "Acceptați",
"accountId": "ID contului",
"alias": "Alias",
"apiKeyId": "ID-ul cheii API",
"apiKeyName": "Nume cheie API",
"apiKeySecret": "Secretul cheii API",
"authorization": "Autorizare",
"content-type": "Tip de conținut",
"content-length": "Lungimea conținutului",
"cookie": "Cookie",
"file": "Fișier",
"host": "Gazdă",
"id": "ID",
"import": "Import",
"limit": "Limită",
"offset": "Offset",
"open": "Deschide",
"origin": "Originea",
"promptTokens": "Jetoane prompte",
"completionTokens": "Jetoane de finalizare",
"totalTokens": "Total de jetoane",
"rawModel": "Model brut",
"scope": "Domeniul de aplicare",
"skill": "Îndemânare",
"sortBy": "Sortare după",
"sortOrder": "Ordine de sortare",
"tab": "Tab",
"text": "Text",
"textarea": "Textarea",
"tool": "Instrument",
"toolId": "ID instrument",
"web": "Web",
"whereUsed": "Unde este folosit",
"whitelist": "Lista albă",
"blacklist": "Lista neagră",
"resolve": "Rezolvați",
"force": "Forța",
"base64url": "URL Base64",
"hex": "Hex",
"range": "Gama",
"component": "Componentă",
"redirect_uri": "URI de redirecționare",
"idempotency-key": "Cheia Idempotnței",
"error_description": "Descrierea erorii",
"code": "Cod",
"compatible": "Compatibil",
"chat-completions": "Finalizări de chat",
"oauth": "OAuth",
"auth_token": "Jeton de autentificare",
"crypto": "Cripto",
"hours": "Ore",
"selfsigned": "Autosemnat",
"proxy_id": "ID proxy",
"proxyId": "ID proxy",
"connectionId": "ID conexiune",
"resolveConnectionId": "Rezolvați ID-ul conexiunii",
"resolve_connection_id": "Rezolvați ID-ul conexiunii",
"scope_id": "ID domeniului",
"scopeId": "ID domeniului",
"jwtSecret": "Secretul JWT",
"keytar": "Keytar",
"better-sqlite3": "mai bine-sqlite3",
"undici": "undici",
"builder-id": "ID constructor",
"musicDesc": "Descrierea muzicii",
"musicGeneration": "Generația muzicală",
"idc": "IDC",
"cloud-status-changed": "Starea cloudului s-a schimbat",
"where_used": "Unde este folosit",
"windowMs": "Fereastra (ms)",
"social-github": "GitHub",
"social-google": "Google",
"TOOL_ALLOWLIST": "Lista de instrumente permise",
"TOOL_DENYLIST": "Lista de refulare a instrumentelor",
"Failed to save pricing": "Nu s-a salvat prețul",
"Failed to reset pricing": "Nu s-a resetat prețul",
"apikey": "Cheia API",
"http": "HTTP"
},
"sidebar": {
"home": "Acasă",
@@ -179,7 +257,11 @@
"requestsShort": "{count} solicită",
"providerModelsTitle": "{provider} - Modele",
"copiedModel": "Copiat: {model}",
"aliasLabel": "alias"
"aliasLabel": "alias",
"updateNow": "Actualizați acum",
"updating": "Se actualizează...",
"updateAvailableDesc": "Este disponibilă o nouă versiune. Faceți clic pentru a actualiza.",
"updateStarted": "Actualizarea a început..."
},
"analytics": {
"title": "Analytics",
@@ -535,6 +617,9 @@
"title": "Adăugați configurația modelului",
"desc": "Adăugați următoarea configurație la matricea dvs. de modele:"
}
},
"notes": {
"0": "Continuați folosește fișierul de configurare JSON."
}
},
"opencode": {
@@ -553,6 +638,10 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "OpenCode necesită configurarea cheii API.",
"1": "Setați adresa URL de bază la punctul final OmniRoute."
}
},
"kiro": {
@@ -571,6 +660,9 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "Kiro necesită un cont Amazon."
}
}
},
@@ -1314,6 +1406,10 @@
"chatCompletions": "Finalizări de chat",
"importingModels": "Se importă...",
"importFromModels": "Import din /modele",
"clearAllModels": "Șterge toate modelele",
"clearAllModelsConfirm": "Ești sigur că vrei să elimini toate modelele pentru acest furnizor? Această acțiune nu poate fi anulată.",
"clearAllModelsSuccess": "Toate modelele au fost șterse",
"clearAllModelsFailed": "Ștergerea modelelor a eșuat",
"addConnectionToImport": "Adăugați o conexiune pentru a activa importul.",
"noModelsConfigured": "Nu au fost configurate modele",
"connectionCount": "{count} conexiuni",
@@ -1477,7 +1573,16 @@
"compatUpstreamHeaderValue": "Value",
"compatUpstreamHeadersHint": "High-privilege setting — same trust level as editing provider API credentials; only trusted admins should use it. Merged after OmniRoute adds auth from the provider API key. If a custom header uses the same name as an existing one (e.g. Authorization), your value fully replaces the auto-generated header (including the Bearer token) — the upstream only sees what you typed, not the key from settings. Misconfiguration can cause 401 or broken upstream auth. One row per header (e.g. extra Authentication for some gateways). Hover or focus the value to preview. Saves on blur, outside click, or closing this panel.",
"compatUpstreamHeadersLabel": "Extra upstream headers",
"compatUpstreamRemoveRow": "Remove row"
"compatUpstreamRemoveRow": "Remove row",
"autoSync": "Sincronizare automată",
"autoSyncTooltip": "Actualizează automat lista de modele la fiecare 24 de ore (configurabil prin MODEL_SYNC_INTERVAL_HOURS)",
"autoSyncEnabled": "Sincronizare automată activată — modelele se vor reîmprospăta periodic",
"autoSyncDisabled": "Sincronizarea automată a fost dezactivată",
"autoSyncToggleFailed": "Nu s-a putut comuta sincronizarea automată",
"clearAllModels": "Ștergeți toate modelele",
"clearAllModelsConfirm": "Sigur doriți să eliminați toate modelele pentru acest furnizor? Acest lucru nu poate fi anulat.",
"clearAllModelsSuccess": "Toate modelele au fost eliminate",
"clearAllModelsFailed": "Nu s-au șters modelele"
},
"settings": {
"title": "Setări",
@@ -2304,7 +2409,15 @@
"restartServerWithNewPassword": "Reporniți serverul - va folosi noua parolă",
"backToLogin": "Înapoi la Logare",
"forgotPassword": "Ai uitat parola?",
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)"
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)",
"Authorization": "Autorizare",
"Content-Disposition": "Conținut-Dispoziție",
"waitingForAuthorization": "Se așteaptă autorizația...",
"waitingForGoogleAuthorization": "Se așteaptă autorizarea Google...",
"waitingForOpenAIAuthorization": "Se așteaptă autorizarea OpenAI...",
"waitingForAntigravityAuthorization": "Se așteaptă autorizația antigravitație...",
"waitingForIFlowAuthorization": "Se așteaptă autorizarea iFlow...",
"exchangingCodeForTokens": "Se schimbă codul pentru jetoane..."
},
"landing": {
"brandName": "OmniRoute",
@@ -2511,7 +2624,9 @@
"mgmtProxiesBulkAssignNote": "Assign or clear one proxy across many scope IDs in one request.",
"mgmtAssignmentsListNote": "List proxy assignments by scope, scope_id, or proxy_id.",
"mgmtAssignmentsUpdateNote": "Assign or clear proxy for global/provider/account/combo scope.",
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments."
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments.",
"endpointSpeechNote": "Generarea text-to-speech (ElevenLabs, OpenAI TTS).",
"endpointEmbeddingsNote": "Generarea de încorporare a textului (OpenAI, Cohere, Voyage)."
},
"legal": {
"privacyPolicy": "Politica de confidențialitate",
@@ -2689,5 +2804,48 @@
"domainPlaceholder": "example.com",
"requestTimedOut": "Request timed out ({seconds}s)",
"networkError": "Network error"
},
"templateNames": {
"simple-chat": "Chat simplu",
"streaming": "Streaming",
"system-prompt": "Prompt de sistem",
"thinking": "Gândirea",
"tool-calling": "Apelarea instrumentului",
"multi-turn": "Multi-turn"
},
"templateDescriptions": {
"simple-chat": "Șablon de chat de bază cu mesaj de sistem",
"streaming": "Șablon pentru răspunsuri în flux",
"system-prompt": "Șablon cu prompt de sistem personalizat",
"thinking": "Șablon cu buget de raționament/gândire",
"tool-calling": "Șablon pentru apelarea instrumentului/funcției",
"multi-turn": "Șablon pentru conversații în mai multe rânduri"
},
"templatePayloads": {
"simpleChat": {
"system": "Sunteți un asistent AI util.",
"userGreeting": "Bună ziua! Cum te pot ajuta azi?"
},
"streaming": {
"prompt": "Scrie o poveste despre"
},
"systemPrompt": {
"question": "Care este sensul vieții?",
"systemInstruction": "Oferă un răspuns gânditor, filozofic."
},
"thinking": {
"question": "Explicați calculul cuantic"
},
"toolCalling": {
"cityNameDescription": "Numele orașului pentru care să aflați vremea",
"toolDescription": "Obțineți vremea actuală pentru o locație",
"userWeather": "Care este vremea în Tokyo?"
},
"multiTurn": {
"system": "Ești un asistent util.",
"assistantExample": "Aș fi bucuros să te ajut cu asta.",
"userInitial": "Am nevoie de ajutor cu",
"userFollowUp": "Puteți detalia asta?"
}
}
}
+43 -2
View File
@@ -128,7 +128,15 @@
"idc": "idc",
"cloud-status-changed": "cloud-status-changed",
"where_used": "where_used",
"windowMs": "windowMs"
"windowMs": "windowMs",
"social-github": "GitHub",
"social-google": "Гугл",
"TOOL_ALLOWLIST": "Белый список инструментов",
"TOOL_DENYLIST": "Список запрещенных инструментов",
"Failed to save pricing": "Не удалось сохранить цену.",
"Failed to reset pricing": "Не удалось сбросить цены.",
"apikey": "API-ключ",
"http": "HTTP"
},
"sidebar": {
"home": "Главная",
@@ -1398,6 +1406,10 @@
"chatCompletions": "Завершения чата",
"importingModels": "Импорт...",
"importFromModels": "Импорт из /модели",
"clearAllModels": "Очистить все модели",
"clearAllModelsConfirm": "Вы уверены, что хотите удалить все модели для этого провайдера? Это действие нельзя отменить.",
"clearAllModelsSuccess": "Все модели очищены",
"clearAllModelsFailed": "Не удалось очистить модели",
"addConnectionToImport": "Добавьте соединение, чтобы включить импорт.",
"noModelsConfigured": "Ни одна модель не настроена",
"connectionCount": "{count} соединение(я)",
@@ -2403,7 +2415,9 @@
"waitingForOpenAIAuthorization": "Waiting for OpenAI authorization...",
"waitingForAntigravityAuthorization": "Waiting for Antigravity authorization...",
"waitingForIFlowAuthorization": "Waiting for iFlow authorization...",
"exchangingCodeForTokens": "Exchanging code for tokens..."
"exchangingCodeForTokens": "Exchanging code for tokens...",
"Authorization": "Авторизация",
"Content-Disposition": "Содержание-Расположение"
},
"landing": {
"brandName": "ОмниРоут",
@@ -2806,5 +2820,32 @@
"thinking": "Thinking template",
"tool-calling": "Tool calling template",
"multi-turn": "Multi-turn template"
},
"templatePayloads": {
"simpleChat": {
"system": "Вы полезный помощник искусственного интеллекта.",
"userGreeting": "Здравствуйте! Чем я могу помочь вам сегодня?"
},
"streaming": {
"prompt": "Напишите рассказ о"
},
"systemPrompt": {
"question": "В чем смысл жизни?",
"systemInstruction": "Дайте вдумчивый, философский ответ."
},
"thinking": {
"question": "Объясните квантовые вычисления"
},
"toolCalling": {
"cityNameDescription": "Название города, для которого нужно узнать погоду",
"toolDescription": "Получить текущую погоду для местоположения",
"userWeather": "Какая погода в Токио?"
},
"multiTurn": {
"system": "Вы полезный помощник.",
"assistantExample": "Я был бы рад помочь вам в этом.",
"userInitial": "мне нужна помощь с",
"userFollowUp": "Можете ли вы рассказать об этом подробнее?"
}
}
}
+163 -5
View File
@@ -58,7 +58,85 @@
"free": "Zadarmo",
"skipToContent": "Preskočiť na obsah",
"maintenanceServerIssues": "Server is experiencing issues. Some features may be unavailable.",
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting..."
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting...",
"accept": "Prijať",
"accountId": "ID účtu",
"alias": "Alias",
"apiKeyId": "ID kľúča API",
"apiKeyName": "Názov kľúča API",
"apiKeySecret": "Tajný kľúč API",
"authorization": "Autorizácia",
"content-type": "Typ obsahu",
"content-length": "Dĺžka obsahu",
"cookie": "Cookie",
"file": "Súbor",
"host": "Hostiteľ",
"id": "ID",
"import": "Importovať",
"limit": "Limit",
"offset": "Offset",
"open": "Otvorte",
"origin": "Pôvod",
"promptTokens": "Prompt Tokeny",
"completionTokens": "Žetóny dokončenia",
"totalTokens": "Celkový počet tokenov",
"rawModel": "Surový model",
"scope": "Rozsah",
"skill": "Zručnosť",
"sortBy": "Zoradiť podľa",
"sortOrder": "Poradie zoradenia",
"tab": "Tab",
"text": "Text",
"textarea": "Textarea",
"tool": "Nástroj",
"toolId": "ID nástroja",
"web": "Web",
"whereUsed": "Kde sa používa",
"whitelist": "Whitelist",
"blacklist": "Čierna listina",
"resolve": "Vyriešiť",
"force": "sila",
"base64url": "Base64 URL",
"hex": "Hex",
"range": "Rozsah",
"component": "Komponent",
"redirect_uri": "Presmerovať URI",
"idempotency-key": "Kľúč idempotencie",
"error_description": "Popis chyby",
"code": "kód",
"compatible": "Kompatibilné",
"chat-completions": "Dokončenia četu",
"oauth": "OAuth",
"auth_token": "Auth Token",
"crypto": "Crypto",
"hours": "hodiny",
"selfsigned": "Vlastne podpísaný",
"proxy_id": "ID proxy",
"proxyId": "ID proxy",
"connectionId": "ID pripojenia",
"resolveConnectionId": "Vyriešiť ID pripojenia",
"resolve_connection_id": "Vyriešiť ID pripojenia",
"scope_id": "ID rozsahu",
"scopeId": "ID rozsahu",
"jwtSecret": "Tajomstvo JWT",
"keytar": "Keytar",
"better-sqlite3": "lepší-sqlite3",
"undici": "undici",
"builder-id": "ID staviteľa",
"musicDesc": "Popis hudby",
"musicGeneration": "Hudobná generácia",
"idc": "IDC",
"cloud-status-changed": "Stav cloudu sa zmenil",
"where_used": "Kde sa používa",
"windowMs": "okno (ms)",
"social-github": "GitHub",
"social-google": "Google",
"TOOL_ALLOWLIST": "Zoznam povolených nástrojov",
"TOOL_DENYLIST": "Nástroj Denylist",
"Failed to save pricing": "Cenu sa nepodarilo uložiť",
"Failed to reset pricing": "Cenu sa nepodarilo resetovať",
"apikey": "API kľúč",
"http": "HTTP"
},
"sidebar": {
"home": "Domov",
@@ -179,7 +257,11 @@
"requestsShort": "{count} req",
"providerModelsTitle": "{provider} - Modely",
"copiedModel": "Skopírované: {model}",
"aliasLabel": "alias"
"aliasLabel": "alias",
"updateNow": "Aktualizovať teraz",
"updating": "Aktualizuje sa...",
"updateAvailableDesc": "K dispozícii je nová verzia. Kliknutím aktualizujte.",
"updateStarted": "Aktualizácia spustená..."
},
"analytics": {
"title": "Analytics",
@@ -535,6 +617,9 @@
"title": "Pridať konfiguráciu modelu",
"desc": "Pridajte do poľa modelov nasledujúcu konfiguráciu:"
}
},
"notes": {
"0": "Pokračovať používa konfiguračný súbor JSON."
}
},
"opencode": {
@@ -553,6 +638,10 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "OpenCode vyžaduje konfiguráciu kľúča API.",
"1": "Nastavte základnú URL na váš koncový bod OmniRoute."
}
},
"kiro": {
@@ -571,6 +660,9 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "Kiro vyžaduje účet Amazon."
}
}
},
@@ -1314,6 +1406,10 @@
"chatCompletions": "Dokončenia četu",
"importingModels": "Importuje sa...",
"importFromModels": "Importovať z /models",
"clearAllModels": "Vymazať všetky modely",
"clearAllModelsConfirm": "Ste si istý, že chcete odstrániť všetky modely pre tohto poskytovateľa? Túto akciu nie je možné vrátiť.",
"clearAllModelsSuccess": "Všetky modely vymazané",
"clearAllModelsFailed": "Nepodarilo sa vymazať modely",
"addConnectionToImport": "Ak chcete povoliť import, pridajte pripojenie.",
"noModelsConfigured": "Nie sú nakonfigurované žiadne modely",
"connectionCount": "{count} pripojení",
@@ -1477,7 +1573,16 @@
"compatUpstreamHeaderValue": "Value",
"compatUpstreamHeadersHint": "High-privilege setting — same trust level as editing provider API credentials; only trusted admins should use it. Merged after OmniRoute adds auth from the provider API key. If a custom header uses the same name as an existing one (e.g. Authorization), your value fully replaces the auto-generated header (including the Bearer token) — the upstream only sees what you typed, not the key from settings. Misconfiguration can cause 401 or broken upstream auth. One row per header (e.g. extra Authentication for some gateways). Hover or focus the value to preview. Saves on blur, outside click, or closing this panel.",
"compatUpstreamHeadersLabel": "Extra upstream headers",
"compatUpstreamRemoveRow": "Remove row"
"compatUpstreamRemoveRow": "Remove row",
"autoSync": "Automatická synchronizácia",
"autoSyncTooltip": "Automaticky obnovovať zoznam modelov každých 24 hodín (konfigurovateľné cez MODEL_SYNC_INTERVAL_HOURS)",
"autoSyncEnabled": "Automatická synchronizácia povolená modely sa budú pravidelne obnovovať",
"autoSyncDisabled": "Automatická synchronizácia je zakázaná",
"autoSyncToggleFailed": "Nepodarilo sa prepnúť automatickú synchronizáciu",
"clearAllModels": "Vymazať všetky modely",
"clearAllModelsConfirm": "Naozaj chcete odstrániť všetky modely tohto poskytovateľa? Toto sa nedá vrátiť späť.",
"clearAllModelsSuccess": "Všetky modely sú vymazané",
"clearAllModelsFailed": "Nepodarilo sa vyčistiť modely"
},
"settings": {
"title": "Nastavenia",
@@ -2304,7 +2409,15 @@
"restartServerWithNewPassword": "Reštartujte server - použije nové heslo",
"backToLogin": "Späť na Prihlásenie",
"forgotPassword": "Zabudli ste heslo?",
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)"
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)",
"Authorization": "Autorizácia",
"Content-Disposition": "Obsah-Dispozícia",
"waitingForAuthorization": "Čaká sa na autorizáciu...",
"waitingForGoogleAuthorization": "Čaká sa na autorizáciu Google...",
"waitingForOpenAIAuthorization": "Čaká sa na autorizáciu OpenAI...",
"waitingForAntigravityAuthorization": "Čaká sa na antigravitačné povolenie...",
"waitingForIFlowAuthorization": "Čaká sa na autorizáciu iFlow...",
"exchangingCodeForTokens": "Výmena kódu za tokeny..."
},
"landing": {
"brandName": "OmniRoute",
@@ -2511,7 +2624,9 @@
"mgmtProxiesBulkAssignNote": "Assign or clear one proxy across many scope IDs in one request.",
"mgmtAssignmentsListNote": "List proxy assignments by scope, scope_id, or proxy_id.",
"mgmtAssignmentsUpdateNote": "Assign or clear proxy for global/provider/account/combo scope.",
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments."
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments.",
"endpointSpeechNote": "Generovanie prevodu textu na reč (ElevenLabs, OpenAI TTS).",
"endpointEmbeddingsNote": "Generovanie vkladania textu (OpenAI, Cohere, Voyage)."
},
"legal": {
"privacyPolicy": "Zásady ochrany osobných údajov",
@@ -2689,5 +2804,48 @@
"domainPlaceholder": "example.com",
"requestTimedOut": "Request timed out ({seconds}s)",
"networkError": "Network error"
},
"templateNames": {
"simple-chat": "Jednoduchý chat",
"streaming": "Streamovanie",
"system-prompt": "Systémová výzva",
"thinking": "Myslenie",
"tool-calling": "Vyvolanie nástroja",
"multi-turn": "Viacotáčkový"
},
"templateDescriptions": {
"simple-chat": "Základná šablóna chatu so systémovou správou",
"streaming": "Šablóna pre odpovede na streamovanie",
"system-prompt": "Šablóna s vlastnou systémovou výzvou",
"thinking": "Šablóna s rozpočtom na uvažovanie/premýšľanie",
"tool-calling": "Šablóna na volanie nástroja/funkcie",
"multi-turn": "Šablóna pre konverzácie s viacerými odbočkami"
},
"templatePayloads": {
"simpleChat": {
"system": "Ste užitočný asistent AI.",
"userGreeting": "Dobrý deň! Ako ti dnes môžem pomôcť?"
},
"streaming": {
"prompt": "Napíšte príbeh o"
},
"systemPrompt": {
"question": "Aký je zmysel života?",
"systemInstruction": "Poskytnite premyslenú, filozofickú odpoveď."
},
"thinking": {
"question": "Vysvetlite kvantové výpočty"
},
"toolCalling": {
"cityNameDescription": "Názov mesta, pre ktoré sa má zistiť počasie",
"toolDescription": "Získajte aktuálne počasie pre miesto",
"userWeather": "Aké je počasie v Tokiu?"
},
"multiTurn": {
"system": "Ste užitočný pomocník.",
"assistantExample": "Rád vám s tým pomôžem.",
"userInitial": "Potrebujem pomoc s",
"userFollowUp": "Môžete to upresniť?"
}
}
}
+163 -5
View File
@@ -58,7 +58,85 @@
"free": "Gratis",
"skipToContent": "Hoppa till innehållet",
"maintenanceServerIssues": "Server is experiencing issues. Some features may be unavailable.",
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting..."
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting...",
"accept": "Acceptera",
"accountId": "Konto-ID",
"alias": "Alias",
"apiKeyId": "API-nyckel-ID",
"apiKeyName": "API-nyckelnamn",
"apiKeySecret": "API-nyckelhemlighet",
"authorization": "Auktorisation",
"content-type": "Innehållstyp",
"content-length": "Innehållslängd",
"cookie": "Cookie",
"file": "Arkiv",
"host": "Värd",
"id": "ID",
"import": "Importera",
"limit": "Begränsa",
"offset": "Offset",
"open": "Öppna",
"origin": "Ursprung",
"promptTokens": "Fråga tokens",
"completionTokens": "Kompletteringstokens",
"totalTokens": "Totala tokens",
"rawModel": "Rå modell",
"scope": "Omfattning",
"skill": "Skicklighet",
"sortBy": "Sortera efter",
"sortOrder": "Sorteringsordning",
"tab": "Tab",
"text": "Text",
"textarea": "Textområde",
"tool": "Verktyg",
"toolId": "Verktygs-ID",
"web": "Webb",
"whereUsed": "Där den används",
"whitelist": "Vitlista",
"blacklist": "Svartlista",
"resolve": "Lös",
"force": "Force",
"base64url": "Base64 URL",
"hex": "Hex",
"range": "Räckvidd",
"component": "Komponent",
"redirect_uri": "Omdirigera URI",
"idempotency-key": "Idempotensnyckel",
"error_description": "Felbeskrivning",
"code": "Kod",
"compatible": "Kompatibel",
"chat-completions": "Chattavslut",
"oauth": "OAuth",
"auth_token": "Auth Token",
"crypto": "Krypto",
"hours": "Timmar",
"selfsigned": "Självsignerad",
"proxy_id": "Proxy-ID",
"proxyId": "Proxy-ID",
"connectionId": "Anslutnings-ID",
"resolveConnectionId": "Lös anslutnings-ID",
"resolve_connection_id": "Lös anslutnings-ID",
"scope_id": "Omfattning ID",
"scopeId": "Omfattning ID",
"jwtSecret": "JWT hemlighet",
"keytar": "Keytar",
"better-sqlite3": "bättre-sqlite3",
"undici": "undici",
"builder-id": "Byggar-ID",
"musicDesc": "Musikbeskrivning",
"musicGeneration": "Musikgeneration",
"idc": "IDC",
"cloud-status-changed": "Molnstatus ändrad",
"where_used": "Där den används",
"windowMs": "Fönster (ms)",
"social-github": "GitHub",
"social-google": "Google",
"TOOL_ALLOWLIST": "Tillståndslista för verktyg",
"TOOL_DENYLIST": "Verktyg Denylist",
"Failed to save pricing": "Det gick inte att spara pris",
"Failed to reset pricing": "Det gick inte att återställa prissättningen",
"apikey": "API-nyckel",
"http": "HTTP"
},
"sidebar": {
"home": "Hem",
@@ -179,7 +257,11 @@
"requestsShort": "{count} krav",
"providerModelsTitle": "{provider} - Modeller",
"copiedModel": "Kopierat: {model}",
"aliasLabel": "alias"
"aliasLabel": "alias",
"updateNow": "Uppdatera nu",
"updating": "Uppdaterar...",
"updateAvailableDesc": "En ny version finns tillgänglig. Klicka för att uppdatera.",
"updateStarted": "Uppdatering startade..."
},
"analytics": {
"title": "Analytics",
@@ -535,6 +617,9 @@
"title": "Lägg till Model Config",
"desc": "Lägg till följande konfiguration till din modellarray:"
}
},
"notes": {
"0": "Continue använder JSON-konfigurationsfilen."
}
},
"opencode": {
@@ -553,6 +638,10 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "OpenCode kräver API-nyckelkonfiguration.",
"1": "Ställ in basadressen till din OmniRoute-slutpunkt."
}
},
"kiro": {
@@ -571,6 +660,9 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "Kiro kräver Amazon-konto."
}
}
},
@@ -1314,6 +1406,10 @@
"chatCompletions": "Chattavslut",
"importingModels": "Importerar...",
"importFromModels": "Importera från /models",
"clearAllModels": "Rensa alla modeller",
"clearAllModelsConfirm": "Är du säker på att du vill ta bort alla modeller för denna leverantör? Detta kan inte ångras.",
"clearAllModelsSuccess": "Alla modeller rensade",
"clearAllModelsFailed": "Kunde inte rensa modeller",
"addConnectionToImport": "Lägg till en anslutning för att aktivera import.",
"noModelsConfigured": "Inga modeller har konfigurerats",
"connectionCount": "{count} anslutning(ar)",
@@ -1477,7 +1573,16 @@
"compatUpstreamHeaderValue": "Value",
"compatUpstreamHeadersHint": "High-privilege setting — same trust level as editing provider API credentials; only trusted admins should use it. Merged after OmniRoute adds auth from the provider API key. If a custom header uses the same name as an existing one (e.g. Authorization), your value fully replaces the auto-generated header (including the Bearer token) — the upstream only sees what you typed, not the key from settings. Misconfiguration can cause 401 or broken upstream auth. One row per header (e.g. extra Authentication for some gateways). Hover or focus the value to preview. Saves on blur, outside click, or closing this panel.",
"compatUpstreamHeadersLabel": "Extra upstream headers",
"compatUpstreamRemoveRow": "Remove row"
"compatUpstreamRemoveRow": "Remove row",
"autoSync": "Automatisk synkronisering",
"autoSyncTooltip": "Uppdatera modelllistan automatiskt var 24:e timme (konfigurerbar via MODEL_SYNC_INTERVAL_HOURS)",
"autoSyncEnabled": "Automatisk synkronisering aktiverad — modeller uppdateras regelbundet",
"autoSyncDisabled": "Automatisk synkronisering inaktiverad",
"autoSyncToggleFailed": "Det gick inte att växla automatisk synkronisering",
"clearAllModels": "Rensa alla modeller",
"clearAllModelsConfirm": "Är du säker på att du vill ta bort alla modeller för den här leverantören? Detta kan inte ångras.",
"clearAllModelsSuccess": "Alla modeller rensade",
"clearAllModelsFailed": "Det gick inte att rensa modeller"
},
"settings": {
"title": "Inställningar",
@@ -2304,7 +2409,15 @@
"restartServerWithNewPassword": "Starta om servern - den kommer att använda det nya lösenordet",
"backToLogin": "Tillbaka till inloggning",
"forgotPassword": "Glömt lösenordet?",
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)"
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)",
"Authorization": "Auktorisation",
"Content-Disposition": "Innehåll-Disposition",
"waitingForAuthorization": "Väntar på auktorisation...",
"waitingForGoogleAuthorization": "Väntar på Google-auktorisering...",
"waitingForOpenAIAuthorization": "Väntar på OpenAI-auktorisering...",
"waitingForAntigravityAuthorization": "Väntar på antigravitationstillstånd...",
"waitingForIFlowAuthorization": "Väntar på iFlow-auktorisering...",
"exchangingCodeForTokens": "Byter ut kod för tokens..."
},
"landing": {
"brandName": "OmniRoute",
@@ -2511,7 +2624,9 @@
"mgmtProxiesBulkAssignNote": "Assign or clear one proxy across many scope IDs in one request.",
"mgmtAssignmentsListNote": "List proxy assignments by scope, scope_id, or proxy_id.",
"mgmtAssignmentsUpdateNote": "Assign or clear proxy for global/provider/account/combo scope.",
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments."
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments.",
"endpointSpeechNote": "Text-till-tal-generering (ElevenLabs, OpenAI TTS).",
"endpointEmbeddingsNote": "Generering av textinbäddning (OpenAI, Cohere, Voyage)."
},
"legal": {
"privacyPolicy": "Sekretesspolicy",
@@ -2689,5 +2804,48 @@
"domainPlaceholder": "example.com",
"requestTimedOut": "Request timed out ({seconds}s)",
"networkError": "Network error"
},
"templateNames": {
"simple-chat": "Enkel chatt",
"streaming": "Streaming",
"system-prompt": "Systemprompt",
"thinking": "Tänker",
"tool-calling": "Verktygsanrop",
"multi-turn": "Flervarv"
},
"templateDescriptions": {
"simple-chat": "Grundläggande chattmall med systemmeddelande",
"streaming": "Mall för strömmande svar",
"system-prompt": "Mall med anpassad systemprompt",
"thinking": "Mall med resonemang/tänkebudget",
"tool-calling": "Mall för verktyg/funktionsanrop",
"multi-turn": "Mall för konversationer med flera svängar"
},
"templatePayloads": {
"simpleChat": {
"system": "Du är en hjälpsam AI-assistent.",
"userGreeting": "Hej! Hur kan jag hjälpa dig idag?"
},
"streaming": {
"prompt": "Skriv en berättelse om"
},
"systemPrompt": {
"question": "Vad är meningen med livet?",
"systemInstruction": "Ge ett genomtänkt, filosofiskt svar."
},
"thinking": {
"question": "Förklara kvantberäkning"
},
"toolCalling": {
"cityNameDescription": "Namnet på staden att få väder för",
"toolDescription": "Få aktuellt väder för en plats",
"userWeather": "Hur är vädret i Tokyo?"
},
"multiTurn": {
"system": "Du är en hjälpsam assistent.",
"assistantExample": "Jag hjälper dig gärna med det.",
"userInitial": "Jag behöver hjälp med",
"userFollowUp": "Kan du utveckla det?"
}
}
}
+163 -5
View File
@@ -58,7 +58,85 @@
"free": "ฟรี",
"skipToContent": "ข้ามไปที่เนื้อหา",
"maintenanceServerIssues": "Server is experiencing issues. Some features may be unavailable.",
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting..."
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting...",
"accept": "ยอมรับ",
"accountId": "รหัสบัญชี",
"alias": "นามแฝง",
"apiKeyId": "รหัสคีย์ API",
"apiKeyName": "ชื่อคีย์ API",
"apiKeySecret": "ความลับของคีย์ API",
"authorization": "การอนุญาต",
"content-type": "ประเภทเนื้อหา",
"content-length": "ความยาวของเนื้อหา",
"cookie": "คุกกี้",
"file": "ไฟล์",
"host": "โฮสต์",
"id": "บัตรประจำตัวประชาชน",
"import": "นำเข้า",
"limit": "ขีดจำกัด",
"offset": "ออฟเซ็ต",
"open": "เปิด",
"origin": "ต้นกำเนิด",
"promptTokens": "โทเค็นพร้อมท์",
"completionTokens": "โทเค็นการสำเร็จ",
"totalTokens": "โทเค็นทั้งหมด",
"rawModel": "โมเดลดิบ",
"scope": "ขอบเขต",
"skill": "ทักษะ",
"sortBy": "เรียงตาม",
"sortOrder": "เรียงลำดับ",
"tab": "แท็บ",
"text": "ข้อความ",
"textarea": "พื้นที่ข้อความ",
"tool": "เครื่องมือ",
"toolId": "รหัสเครื่องมือ",
"web": "เว็บ",
"whereUsed": "ใช้ที่ไหน",
"whitelist": "ไวท์ลิสต์",
"blacklist": "บัญชีดำ",
"resolve": "แก้ไข",
"force": "บังคับ",
"base64url": "URL Base64",
"hex": "ฐานสิบหก",
"range": "พิสัย",
"component": "ส่วนประกอบ",
"redirect_uri": "เปลี่ยนเส้นทาง URI",
"idempotency-key": "คีย์ Idempotency",
"error_description": "คำอธิบายข้อผิดพลาด",
"code": "รหัส",
"compatible": "เข้ากันได้",
"chat-completions": "เสร็จสิ้นการแชท",
"oauth": "OAuth",
"auth_token": "โทเค็นการรับรองความถูกต้อง",
"crypto": "การเข้ารหัสลับ",
"hours": "ชั่วโมง",
"selfsigned": "ลงนามด้วยตนเอง",
"proxy_id": "รหัสพร็อกซี",
"proxyId": "รหัสพร็อกซี",
"connectionId": "รหัสการเชื่อมต่อ",
"resolveConnectionId": "แก้ไขรหัสการเชื่อมต่อ",
"resolve_connection_id": "แก้ไขรหัสการเชื่อมต่อ",
"scope_id": "รหัสขอบเขต",
"scopeId": "รหัสขอบเขต",
"jwtSecret": "ความลับเจดับเบิ้ลยูที",
"keytar": "คีย์ตาร์",
"better-sqlite3": "ดีกว่า-sqlite3",
"undici": "อูนดิ",
"builder-id": "รหัสผู้สร้าง",
"musicDesc": "คำอธิบายเพลง",
"musicGeneration": "ดนตรีเจเนอเรชั่น",
"idc": "ไอดีซี",
"cloud-status-changed": "สถานะคลาวด์เปลี่ยนไป",
"where_used": "ใช้ที่ไหน",
"windowMs": "หน้าต่าง (มิลลิวินาที)",
"social-github": "GitHub",
"social-google": "กูเกิล",
"TOOL_ALLOWLIST": "รายการที่อนุญาตของเครื่องมือ",
"TOOL_DENYLIST": "รายการเครื่องมือที่ปฏิเสธ",
"Failed to save pricing": "บันทึกราคาไม่สำเร็จ",
"Failed to reset pricing": "ไม่สามารถรีเซ็ตราคาได้",
"apikey": "คีย์ API",
"http": "HTTP"
},
"sidebar": {
"home": "บ้าน",
@@ -179,7 +257,11 @@
"requestsShort": "{count} ความต้องการ",
"providerModelsTitle": "{provider} - โมเดล",
"copiedModel": "คัดลอก: {model}",
"aliasLabel": "นามแฝง"
"aliasLabel": "นามแฝง",
"updateNow": "อัปเดตทันที",
"updating": "กำลังอัปเดต...",
"updateAvailableDesc": "มีเวอร์ชันใหม่ให้ใช้งานแล้ว คลิกเพื่ออัปเดต",
"updateStarted": "เริ่มการอัพเดต..."
},
"analytics": {
"title": "การวิเคราะห์",
@@ -535,6 +617,9 @@
"title": "เพิ่มการกำหนดค่าโมเดล",
"desc": "เพิ่มการกำหนดค่าต่อไปนี้ให้กับอาร์เรย์โมเดลของคุณ:"
}
},
"notes": {
"0": "ใช้ไฟล์กำหนดค่า JSON ต่อไป"
}
},
"opencode": {
@@ -553,6 +638,10 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "OpenCode ต้องมีการกำหนดค่าคีย์ API",
"1": "ตั้งค่า URL พื้นฐานเป็นจุดสิ้นสุด OmniRoute ของคุณ"
}
},
"kiro": {
@@ -571,6 +660,9 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "Kiro ต้องการบัญชี Amazon"
}
}
},
@@ -1314,6 +1406,10 @@
"chatCompletions": "เสร็จสิ้นการแชท",
"importingModels": "กำลังนำเข้า...",
"importFromModels": "นำเข้าจาก /models",
"clearAllModels": "ล้างโมเดลทั้งหมด",
"clearAllModelsConfirm": "คุณแน่ใจหรือไม่ว่าต้องการลบโมเดลทั้งหมดของผู้ให้บริการนี้? การดำเนินการนี้ไม่สามารถย้อนกลับได้",
"clearAllModelsSuccess": "ล้างโมเดลทั้งหมดแล้ว",
"clearAllModelsFailed": "ไม่สามารถล้างโมเดลได้",
"addConnectionToImport": "เพิ่มการเชื่อมต่อเพื่อเปิดใช้งานการนำเข้า",
"noModelsConfigured": "ไม่มีโมเดลที่กำหนดค่าไว้",
"connectionCount": "{count} การเชื่อมต่อ",
@@ -1477,7 +1573,16 @@
"compatUpstreamHeaderValue": "Value",
"compatUpstreamHeadersHint": "High-privilege setting — same trust level as editing provider API credentials; only trusted admins should use it. Merged after OmniRoute adds auth from the provider API key. If a custom header uses the same name as an existing one (e.g. Authorization), your value fully replaces the auto-generated header (including the Bearer token) — the upstream only sees what you typed, not the key from settings. Misconfiguration can cause 401 or broken upstream auth. One row per header (e.g. extra Authentication for some gateways). Hover or focus the value to preview. Saves on blur, outside click, or closing this panel.",
"compatUpstreamHeadersLabel": "Extra upstream headers",
"compatUpstreamRemoveRow": "Remove row"
"compatUpstreamRemoveRow": "Remove row",
"autoSync": "ซิงค์อัตโนมัติ",
"autoSyncTooltip": "รีเฟรชรายการโมเดลโดยอัตโนมัติทุกๆ 24 ชั่วโมง (กำหนดค่าได้ผ่าน MODEL_SYNC_INTERVAL_HOURS)",
"autoSyncEnabled": "เปิดใช้งานการซิงค์อัตโนมัติ — โมเดลจะรีเฟรชเป็นระยะ",
"autoSyncDisabled": "ปิดใช้งานการซิงค์อัตโนมัติแล้ว",
"autoSyncToggleFailed": "ไม่สามารถสลับการซิงค์อัตโนมัติ",
"clearAllModels": "ล้างทุกรุ่น",
"clearAllModelsConfirm": "คุณแน่ใจหรือไม่ว่าต้องการลบโมเดลทั้งหมดสำหรับผู้ให้บริการรายนี้ สิ่งนี้ไม่สามารถยกเลิกได้",
"clearAllModelsSuccess": "เคลียร์ทุกรุ่น",
"clearAllModelsFailed": "ไม่สามารถล้างโมเดลได้"
},
"settings": {
"title": "การตั้งค่า",
@@ -2304,7 +2409,15 @@
"restartServerWithNewPassword": "รีสตาร์ทเซิร์ฟเวอร์ - จะใช้รหัสผ่านใหม่",
"backToLogin": "กลับไปที่เข้าสู่ระบบ",
"forgotPassword": "ลืมรหัสผ่าน?",
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)"
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)",
"Authorization": "การอนุญาต",
"Content-Disposition": "การจัดการเนื้อหา",
"waitingForAuthorization": "กำลังรอการอนุญาต...",
"waitingForGoogleAuthorization": "กำลังรอการอนุญาตจาก Google...",
"waitingForOpenAIAuthorization": "กำลังรอการอนุญาต OpenAI...",
"waitingForAntigravityAuthorization": "กำลังรอการอนุญาตต้านแรงโน้มถ่วง...",
"waitingForIFlowAuthorization": "กำลังรอการอนุญาตจาก iFlow...",
"exchangingCodeForTokens": "การเปลี่ยนรหัสเป็นโทเค็น..."
},
"landing": {
"brandName": "OmniRoute",
@@ -2511,7 +2624,9 @@
"mgmtProxiesBulkAssignNote": "Assign or clear one proxy across many scope IDs in one request.",
"mgmtAssignmentsListNote": "List proxy assignments by scope, scope_id, or proxy_id.",
"mgmtAssignmentsUpdateNote": "Assign or clear proxy for global/provider/account/combo scope.",
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments."
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments.",
"endpointSpeechNote": "การสร้างข้อความเป็นคำพูด (ElevenLabs, OpenAI TTS)",
"endpointEmbeddingsNote": "การสร้างการฝังข้อความ (OpenAI, Cohere, Voyage)"
},
"legal": {
"privacyPolicy": "นโยบายความเป็นส่วนตัว",
@@ -2689,5 +2804,48 @@
"domainPlaceholder": "example.com",
"requestTimedOut": "Request timed out ({seconds}s)",
"networkError": "Network error"
},
"templateNames": {
"simple-chat": "แชทง่ายๆ",
"streaming": "สตรีมมิ่ง",
"system-prompt": "พร้อมท์ระบบ",
"thinking": "กำลังคิด",
"tool-calling": "การเรียกเครื่องมือ",
"multi-turn": "หลายเลี้ยว"
},
"templateDescriptions": {
"simple-chat": "เทมเพลตการแชทพื้นฐานพร้อมข้อความระบบ",
"streaming": "เทมเพลตสำหรับการตอบกลับแบบสตรีม",
"system-prompt": "เทมเพลตพร้อมแจ้งระบบแบบกำหนดเอง",
"thinking": "เทมเพลตพร้อมงบประมาณการใช้เหตุผล/การคิด",
"tool-calling": "เทมเพลตสำหรับการเรียกใช้เครื่องมือ/ฟังก์ชัน",
"multi-turn": "เทมเพลตสำหรับการสนทนาหลายรอบ"
},
"templatePayloads": {
"simpleChat": {
"system": "คุณเป็นผู้ช่วย AI ที่เป็นประโยชน์",
"userGreeting": "สวัสดี! วันนี้ฉันจะช่วยคุณได้อย่างไร?"
},
"streaming": {
"prompt": "เขียนเรื่องราวเกี่ยวกับ"
},
"systemPrompt": {
"question": "ความหมายของชีวิตคืออะไร?",
"systemInstruction": "ให้คำตอบที่รอบคอบและมีปรัชญา"
},
"thinking": {
"question": "อธิบายการคำนวณควอนตัม"
},
"toolCalling": {
"cityNameDescription": "ชื่อเมืองที่จะเรียกสภาพอากาศ",
"toolDescription": "รับสภาพอากาศปัจจุบันสำหรับสถานที่",
"userWeather": "สภาพอากาศในโตเกียวเป็นอย่างไร?"
},
"multiTurn": {
"system": "คุณเป็นผู้ช่วยที่เป็นประโยชน์",
"assistantExample": "เรายินดีที่จะช่วยเหลือคุณในเรื่องนั้น",
"userInitial": "ฉันต้องการความช่วยเหลือเกี่ยวกับ",
"userFollowUp": "คุณช่วยอธิบายรายละเอียดเกี่ยวกับเรื่องนั้นได้ไหม?"
}
}
}
File diff suppressed because it is too large Load Diff
+163 -5
View File
@@ -58,7 +58,85 @@
"free": "безкоштовно",
"skipToContent": "Перейти до вмісту",
"maintenanceServerIssues": "Server is experiencing issues. Some features may be unavailable.",
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting..."
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting...",
"accept": "прийняти",
"accountId": "ID облікового запису",
"alias": "Псевдонім",
"apiKeyId": "Ідентифікатор ключа API",
"apiKeyName": "Назва ключа API",
"apiKeySecret": "Секретний ключ API",
"authorization": "Авторизація",
"content-type": "Тип вмісту",
"content-length": "Довжина вмісту",
"cookie": "Печиво",
"file": "Файл",
"host": "Хост",
"id": "ID",
"import": "Імпорт",
"limit": "Ліміт",
"offset": "Зсув",
"open": "відкритий",
"origin": "Походження",
"promptTokens": "Жетони підказок",
"completionTokens": "Жетони завершення",
"totalTokens": "Загальна кількість токенів",
"rawModel": "Необроблена модель",
"scope": "Область застосування",
"skill": "Майстерність",
"sortBy": "Сортувати за",
"sortOrder": "Порядок сортування",
"tab": "вкладка",
"text": "текст",
"textarea": "Текстове поле",
"tool": "Інструмент",
"toolId": "ID інструменту",
"web": "Інтернет",
"whereUsed": "Де використовується",
"whitelist": "Білий список",
"blacklist": "Чорний список",
"resolve": "Розв'язати",
"force": "Сила",
"base64url": "URL-адреса Base64",
"hex": "Hex",
"range": "Діапазон",
"component": "компонент",
"redirect_uri": "URI перенаправлення",
"idempotency-key": "Ідемпотентний ключ",
"error_description": "Опис помилки",
"code": "Код",
"compatible": "сумісний",
"chat-completions": "Завершення чату",
"oauth": "OAuth",
"auth_token": "Маркер авторизації",
"crypto": "Крипто",
"hours": "години",
"selfsigned": "Самопідписаний",
"proxy_id": "ID проксі",
"proxyId": "ID проксі",
"connectionId": "ID підключення",
"resolveConnectionId": "Вирішити ідентифікатор підключення",
"resolve_connection_id": "Вирішити ідентифікатор підключення",
"scope_id": "Ідентифікатор області",
"scopeId": "Ідентифікатор області",
"jwtSecret": "Секрет JWT",
"keytar": "Keytar",
"better-sqlite3": "краще-sqlite3",
"undici": "undici",
"builder-id": "ID забудовника",
"musicDesc": "Опис музики",
"musicGeneration": "Музичне покоління",
"idc": "IDC",
"cloud-status-changed": "Статус хмари змінено",
"where_used": "Де використовується",
"windowMs": "Вікно (мс)",
"social-github": "GitHub",
"social-google": "Google",
"TOOL_ALLOWLIST": "Білий список інструментів",
"TOOL_DENYLIST": "Інструмент Denylist",
"Failed to save pricing": "Не вдалося зберегти ціни",
"Failed to reset pricing": "Не вдалося скинути ціни",
"apikey": "Ключ API",
"http": "HTTP"
},
"sidebar": {
"home": "додому",
@@ -179,7 +257,11 @@
"requestsShort": "{count} вимагається",
"providerModelsTitle": "{provider} - Моделі",
"copiedModel": "Скопійовано: {model}",
"aliasLabel": "псевдонім"
"aliasLabel": "псевдонім",
"updateNow": "Оновити зараз",
"updating": "Оновлення...",
"updateAvailableDesc": "Доступна нова версія. Натисніть, щоб оновити.",
"updateStarted": "Оновлення розпочато..."
},
"analytics": {
"title": "Аналітика",
@@ -535,6 +617,9 @@
"title": "Додати конфігурацію моделі",
"desc": "Додайте таку конфігурацію до свого масиву моделей:"
}
},
"notes": {
"0": "Продовжити використання файлу конфігурації JSON."
}
},
"opencode": {
@@ -553,6 +638,10 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "OpenCode вимагає налаштування ключа API.",
"1": "Установіть базову URL-адресу для кінцевої точки OmniRoute."
}
},
"kiro": {
@@ -571,6 +660,9 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "Kiro потрібен обліковий запис Amazon."
}
}
},
@@ -1314,6 +1406,10 @@
"chatCompletions": "Завершення чату",
"importingModels": "Імпорт...",
"importFromModels": "Імпортувати з /models",
"clearAllModels": "Очистити всі моделі",
"clearAllModelsConfirm": "Ви впевнені, що хочете видалити всі моделі для цього провайдера? Цю дію неможливо скасувати.",
"clearAllModelsSuccess": "Усі моделі очищено",
"clearAllModelsFailed": "Не вдалося очистити моделі",
"addConnectionToImport": "Додайте підключення, щоб увімкнути імпорт.",
"noModelsConfigured": "Немає налаштованих моделей",
"connectionCount": "{count} підключення(-я)",
@@ -1477,7 +1573,16 @@
"compatUpstreamHeaderValue": "Value",
"compatUpstreamHeadersHint": "High-privilege setting — same trust level as editing provider API credentials; only trusted admins should use it. Merged after OmniRoute adds auth from the provider API key. If a custom header uses the same name as an existing one (e.g. Authorization), your value fully replaces the auto-generated header (including the Bearer token) — the upstream only sees what you typed, not the key from settings. Misconfiguration can cause 401 or broken upstream auth. One row per header (e.g. extra Authentication for some gateways). Hover or focus the value to preview. Saves on blur, outside click, or closing this panel.",
"compatUpstreamHeadersLabel": "Extra upstream headers",
"compatUpstreamRemoveRow": "Remove row"
"compatUpstreamRemoveRow": "Remove row",
"autoSync": "Автоматична синхронізація",
"autoSyncTooltip": "Автоматично оновлювати список моделей кожні 24 години (налаштовується через MODEL_SYNC_INTERVAL_HOURS)",
"autoSyncEnabled": "Автоматична синхронізація ввімкнена — моделі періодично оновлюватимуться",
"autoSyncDisabled": "Автоматична синхронізація вимкнена",
"autoSyncToggleFailed": "Не вдалося вимкнути автоматичну синхронізацію",
"clearAllModels": "Очистити всі моделі",
"clearAllModelsConfirm": "Ви впевнені, що хочете видалити всі моделі цього постачальника? Це неможливо скасувати.",
"clearAllModelsSuccess": "Всі моделі розмитнені",
"clearAllModelsFailed": "Не вдалося очистити моделі"
},
"settings": {
"title": "Налаштування",
@@ -2304,7 +2409,15 @@
"restartServerWithNewPassword": "Перезапустіть сервер - він використовуватиме новий пароль",
"backToLogin": "Назад до входу",
"forgotPassword": "Забули пароль?",
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)"
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)",
"Authorization": "Авторизація",
"Content-Disposition": "Зміст-диспозиція",
"waitingForAuthorization": "Очікування авторизації...",
"waitingForGoogleAuthorization": "Очікування авторизації Google...",
"waitingForOpenAIAuthorization": "Очікування авторизації OpenAI...",
"waitingForAntigravityAuthorization": "Очікування авторизації Antigravity...",
"waitingForIFlowAuthorization": "Очікування авторизації iFlow...",
"exchangingCodeForTokens": "Обмін коду на токени..."
},
"landing": {
"brandName": "OmniRoute",
@@ -2511,7 +2624,9 @@
"mgmtProxiesBulkAssignNote": "Assign or clear one proxy across many scope IDs in one request.",
"mgmtAssignmentsListNote": "List proxy assignments by scope, scope_id, or proxy_id.",
"mgmtAssignmentsUpdateNote": "Assign or clear proxy for global/provider/account/combo scope.",
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments."
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments.",
"endpointSpeechNote": "Синтез мовлення (ElevenLabs, OpenAI TTS).",
"endpointEmbeddingsNote": "Генерація вбудованого тексту (OpenAI, Cohere, Voyage)."
},
"legal": {
"privacyPolicy": "Політика конфіденційності",
@@ -2689,5 +2804,48 @@
"domainPlaceholder": "example.com",
"requestTimedOut": "Request timed out ({seconds}s)",
"networkError": "Network error"
},
"templateNames": {
"simple-chat": "Простий чат",
"streaming": "Потокове передавання",
"system-prompt": "Системна підказка",
"thinking": "Мислення",
"tool-calling": "Виклик інструменту",
"multi-turn": "Багатооборотний"
},
"templateDescriptions": {
"simple-chat": "Базовий шаблон чату з системним повідомленням",
"streaming": "Шаблон для потокових відповідей",
"system-prompt": "Шаблон із спеціальним системним запитом",
"thinking": "Шаблон із бюджетом міркувань/роздумів",
"tool-calling": "Шаблон для виклику інструменту/функції",
"multi-turn": "Шаблон для багаточергових розмов"
},
"templatePayloads": {
"simpleChat": {
"system": "Ви корисний помічник ШІ.",
"userGreeting": "Привіт! Чим я можу тобі допомогти сьогодні?"
},
"streaming": {
"prompt": "Написати розповідь про"
},
"systemPrompt": {
"question": "У чому сенс життя?",
"systemInstruction": "Дайте вдумливу, філософську відповідь."
},
"thinking": {
"question": "Поясніть квантові обчислення"
},
"toolCalling": {
"cityNameDescription": "Назва міста, для якого потрібно дізнатися погоду",
"toolDescription": "Отримайте поточну погоду для певного місця",
"userWeather": "Яка погода в Токіо?"
},
"multiTurn": {
"system": "Ви корисний помічник.",
"assistantExample": "Я буду радий тобі в цьому допомогти.",
"userInitial": "Мені потрібна допомога з",
"userFollowUp": "Чи можете ви розповісти про це?"
}
}
}
+163 -5
View File
@@ -58,7 +58,85 @@
"free": "miễn phí",
"skipToContent": "Chuyển đến nội dung",
"maintenanceServerIssues": "Server is experiencing issues. Some features may be unavailable.",
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting..."
"maintenanceServerUnreachable": "Server is unreachable. Reconnecting...",
"accept": "Chấp nhận",
"accountId": "ID tài khoản",
"alias": "Bí danh",
"apiKeyId": "ID khóa API",
"apiKeyName": "Tên khóa API",
"apiKeySecret": "Bí mật khóa API",
"authorization": "Ủy quyền",
"content-type": "Loại nội dung",
"content-length": "Độ dài nội dung",
"cookie": "bánh quy",
"file": "tập tin",
"host": "Máy chủ",
"id": "ID",
"import": "Nhập khẩu",
"limit": "giới hạn",
"offset": "Bù đắp",
"open": "Mở",
"origin": "Xuất xứ",
"promptTokens": "Mã thông báo nhắc nhở",
"completionTokens": "Mã thông báo hoàn thành",
"totalTokens": "Tổng số token",
"rawModel": "Mô hình thô",
"scope": "Phạm vi",
"skill": "kỹ năng",
"sortBy": "Sắp xếp theo",
"sortOrder": "Sắp xếp thứ tự",
"tab": "Thẻ",
"text": "văn bản",
"textarea": "Vùng văn bản",
"tool": "Công cụ",
"toolId": "Mã công cụ",
"web": "Web",
"whereUsed": "Nơi sử dụng",
"whitelist": "Danh sách trắng",
"blacklist": "Danh sách đen",
"resolve": "giải quyết",
"force": "Lực lượng",
"base64url": "URL Base64",
"hex": "lục giác",
"range": "Phạm vi",
"component": "thành phần",
"redirect_uri": "URI chuyển hướng",
"idempotency-key": "Chìa khóa bình đẳng",
"error_description": "Mô tả lỗi",
"code": "Mã",
"compatible": "Tương thích",
"chat-completions": "Hoàn thành cuộc trò chuyện",
"oauth": "OAuth",
"auth_token": "Mã thông báo xác thực",
"crypto": "tiền điện tử",
"hours": "Giờ",
"selfsigned": "Tự ký",
"proxy_id": "ID proxy",
"proxyId": "ID proxy",
"connectionId": "ID kết nối",
"resolveConnectionId": "Giải quyết ID kết nối",
"resolve_connection_id": "Giải quyết ID kết nối",
"scope_id": "ID phạm vi",
"scopeId": "ID phạm vi",
"jwtSecret": "Bí mật JWT",
"keytar": "Bàn phím",
"better-sqlite3": "tốt hơn-sqlite3",
"undici": "undic",
"builder-id": "ID người xây dựng",
"musicDesc": "Mô tả âm nhạc",
"musicGeneration": "Thế hệ âm nhạc",
"idc": "IDC",
"cloud-status-changed": "Trạng thái đám mây đã thay đổi",
"where_used": "Nơi sử dụng",
"windowMs": "Cửa sổ (ms)",
"social-github": "GitHub",
"social-google": "Google",
"TOOL_ALLOWLIST": "Danh sách cho phép của công cụ",
"TOOL_DENYLIST": "Danh sách từ chối công cụ",
"Failed to save pricing": "Không lưu được giá",
"Failed to reset pricing": "Không thể đặt lại giá",
"apikey": "Khóa API",
"http": "HTTP"
},
"sidebar": {
"home": "Trang chủ",
@@ -179,7 +257,11 @@
"requestsShort": "{count} yêu cầu",
"providerModelsTitle": "{provider} - Người mẫu",
"copiedModel": "Đã sao chép: {model}",
"aliasLabel": "bí danh"
"aliasLabel": "bí danh",
"updateNow": "Cập nhật ngay",
"updating": "Đang cập nhật...",
"updateAvailableDesc": "Một phiên bản mới có sẵn. Nhấn vào đây để cập nhật.",
"updateStarted": "Đã bắt đầu cập nhật..."
},
"analytics": {
"title": "Phân tích",
@@ -535,6 +617,9 @@
"title": "Thêm cấu hình mô hình",
"desc": "Thêm cấu hình sau vào mảng mô hình của bạn:"
}
},
"notes": {
"0": "Tiếp tục sử dụng tệp cấu hình JSON."
}
},
"opencode": {
@@ -553,6 +638,10 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "OpenCode yêu cầu cấu hình khóa API.",
"1": "Đặt URL cơ sở cho điểm cuối OmniRoute của bạn."
}
},
"kiro": {
@@ -571,6 +660,9 @@
"4": {
"title": "Select Model"
}
},
"notes": {
"0": "Kiro yêu cầu tài khoản Amazon."
}
}
},
@@ -1314,6 +1406,10 @@
"chatCompletions": "Hoàn thành cuộc trò chuyện",
"importingModels": "Đang nhập khẩu...",
"importFromModels": "Nhập từ /model",
"clearAllModels": "Xóa tất cả mô hình",
"clearAllModelsConfirm": "Bạn có chắc chắn muốn xóa tất cả mô hình của nhà cung cấp này? Hành động này không thể hoàn tác.",
"clearAllModelsSuccess": "Đã xóa tất cả mô hình",
"clearAllModelsFailed": "Không thể xóa mô hình",
"addConnectionToImport": "Thêm kết nối để cho phép nhập.",
"noModelsConfigured": "Không có mô hình nào được định cấu hình",
"connectionCount": "{count} kết nối",
@@ -1477,7 +1573,16 @@
"compatUpstreamHeaderValue": "Value",
"compatUpstreamHeadersHint": "High-privilege setting — same trust level as editing provider API credentials; only trusted admins should use it. Merged after OmniRoute adds auth from the provider API key. If a custom header uses the same name as an existing one (e.g. Authorization), your value fully replaces the auto-generated header (including the Bearer token) — the upstream only sees what you typed, not the key from settings. Misconfiguration can cause 401 or broken upstream auth. One row per header (e.g. extra Authentication for some gateways). Hover or focus the value to preview. Saves on blur, outside click, or closing this panel.",
"compatUpstreamHeadersLabel": "Extra upstream headers",
"compatUpstreamRemoveRow": "Remove row"
"compatUpstreamRemoveRow": "Remove row",
"autoSync": "Tự động đồng bộ hóa",
"autoSyncTooltip": "Tự động làm mới danh sách mô hình sau mỗi 24 giờ (có thể định cấu hình qua MODEL_SYNC_INTERVAL_HOURS)",
"autoSyncEnabled": "Đã bật tự động đồng bộ hóa - các mô hình sẽ làm mới định kỳ",
"autoSyncDisabled": "Tự động đồng bộ hóa đã bị tắt",
"autoSyncToggleFailed": "Không chuyển đổi được tính năng tự động đồng bộ hóa",
"clearAllModels": "Xóa tất cả các mẫu",
"clearAllModelsConfirm": "Bạn có chắc chắn muốn xóa tất cả mô hình của nhà cung cấp này không? Điều này không thể hoàn tác được.",
"clearAllModelsSuccess": "Tất cả các mô hình đã bị xóa",
"clearAllModelsFailed": "Không xóa được mô hình"
},
"settings": {
"title": "Cài đặt",
@@ -2304,7 +2409,15 @@
"restartServerWithNewPassword": "Khởi động lại máy chủ - nó sẽ sử dụng mật khẩu mới",
"backToLogin": "Quay lại đăng nhập",
"forgotPassword": "Quên mật khẩu?",
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)"
"defaultPasswordHint": "Default password: 123456 (unless INITIAL_PASSWORD was set)",
"Authorization": "Ủy quyền",
"Content-Disposition": "Bố trí nội dung",
"waitingForAuthorization": "Đang chờ cấp phép...",
"waitingForGoogleAuthorization": "Đang chờ Google ủy quyền...",
"waitingForOpenAIAuthorization": "Đang chờ ủy quyền OpenAI...",
"waitingForAntigravityAuthorization": "Đang chờ ủy quyền chống hấp dẫn...",
"waitingForIFlowAuthorization": "Đang chờ ủy quyền iFlow...",
"exchangingCodeForTokens": "Đổi mã lấy token..."
},
"landing": {
"brandName": "OmniRoute",
@@ -2511,7 +2624,9 @@
"mgmtProxiesBulkAssignNote": "Assign or clear one proxy across many scope IDs in one request.",
"mgmtAssignmentsListNote": "List proxy assignments by scope, scope_id, or proxy_id.",
"mgmtAssignmentsUpdateNote": "Assign or clear proxy for global/provider/account/combo scope.",
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments."
"mgmtLegacyMigrationNote": "Import legacy proxyConfig maps into registry assignments.",
"endpointSpeechNote": "Tạo văn bản thành giọng nói (ElevenLabs, OpenAI TTS).",
"endpointEmbeddingsNote": "Tạo nhúng văn bản (OpenAI, Cohere, Voyage)."
},
"legal": {
"privacyPolicy": "Chính sách bảo mật",
@@ -2689,5 +2804,48 @@
"domainPlaceholder": "example.com",
"requestTimedOut": "Request timed out ({seconds}s)",
"networkError": "Network error"
},
"templateNames": {
"simple-chat": "Trò chuyện đơn giản",
"streaming": "Truyền phát",
"system-prompt": "Lời nhắc hệ thống",
"thinking": "suy nghĩ",
"tool-calling": "Gọi công cụ",
"multi-turn": "Nhiều lượt"
},
"templateDescriptions": {
"simple-chat": "Mẫu chat cơ bản kèm tin nhắn hệ thống",
"streaming": "Mẫu để truyền phát phản hồi",
"system-prompt": "Mẫu có lời nhắc hệ thống tùy chỉnh",
"thinking": "Mẫu có ngân sách lý luận/suy nghĩ",
"tool-calling": "Mẫu để gọi công cụ/chức năng",
"multi-turn": "Mẫu hội thoại nhiều lượt"
},
"templatePayloads": {
"simpleChat": {
"system": "Bạn là một trợ lý AI hữu ích.",
"userGreeting": "Xin chào! Hôm nay tôi có thể giúp gì cho bạn?"
},
"streaming": {
"prompt": "Viết một câu chuyện về"
},
"systemPrompt": {
"question": "Ý nghĩa của cuộc sống là gì?",
"systemInstruction": "Đưa ra một câu trả lời sâu sắc và mang tính triết lý."
},
"thinking": {
"question": "Giải thích tính toán lượng tử"
},
"toolCalling": {
"cityNameDescription": "Tên của thành phố để biết thời tiết",
"toolDescription": "Nhận thời tiết hiện tại cho một địa điểm",
"userWeather": "Thời tiết ở Tokyo thế nào?"
},
"multiTurn": {
"system": "Bạn là một trợ lý hữu ích.",
"assistantExample": "Tôi rất vui được giúp bạn việc đó.",
"userInitial": "Tôi cần giúp đỡ với",
"userFollowUp": "Bạn có thể giải thích về điều đó?"
}
}
}
+6 -3
View File
@@ -224,8 +224,11 @@ export class A2ATaskManager {
}
// Singleton
let _manager: A2ATaskManager | null = null;
const globalForA2A = globalThis as unknown as { _a2aTaskManager?: A2ATaskManager };
export function getTaskManager(): A2ATaskManager {
if (!_manager) _manager = new A2ATaskManager();
return _manager;
if (!globalForA2A._a2aTaskManager) {
globalForA2A._a2aTaskManager = new A2ATaskManager();
}
return globalForA2A._a2aTaskManager;
}
+1
View File
@@ -51,6 +51,7 @@ export async function createCombo(data: JsonRecord) {
models: data.models || [],
strategy: data.strategy || "priority",
config: data.config || {},
isHidden: Boolean(data.isHidden),
createdAt: now,
updatedAt: now,
};
+24
View File
@@ -110,6 +110,7 @@ export type ModelCompatOverride = {
preserveOpenAIDeveloperRole?: boolean;
compatByProtocol?: CompatByProtocolMap;
upstreamHeaders?: Record<string, string>;
isHidden?: boolean;
};
function readCompatList(providerId: string): ModelCompatOverride[] {
@@ -154,6 +155,7 @@ export type ModelCompatPatch = {
compatByProtocol?: CompatByProtocolMap;
/** Replace top-level extra headers for override-only rows; omit to leave unchanged. */
upstreamHeaders?: Record<string, string> | null;
isHidden?: boolean | null;
};
function compatByProtocolHasEntries(map: CompatByProtocolMap | undefined): boolean {
@@ -201,9 +203,18 @@ export function mergeModelCompatOverride(
const filtered = list.filter((e) => e.id !== modelId);
const hasPreserveFlag = Object.prototype.hasOwnProperty.call(next, "preserveOpenAIDeveloperRole");
const hasTopUpstream = next.upstreamHeaders && Object.keys(next.upstreamHeaders).length > 0;
if ("isHidden" in patch) {
if (patch.isHidden === null) {
delete next.isHidden;
} else {
next.isHidden = Boolean(patch.isHidden);
}
}
const hasHiddenFlag = Object.prototype.hasOwnProperty.call(next, "isHidden");
if (
next.normalizeToolCallId ||
hasPreserveFlag ||
hasHiddenFlag ||
compatByProtocolHasEntries(next.compatByProtocol) ||
hasTopUpstream
) {
@@ -507,6 +518,7 @@ export async function updateCustomModel(
...(updates.normalizeToolCallId !== undefined
? { normalizeToolCallId: Boolean(updates.normalizeToolCallId) }
: {}),
...(updates.isHidden !== undefined ? { isHidden: Boolean(updates.isHidden) } : {}),
};
if (Object.prototype.hasOwnProperty.call(updates, "preserveOpenAIDeveloperRole")) {
if (updates.preserveOpenAIDeveloperRole === null) {
@@ -638,6 +650,18 @@ export function getModelPreserveOpenAIDeveloperRole(
return undefined;
}
/**
* Check if the model is flagged as hidden from the public catalog.
*/
export function getModelIsHidden(providerId: string, modelId: string): boolean {
const m = getCustomModelRow(providerId, modelId);
if (m && Object.prototype.hasOwnProperty.call(m, "isHidden")) {
return Boolean(m.isHidden);
}
const co = readCompatList(providerId).find((e) => e.id === modelId);
return Boolean(co?.isHidden);
}
function readUpstreamFromJsonRecord(
row: JsonRecord | null | undefined,
key: "upstreamHeaders"
+1
View File
@@ -57,6 +57,7 @@ export {
getModelNormalizeToolCallId,
getModelPreserveOpenAIDeveloperRole,
getModelUpstreamExtraHeaders,
getModelIsHidden,
} from "./db/models";
export type { ModelCompatPerProtocol, ModelCompatPatch } from "./db/models";
+298
View File
@@ -0,0 +1,298 @@
import fs from "fs/promises";
import path from "path";
import { getProviderConnectionById } from "@/lib/localDb";
import { createBackup } from "@/shared/services/backupService";
import { getCliConfigPaths } from "@/shared/services/cliRuntime";
import {
TOKEN_EXPIRY_BUFFER_MS,
getAccessToken,
updateProviderCredentials,
} from "@/sse/services/tokenRefresh";
import { isUnrecoverableRefreshError } from "@omniroute/open-sse/services/tokenRefresh.ts";
type JsonRecord = Record<string, unknown>;
interface CodexConnectionLike {
id?: string;
provider?: string;
authType?: string;
name?: string;
email?: string;
displayName?: string;
accessToken?: string | null;
refreshToken?: string | null;
idToken?: string | null;
expiresAt?: string | null;
expiresIn?: number | null;
providerSpecificData?: JsonRecord | null;
}
export interface CodexAuthFilePayload {
auth_mode: "chatgpt";
OPENAI_API_KEY: null;
tokens: {
id_token: string;
access_token: string;
refresh_token: string;
account_id: string;
};
last_refresh: string;
}
export interface BuiltCodexAuthFile {
connectionId: string;
connectionLabel: string;
fileName: string;
payload: CodexAuthFilePayload;
content: string;
}
export class CodexAuthFileError extends Error {
status: number;
code: string;
constructor(message: string, status = 400, code = "invalid_request") {
super(message);
this.name = "CodexAuthFileError";
this.status = status;
this.code = code;
}
}
const CODEX_REFRESH_BUFFER_MS = Math.max(TOKEN_EXPIRY_BUFFER_MS, 5 * 60 * 1000);
function toRecord(value: unknown): JsonRecord {
return value && typeof value === "object" && !Array.isArray(value) ? (value as JsonRecord) : {};
}
function toNonEmptyString(value: unknown): string | null {
if (typeof value !== "string") return null;
const trimmed = value.trim();
return trimmed ? trimmed : null;
}
function decodeJwtPayload(jwt: string): JsonRecord | null {
try {
const parts = jwt.split(".");
if (parts.length !== 3) return null;
const payload = Buffer.from(parts[1], "base64url").toString("utf8");
return toRecord(JSON.parse(payload));
} catch {
return null;
}
}
function extractCodexAccountId(idToken: string, providerSpecificData: unknown): string | null {
const payload = decodeJwtPayload(idToken);
const authInfo = payload ? toRecord(payload["https://api.openai.com/auth"]) : {};
return (
toNonEmptyString(authInfo.chatgpt_account_id) ||
toNonEmptyString(authInfo.account_id) ||
toNonEmptyString(toRecord(providerSpecificData).workspaceId)
);
}
function shouldRefreshCodexConnection(connection: CodexConnectionLike): boolean {
if (!toNonEmptyString(connection.accessToken)) {
return true;
}
const expiresAt = toNonEmptyString(connection.expiresAt);
if (!expiresAt) {
return false;
}
const expiresAtMs = new Date(expiresAt).getTime();
if (Number.isNaN(expiresAtMs)) {
return false;
}
return expiresAtMs - Date.now() <= CODEX_REFRESH_BUFFER_MS;
}
function getConnectionLabel(connection: CodexConnectionLike): string {
return (
toNonEmptyString(connection.name) ||
toNonEmptyString(connection.email) ||
toNonEmptyString(connection.displayName) ||
toNonEmptyString(connection.id) ||
"codex-account"
);
}
function sanitizeFileNamePart(value: string): string {
const normalized = value
.trim()
.toLowerCase()
.replace(/[^a-z0-9._-]+/g, "-")
.replace(/^-+|-+$/g, "");
return normalized || "account";
}
function buildCodexAuthPayload(connection: CodexConnectionLike): CodexAuthFilePayload {
const idToken = toNonEmptyString(connection.idToken);
const accessToken = toNonEmptyString(connection.accessToken);
const refreshToken = toNonEmptyString(connection.refreshToken);
if (!idToken) {
throw new CodexAuthFileError(
"Codex connection is missing id_token. Re-authenticate this account before exporting.",
409,
"reauth_required"
);
}
if (!accessToken) {
throw new CodexAuthFileError(
"Codex connection is missing access_token. Refresh or re-authenticate this account first.",
409,
"access_token_missing"
);
}
if (!refreshToken) {
throw new CodexAuthFileError(
"Codex connection is missing refresh_token. Re-authenticate this account before exporting.",
409,
"reauth_required"
);
}
const accountId = extractCodexAccountId(idToken, connection.providerSpecificData);
if (!accountId) {
throw new CodexAuthFileError(
"Unable to derive Codex account_id from the stored session. Re-authenticate this account.",
409,
"account_id_missing"
);
}
return {
auth_mode: "chatgpt",
OPENAI_API_KEY: null,
tokens: {
id_token: idToken,
access_token: accessToken,
refresh_token: refreshToken,
account_id: accountId,
},
last_refresh: new Date().toISOString(),
};
}
async function resolveFreshCodexConnection(connectionId: string): Promise<CodexConnectionLike> {
const connection = (await getProviderConnectionById(connectionId)) as CodexConnectionLike | null;
if (!connection) {
throw new CodexAuthFileError("Connection not found", 404, "not_found");
}
if (connection.provider !== "codex") {
throw new CodexAuthFileError("Only Codex provider connections can export Codex auth files");
}
if (connection.authType !== "oauth") {
throw new CodexAuthFileError("Only OAuth Codex connections support auth.json export");
}
if (!shouldRefreshCodexConnection(connection)) {
return connection;
}
const refreshToken = toNonEmptyString(connection.refreshToken);
if (!refreshToken) {
throw new CodexAuthFileError(
"Codex connection requires refresh but no refresh_token is available. Re-authenticate first.",
409,
"reauth_required"
);
}
const refreshed = await getAccessToken("codex", {
connectionId,
accessToken: connection.accessToken,
refreshToken,
expiresAt: connection.expiresAt,
expiresIn: connection.expiresIn,
idToken: connection.idToken,
providerSpecificData: connection.providerSpecificData,
});
if (isUnrecoverableRefreshError(refreshed)) {
throw new CodexAuthFileError(
"Codex refresh token is no longer valid. Re-authenticate this account before exporting.",
409,
"reauth_required"
);
}
if (!refreshed?.accessToken) {
throw new CodexAuthFileError(
"Failed to refresh the Codex session before exporting the auth file. Re-authenticate this account if the session is stale.",
502,
"refresh_failed"
);
}
await updateProviderCredentials(connectionId, refreshed);
return {
...connection,
accessToken: refreshed.accessToken,
refreshToken: toNonEmptyString(refreshed.refreshToken) || refreshToken,
expiresIn:
typeof refreshed.expiresIn === "number" ? refreshed.expiresIn : connection.expiresIn || null,
expiresAt:
typeof refreshed.expiresIn === "number"
? new Date(Date.now() + refreshed.expiresIn * 1000).toISOString()
: connection.expiresAt || null,
providerSpecificData: refreshed.providerSpecificData
? {
...toRecord(connection.providerSpecificData),
...toRecord(refreshed.providerSpecificData),
}
: connection.providerSpecificData,
};
}
export async function buildCodexAuthFile(connectionId: string): Promise<BuiltCodexAuthFile> {
const connection = await resolveFreshCodexConnection(connectionId);
const payload = buildCodexAuthPayload(connection);
const connectionLabel = getConnectionLabel(connection);
const fileName = `codex-auth-${sanitizeFileNamePart(connectionLabel)}.json`;
const content = JSON.stringify(payload, null, 2) + "\n";
return {
connectionId,
connectionLabel,
fileName,
payload,
content,
};
}
export async function writeCodexAuthFileToLocalCli(connectionId: string) {
const built = await buildCodexAuthFile(connectionId);
const paths = getCliConfigPaths("codex");
const authPath = paths?.auth;
if (!authPath) {
throw new CodexAuthFileError("Codex auth path could not be resolved", 500, "path_unavailable");
}
await fs.mkdir(path.dirname(authPath), { recursive: true });
await createBackup("codex", authPath);
await fs.writeFile(authPath, built.content, { encoding: "utf8", mode: 0o600 });
try {
await fs.chmod(authPath, 0o600);
} catch {
// Best effort on platforms that ignore chmod semantics.
}
return {
...built,
authPath,
};
}
+60 -10
View File
@@ -10,7 +10,9 @@
import path from "path";
import fs from "fs";
import { getDbInstance } from "../db/core";
import { getSettings } from "../db/settings";
import { shouldPersistToDisk, CALL_LOGS_DIR } from "./migrations";
import { getLoggedInputTokens, getLoggedOutputTokens } from "./tokenAccounting";
import { isNoLog } from "../compliance";
import { sanitizePII } from "../piiSanitizer";
@@ -47,7 +49,9 @@ function hasTruncatedFlag(value: unknown): boolean {
return (value as Record<string, unknown>)._truncated === true;
}
const CALL_LOGS_MAX = parseInt(process.env.CALL_LOGS_MAX || "200", 10);
const DEFAULT_MAX_CALL_LOGS = 10000;
const CALL_LOGS_MAX_CACHE_TTL_MS = 30_000;
const LOG_RETENTION_DAYS = parseInt(process.env.LOG_RETENTION_DAYS || "7", 10);
const CALL_LOG_PAYLOAD_MODE = (() => {
const value = (process.env.CALL_LOG_PAYLOAD_MODE || "full").toLowerCase();
@@ -56,6 +60,55 @@ const CALL_LOG_PAYLOAD_MODE = (() => {
const shouldLogPayloadInDb = CALL_LOG_PAYLOAD_MODE !== "none";
const shouldLogPayloadOnDisk = CALL_LOG_PAYLOAD_MODE === "full";
let callLogsMaxCache = {
value: resolveCallLogsMaxValue(process.env.CALL_LOGS_MAX) ?? DEFAULT_MAX_CALL_LOGS,
expiresAt: 0,
};
function resolveCallLogsMaxValue(value: unknown): number | null {
if (typeof value === "number" && Number.isInteger(value) && value > 0) return value;
if (typeof value === "string" && value.trim().length > 0) {
const parsed = Number.parseInt(value, 10);
return Number.isInteger(parsed) && parsed > 0 ? parsed : null;
}
return null;
}
async function getMaxCallLogs(): Promise<number> {
const now = Date.now();
if (callLogsMaxCache.expiresAt > now) {
return callLogsMaxCache.value;
}
let value = resolveCallLogsMaxValue(process.env.CALL_LOGS_MAX) ?? DEFAULT_MAX_CALL_LOGS;
try {
const { getSettings } = await import("@/lib/localDb");
const settings = await getSettings();
const configured =
resolveCallLogsMaxValue(settings.maxCallLogs) ??
resolveCallLogsMaxValue(settings.MAX_CALL_LOGS);
if (configured !== null) {
value = configured;
}
} catch {
// Fall back to env/default cap when settings are unavailable.
}
callLogsMaxCache = {
value,
expiresAt: now + CALL_LOGS_MAX_CACHE_TTL_MS,
};
return value;
}
export function invalidateCallLogsMaxCache(): void {
callLogsMaxCache = {
value: resolveCallLogsMaxValue(process.env.CALL_LOGS_MAX) ?? DEFAULT_MAX_CALL_LOGS,
expiresAt: 0,
};
}
/** Fields that should always be redacted from logged payloads */
const SENSITIVE_KEYS = new Set([
"api_key",
@@ -185,12 +238,8 @@ export async function saveCallLog(entry: any) {
account,
connectionId: entry.connectionId || null,
duration: entry.duration || 0,
tokensIn: toNumber(
(entry.tokens?.prompt_tokens ?? entry.tokens?.input_tokens ?? 0) +
(entry.tokens?.cache_read_input_tokens ?? entry.tokens?.cached_tokens ?? 0) +
(entry.tokens?.cache_creation_input_tokens ?? 0)
),
tokensOut: toNumber(entry.tokens?.completion_tokens ?? entry.tokens?.output_tokens ?? 0),
tokensIn: toNumber(getLoggedInputTokens(entry.tokens)),
tokensOut: toNumber(getLoggedOutputTokens(entry.tokens)),
requestType: entry.requestType || null,
sourceFormat: entry.sourceFormat || null,
targetFormat: entry.targetFormat || null,
@@ -215,17 +264,18 @@ export async function saveCallLog(entry: any) {
`
).run(logEntry);
// 2. Trim old entries beyond CALL_LOGS_MAX
// 2. Trim old entries beyond max
const maxLogs = await getMaxCallLogs();
const countRow = asRecord(db.prepare("SELECT COUNT(*) as cnt FROM call_logs").get());
const count = toNumber(countRow.cnt);
if (count > CALL_LOGS_MAX) {
if (count > maxLogs) {
db.prepare(
`
DELETE FROM call_logs WHERE id IN (
SELECT id FROM call_logs ORDER BY timestamp ASC LIMIT ?
)
`
).run(count - CALL_LOGS_MAX);
).run(count - maxLogs);
}
// 3. Write full payload to disk file (untruncated)
+79
View File
@@ -0,0 +1,79 @@
type JsonRecord = Record<string, unknown>;
function asRecord(value: unknown): JsonRecord {
return value && typeof value === "object" && !Array.isArray(value) ? (value as JsonRecord) : {};
}
function toFiniteNumber(value: unknown): number {
if (typeof value === "number" && Number.isFinite(value)) return value;
if (typeof value === "string" && value.trim().length > 0) {
const parsed = Number(value);
return Number.isFinite(parsed) ? parsed : 0;
}
return 0;
}
function getPromptTokenDetails(tokens: unknown): JsonRecord {
const tokenRecord = asRecord(tokens);
const promptDetails = asRecord(tokenRecord.prompt_tokens_details);
if (Object.keys(promptDetails).length > 0) return promptDetails;
return asRecord(tokenRecord.input_tokens_details);
}
export function getPromptCacheReadTokens(tokens: unknown): number {
const tokenRecord = asRecord(tokens);
const promptDetails = getPromptTokenDetails(tokenRecord);
return toFiniteNumber(
tokenRecord.cacheRead ??
tokenRecord.cache_read_input_tokens ??
tokenRecord.cached_tokens ??
promptDetails.cached_tokens
);
}
export function getPromptCacheCreationTokens(tokens: unknown): number {
const tokenRecord = asRecord(tokens);
const promptDetails = getPromptTokenDetails(tokenRecord);
return toFiniteNumber(
tokenRecord.cacheCreation ??
tokenRecord.cache_creation_input_tokens ??
promptDetails.cache_creation_tokens
);
}
export function getLoggedInputTokens(tokens: unknown): number {
const tokenRecord = asRecord(tokens);
if (tokenRecord.input !== undefined && tokenRecord.input !== null) {
return toFiniteNumber(tokenRecord.input);
}
if (tokenRecord.input_tokens !== undefined && tokenRecord.input_tokens !== null) {
return toFiniteNumber(tokenRecord.input_tokens);
}
const promptTokens = toFiniteNumber(tokenRecord.prompt_tokens);
if (promptTokens <= 0) return 0;
const promptDetails = getPromptTokenDetails(tokenRecord);
const cachedFromDetails = toFiniteNumber(promptDetails.cached_tokens);
if (cachedFromDetails > 0) {
return Math.max(promptTokens - cachedFromDetails, 0);
}
if ("cached_tokens" in tokenRecord && !("cache_read_input_tokens" in tokenRecord)) {
return Math.max(promptTokens - toFiniteNumber(tokenRecord.cached_tokens), 0);
}
return promptTokens;
}
export function getLoggedOutputTokens(tokens: unknown): number {
const tokenRecord = asRecord(tokens);
if (tokenRecord.output !== undefined && tokenRecord.output !== null) {
return toFiniteNumber(tokenRecord.output);
}
return toFiniteNumber(
tokenRecord.completion_tokens ?? tokenRecord.output_tokens
);
}

Some files were not shown because too many files have changed in this diff Show More