File size: 7,631 Bytes
35743bd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
export const DOCS_ENDPOINT_ROWS = [
  { path: "/v1/chat/completions", method: "POST", noteKey: "endpointChatNote" },
  { path: "/v1/responses", method: "POST", noteKey: "endpointResponsesNote" },
  { path: "/v1/completions", method: "POST", noteKey: "endpointCompletionsNote" },
  { path: "/v1/models", method: "GET", noteKey: "endpointModelsNote" },
  { path: "/v1/embeddings", method: "POST", noteKey: "endpointEmbeddingsNote" },
  { path: "/v1/moderations", method: "POST", noteKey: "endpointModerationsNote" },
  { path: "/v1/rerank", method: "POST", noteKey: "endpointRerankNote" },
  { path: "/v1/search", method: "POST", noteKey: "endpointSearchNote" },
  { path: "/v1/search/analytics", method: "GET", noteKey: "endpointSearchAnalyticsNote" },
  { path: "/v1/audio/transcriptions", method: "POST", noteKey: "endpointAudioNote" },
  { path: "/v1/audio/speech", method: "POST", noteKey: "endpointSpeechNote" },
  { path: "/v1/images/generations", method: "POST", noteKey: "endpointImagesNote" },
  { path: "/v1/videos/generations", method: "POST", noteKey: "endpointVideoNote" },
  { path: "/v1/music/generations", method: "POST", noteKey: "endpointMusicNote" },
  { path: "/v1/messages", method: "POST", noteKey: "endpointMessagesNote" },
  { path: "/v1/messages/count_tokens", method: "POST", noteKey: "endpointCountTokensNote" },
  { path: "/v1/files", method: "POST", noteKey: "endpointFilesNote" },
  { path: "/v1/batches", method: "POST", noteKey: "endpointBatchesNote" },
  { path: "/v1/ws", method: "GET", noteKey: "endpointWsNote" },
  { path: "/chat/completions", method: "POST", noteKey: "endpointRewriteChatNote" },
  { path: "/responses", method: "POST", noteKey: "endpointRewriteResponsesNote" },
  { path: "/models", method: "GET", noteKey: "endpointRewriteModelsNote" },
] as const;

export const DOCS_MANAGEMENT_ENDPOINT_ROWS = [
  { path: "/api/providers", method: "GET", noteKey: "mgmtProvidersListNote" },
  { path: "/api/providers", method: "POST", noteKey: "mgmtProvidersCreateNote" },
  { path: "/api/providers/:id", method: "PUT", noteKey: "mgmtProvidersUpdateNote" },
  { path: "/api/providers/:id", method: "DELETE", noteKey: "mgmtProvidersDeleteNote" },
  { path: "/api/providers/:id/test", method: "POST", noteKey: "mgmtProvidersTestNote" },
  { path: "/api/providers/:id/models", method: "GET", noteKey: "mgmtProvidersModelsNote" },
  { path: "/api/settings", method: "GET", noteKey: "mgmtSettingsGetNote" },
  { path: "/api/settings", method: "PUT", noteKey: "mgmtSettingsUpdateNote" },
  { path: "/api/settings/payload-rules", method: "GET", noteKey: "mgmtPayloadRulesGetNote" },
  { path: "/api/settings/payload-rules", method: "PUT", noteKey: "mgmtPayloadRulesUpdateNote" },
  { path: "/api/v1/management/proxies", method: "GET", noteKey: "mgmtProxiesListNote" },
  { path: "/api/v1/management/proxies", method: "POST", noteKey: "mgmtProxiesCreateNote" },
  {
    path: "/api/v1/management/proxies/health",
    method: "GET",
    noteKey: "mgmtProxiesHealthNote",
  },
  {
    path: "/api/v1/management/proxies/bulk-assign",
    method: "PUT",
    noteKey: "mgmtProxiesBulkAssignNote",
  },
  {
    path: "/api/v1/management/proxies/assignments",
    method: "GET",
    noteKey: "mgmtAssignmentsListNote",
  },
  {
    path: "/api/v1/management/proxies/assignments",
    method: "PUT",
    noteKey: "mgmtAssignmentsUpdateNote",
  },
  {
    path: "/api/settings/proxies/migrate",
    method: "POST",
    noteKey: "mgmtLegacyMigrationNote",
  },
] as const;

