feat: add /v1/completions legacy endpoint + show all 3 OpenAI endpoints in dashboard

- New route /v1/completions: accepts prompt string (legacy) + messages array
  Normalizes prompt format to chat/completions format automatically
- EndpointPageClient: Added 3rd card (Completions Legacy) in Core APIs section
  Dashboard now shows: /v1/chat/completions, /v1/responses, /v1/completions
- i18n: completionsLegacy/completionsLegacyDesc synced to 30 languages
This commit is contained in:
diegosouzapw
2026-03-12 12:57:31 -03:00
parent 763fdf3135
commit 1d7bc5fed7
34 changed files with 217 additions and 31 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "omniroute",
"version": "2.3.8",
"version": "2.3.9",
"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": {