export const DOCS_FEATURE_ITEMS = [
  { icon: "hub", titleKey: "featureRoutingTitle", textKey: "featureRoutingText" },
  { icon: "layers", titleKey: "featureCombosTitle", textKey: "featureCombosText" },
  { icon: "auto_awesome", titleKey: "featureAutoComboTitle", textKey: "featureAutoComboText" },
  { icon: "travel_explore", titleKey: "featureSearchTitle", textKey: "featureSearchText" },
  { icon: "bar_chart", titleKey: "featureUsageTitle", textKey: "featureUsageText" },
  { icon: "analytics", titleKey: "featureAnalyticsTitle", textKey: "featureAnalyticsText" },
  { icon: "health_and_safety", titleKey: "featureHealthTitle", textKey: "featureHealthText" },
  { icon: "psychology", titleKey: "featureMemoryTitle", textKey: "featureMemoryText" },
  { icon: "auto_fix_high", titleKey: "featureSkillsTitle", textKey: "featureSkillsText" },
  { icon: "smart_toy", titleKey: "featureAcpTitle", textKey: "featureAcpText" },
  { icon: "terminal", titleKey: "featureCliTitle", textKey: "featureCliText" },
  { icon: "shield", titleKey: "featureSecurityTitle", textKey: "featureSecurityText" },
] as const;

export const DOCS_USE_CASE_ITEMS = [
  { titleKey: "useCaseSingleEndpointTitle", textKey: "useCaseSingleEndpointText" },
  { titleKey: "useCaseFallbackTitle", textKey: "useCaseFallbackText" },
  { titleKey: "useCaseUsageVisibilityTitle", textKey: "useCaseUsageVisibilityText" },
] as const;

export const DOCS_DEPLOYMENT_GUIDES = [
  {
    icon: "android",
    titleKey: "deployTermuxTitle",
    textKey: "deployTermuxText",
    href: "https://github.com/diegosouzapw/OmniRoute/blob/main/docs/TERMUX_GUIDE.md",
  },
] as const;

export const DOCS_TROUBLESHOOTING_KEYS = [
  "troubleshootingModelRouting",
  "troubleshootingAmbiguousModels",
  "troubleshootingCodexFamily",
  "troubleshootingTestConnection",
  "troubleshootingCircuitBreaker",
  "troubleshootingOAuth",
] as const;

export const DOCS_TOC_ITEMS = [
  { href: "#quick-start", labelKey: "quickStart" },
  { href: "#deployment", labelKey: "deploymentGuides" },
  { href: "#features", labelKey: "features" },
  { href: "#supported-providers", labelKey: "supportedProvidersToc" },
  { href: "#use-cases", labelKey: "commonUseCases" },
  { href: "#client-compatibility", labelKey: "clientCompatibility" },
  { href: "#protocols", labelKey: "protocolsToc" },
  { href: "#mcp-tools", labelKey: "mcpToolsToc" },
  { href: "#api-reference", labelKey: "apiReference" },
  { href: "#management-api", labelKey: "managementApiReference" },
  { href: "#model-prefixes", labelKey: "modelPrefixes" },
  { href: "#troubleshooting", labelKey: "troubleshooting" },
] as const;

export const DOCS_MCP_TOOL_GROUPS = [
  {
    titleKey: "mcpToolsRoutingTitle",
    textKey: "mcpToolsRoutingDesc",
    tools: [
      "omniroute_get_health",
      "omniroute_list_combos",
      "omniroute_get_combo_metrics",
      "omniroute_switch_combo",
      "omniroute_check_quota",
      "omniroute_route_request",
      "omniroute_cost_report",
      "omniroute_list_models_catalog",
      "omniroute_web_search",
    ],
  },
  {
    titleKey: "mcpToolsOperationsTitle",
    textKey: "mcpToolsOperationsDesc",
    tools: [
      "omniroute_simulate_route",
      "omniroute_set_budget_guard",
      "omniroute_set_routing_strategy",
      "omniroute_set_resilience_profile",
      "omniroute_test_combo",
      "omniroute_get_provider_metrics",
      "omniroute_best_combo_for_task",
      "omniroute_explain_route",
      "omniroute_get_session_snapshot",
      "omniroute_db_health_check",
      "omniroute_sync_pricing",
    ],
  },
  {
    titleKey: "mcpToolsCacheTitle",
    textKey: "mcpToolsCacheDesc",
    tools: ["omniroute_cache_stats", "omniroute_cache_flush"],
  },
  {
    titleKey: "mcpToolsMemoryTitle",
    textKey: "mcpToolsMemoryDesc",
    tools: ["omniroute_memory_search", "omniroute_memory_add", "omniroute_memory_clear"],
  },
  {
    titleKey: "mcpToolsSkillsTitle",
    textKey: "mcpToolsSkillsDesc",
    tools: [
      "omniroute_skills_list",
      "omniroute_skills_enable",
      "omniroute_skills_execute",
      "omniroute_skills_executions",
    ],
  },
] as const;