assassinlike commited on
Commit
d7b16ce
·
verified ·
1 Parent(s): 373a350

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/__pycache__/post_call_rules.cpython-310.pyc +0 -0
  2. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/byok_oauth_endpoints.py +892 -0
  3. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/cost_calculator.py +77 -0
  4. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/db.py +939 -0
  5. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/discoverable_endpoints.py +1049 -0
  6. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/mcp_context.py +21 -0
  7. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/mcp_debug.py +325 -0
  8. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/mcp_server_manager.py +0 -0
  9. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/oauth2_token_cache.py +278 -0
  10. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/oauth_utils.py +48 -0
  11. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/openapi_to_mcp_generator.py +474 -0
  12. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/rest_endpoints.py +1119 -0
  13. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/semantic_tool_filter.py +327 -0
  14. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/server.py +0 -0
  15. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/sse_transport.py +150 -0
  16. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/tool_registry.py +140 -0
  17. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/toolset_db.py +117 -0
  18. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/ui_session_utils.py +85 -0
  19. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/utils.py +322 -0
  20. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/404.html +1 -0
  21. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/__next.__PAGE__.txt +30 -0
  22. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/__next._full.txt +62 -0
  23. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/__next._head.txt +6 -0
  24. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/__next._index.txt +8 -0
  25. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/__next._tree.txt +5 -0
  26. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/_not-found.html +1 -0
  27. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/_not-found.txt +17 -0
  28. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/api-reference.html +1 -0
  29. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/api-reference.txt +28 -0
  30. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/chat.html +1 -0
  31. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/chat.txt +22 -0
  32. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/favicon.ico +0 -0
  33. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/guardrails.html +1 -0
  34. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/guardrails.txt +27 -0
  35. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/index.html +1 -0
  36. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/index.txt +62 -0
  37. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/login.html +1 -0
  38. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/login.txt +22 -0
  39. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/logs.html +1 -0
  40. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/logs.txt +28 -0
  41. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/model-hub.html +1 -0
  42. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/model-hub.txt +27 -0
  43. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/model_hub.html +1 -0
  44. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/model_hub.txt +24 -0
  45. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/model_hub_table.html +1 -0
  46. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/model_hub_table.txt +28 -0
  47. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/models-and-endpoints.html +1 -0
  48. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/models-and-endpoints.txt +28 -0
  49. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/next.svg +1 -0
  50. data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/onboarding.html +1 -0
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/__pycache__/post_call_rules.cpython-310.pyc ADDED
Binary file (317 Bytes). View file
 
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/byok_oauth_endpoints.py ADDED
@@ -0,0 +1,892 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ BYOK (Bring Your Own Key) OAuth 2.1 Authorization Server endpoints for MCP servers.
3
+
4
+ When an MCP client connects to a BYOK-enabled server and no stored credential exists,
5
+ LiteLLM runs a minimal OAuth 2.1 authorization code flow. The "authorization page" is
6
+ just a form that asks the user for their API key — not a full identity-provider OAuth.
7
+
8
+ Endpoints implemented here:
9
+ GET /.well-known/oauth-authorization-server — OAuth authorization server metadata
10
+ GET /.well-known/oauth-protected-resource — OAuth protected resource metadata
11
+ GET /v1/mcp/oauth/authorize — Shows HTML form to collect the API key
12
+ POST /v1/mcp/oauth/authorize — Stores temp auth code and redirects
13
+ POST /v1/mcp/oauth/token — Exchanges code for a bearer JWT token
14
+ """
15
+
16
+ import base64
17
+ import hashlib
18
+ import html as _html_module
19
+ import time
20
+ import uuid
21
+ from typing import Dict, Optional, cast
22
+ from urllib.parse import urlencode
23
+
24
+ import jwt
25
+ from fastapi import APIRouter, Depends, Form, HTTPException, Request
26
+ from fastapi.responses import HTMLResponse, JSONResponse, RedirectResponse
27
+
28
+ from litellm._logging import verbose_proxy_logger
29
+ from litellm.proxy._experimental.mcp_server.db import store_user_credential
30
+ from litellm.proxy._experimental.mcp_server.discoverable_endpoints import (
31
+ get_request_base_url,
32
+ )
33
+ from litellm.proxy._experimental.mcp_server.oauth_utils import (
34
+ TOKEN_NO_CACHE_HEADERS,
35
+ validate_loopback_redirect_uri,
36
+ )
37
+ from litellm.proxy._types import UserAPIKeyAuth
38
+
39
+ # ---------------------------------------------------------------------------
40
+ # In-memory store for pending authorization codes.
41
+ # Each entry: {code: {api_key, server_id, code_challenge, redirect_uri, user_id, expires_at}}
42
+ # ---------------------------------------------------------------------------
43
+ _byok_auth_codes: Dict[str, dict] = {}
44
+
45
+ # Authorization codes expire after 5 minutes.
46
+ _AUTH_CODE_TTL_SECONDS = 300
47
+ # Hard cap to prevent memory exhaustion from incomplete OAuth flows.
48
+ _AUTH_CODES_MAX_SIZE = 1000
49
+
50
+ router = APIRouter(tags=["mcp"])
51
+
52
+
53
+ # ---------------------------------------------------------------------------
54
+ # PKCE helper
55
+ # ---------------------------------------------------------------------------
56
+
57
+
58
+ def _verify_pkce(code_verifier: str, code_challenge: str) -> bool:
59
+ """Return True iff SHA-256(code_verifier) == code_challenge (base64url, no padding)."""
60
+ digest = hashlib.sha256(code_verifier.encode()).digest()
61
+ computed = base64.urlsafe_b64encode(digest).rstrip(b"=").decode()
62
+ return computed == code_challenge
63
+
64
+
65
+ # ---------------------------------------------------------------------------
66
+ # Cleanup of expired auth codes (called lazily on each request)
67
+ # ---------------------------------------------------------------------------
68
+
69
+
70
+ def _purge_expired_codes() -> None:
71
+ now = time.time()
72
+ expired = [k for k, v in _byok_auth_codes.items() if v["expires_at"] < now]
73
+ for k in expired:
74
+ del _byok_auth_codes[k]
75
+
76
+
77
+ def _oauth_token_error(code: str, status: int = 400) -> JSONResponse:
78
+ """RFC 6749 §5.2 token-endpoint error body: ``{"error": "<code>"}``.
79
+ FastAPI's default ``HTTPException`` renders ``{"detail": ...}`` which
80
+ spec-compliant OAuth clients parsing the ``error`` field won't recognize.
81
+ """
82
+ return JSONResponse(
83
+ status_code=status, content={"error": code}, headers=TOKEN_NO_CACHE_HEADERS
84
+ )
85
+
86
+
87
+ def _user_id_from_session_cookie(request: Request) -> Optional[str]:
88
+ """Return user_id from the UI ``token`` cookie (HS256-signed with
89
+ ``master_key``), or None if missing/invalid.
90
+
91
+ The /token endpoint in this file ALSO issues master-key-signed JWTs
92
+ (type="byok_session") for MCP-client-side use. They must not be
93
+ accepted here as UI sessions — otherwise a leaked byok_session token
94
+ could be replayed as a cookie to re-authorize BYOK writes. Distinguish
95
+ by requiring a ``login_method`` claim (UI tokens set ``"sso"`` or
96
+ ``"username_password"``; byok_session tokens never set it) and
97
+ rejecting any token whose ``type`` identifies it as non-UI.
98
+ """
99
+ # Inline import avoids a circular dep (proxy_server -> mcp_server router).
100
+ from litellm.proxy.proxy_server import master_key
101
+
102
+ if not master_key:
103
+ return None
104
+ token = request.cookies.get("token")
105
+ if not token:
106
+ return None
107
+ try:
108
+ payload = jwt.decode(
109
+ token,
110
+ master_key,
111
+ algorithms=["HS256"],
112
+ # Require an expiry claim so a leaked UI session cookie has a
113
+ # bounded lifetime. PyJWT verifies exp by default when present;
114
+ # require=["exp"] additionally rejects tokens that omit it.
115
+ options={"require": ["exp"]},
116
+ )
117
+ except jwt.InvalidTokenError:
118
+ return None
119
+ if payload.get("type") == "byok_session":
120
+ return None
121
+ if payload.get("login_method") not in ("sso", "username_password"):
122
+ return None
123
+ user_id = payload.get("user_id")
124
+ return user_id if isinstance(user_id, str) and user_id else None
125
+
126
+
127
+ async def _byok_session_auth(request: Request) -> UserAPIKeyAuth:
128
+ """Require the UI session cookie. Programmatic BYOK management uses
129
+ ``POST /v1/mcp/server/{id}/user-credential`` instead."""
130
+ user_id = _user_id_from_session_cookie(request)
131
+ if not user_id:
132
+ raise HTTPException(status_code=401, detail="login_required")
133
+ return UserAPIKeyAuth(api_key="byok_session_cookie", user_id=user_id)
134
+
135
+
136
+ def _build_authorize_html(
137
+ server_name: str,
138
+ server_initial: str,
139
+ client_id: str,
140
+ redirect_uri: str,
141
+ code_challenge: str,
142
+ code_challenge_method: str,
143
+ state: str,
144
+ server_id: str,
145
+ access_items: list,
146
+ help_url: str,
147
+ ) -> str:
148
+ """Build the 2-step BYOK OAuth authorization page HTML."""
149
+
150
+ # Escape all user-supplied / externally-derived values before interpolation
151
+ e = _html_module.escape
152
+ server_name = e(server_name)
153
+ server_initial = e(server_initial)
154
+ client_id = e(client_id)
155
+ redirect_uri = e(redirect_uri)
156
+ code_challenge = e(code_challenge)
157
+ code_challenge_method = e(code_challenge_method)
158
+ state = e(state)
159
+ server_id = e(server_id)
160
+
161
+ # Build access checklist rows
162
+ access_rows = "".join(
163
+ f'<div class="access-item"><span class="check">&#10003;</span>{e(item)}</div>'
164
+ for item in access_items
165
+ )
166
+ access_section = ""
167
+ if access_rows:
168
+ access_section = f"""
169
+ <div class="access-box">
170
+ <div class="access-header">
171
+ <span class="shield">&#9646;</span>
172
+ <span>Requested Access</span>
173
+ </div>
174
+ {access_rows}
175
+ </div>"""
176
+
177
+ # Help link for step 2
178
+ help_link_html = ""
179
+ if help_url:
180
+ help_link_html = f'<a class="help-link" href="{e(help_url)}" target="_blank">Where do I find my API key? &#8599;</a>'
181
+
182
+ return f"""<!DOCTYPE html>
183
+ <html lang="en">
184
+ <head>
185
+ <meta charset="UTF-8">
186
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
187
+ <title>Connect {server_name} &mdash; LiteLLM</title>
188
+ <style>
189
+ *, *::before, *::after {{ box-sizing: border-box; margin: 0; padding: 0; }}
190
+ body {{
191
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
192
+ background: #0f172a;
193
+ min-height: 100vh;
194
+ display: flex;
195
+ align-items: center;
196
+ justify-content: center;
197
+ padding: 24px;
198
+ }}
199
+ .modal {{
200
+ background: #ffffff;
201
+ border-radius: 20px;
202
+ padding: 36px 32px 32px;
203
+ width: 440px;
204
+ max-width: 100%;
205
+ position: relative;
206
+ box-shadow: 0 25px 60px rgba(0,0,0,0.35);
207
+ }}
208
+ /* Progress dots */
209
+ .dots {{
210
+ display: flex;
211
+ justify-content: center;
212
+ gap: 7px;
213
+ margin-bottom: 28px;
214
+ }}
215
+ .dot {{
216
+ width: 8px; height: 8px;
217
+ border-radius: 50%;
218
+ background: #e2e8f0;
219
+ }}
220
+ .dot.active {{ background: #38bdf8; }}
221
+ /* Close button */
222
+ .close-btn {{
223
+ position: absolute;
224
+ top: 16px; right: 16px;
225
+ background: none; border: none;
226
+ font-size: 16px; color: #94a3b8;
227
+ cursor: pointer; line-height: 1;
228
+ width: 28px; height: 28px;
229
+ border-radius: 6px;
230
+ display: flex; align-items: center; justify-content: center;
231
+ }}
232
+ .close-btn:hover {{ background: #f1f5f9; color: #475569; }}
233
+ /* Logo pair */
234
+ .logos {{
235
+ display: flex; align-items: center; justify-content: center;
236
+ gap: 12px; margin-bottom: 20px;
237
+ }}
238
+ .logo {{
239
+ width: 52px; height: 52px;
240
+ border-radius: 14px;
241
+ display: flex; align-items: center; justify-content: center;
242
+ font-size: 22px; font-weight: 800; color: white;
243
+ }}
244
+ .logo-img {{
245
+ width: 52px; height: 52px;
246
+ border-radius: 14px;
247
+ object-fit: cover;
248
+ border: 1.5px solid #e2e8f0;
249
+ }}
250
+ .logo-s {{ background: linear-gradient(135deg, #818cf8 0%, #4f46e5 100%); }}
251
+ .logo-arrow {{ color: #cbd5e1; font-size: 20px; font-weight: 300; }}
252
+ /* Headings */
253
+ .step-title {{
254
+ text-align: center;
255
+ font-size: 21px; font-weight: 700;
256
+ color: #0f172a; margin-bottom: 8px;
257
+ }}
258
+ .step-subtitle {{
259
+ text-align: center;
260
+ font-size: 14px; color: #64748b;
261
+ line-height: 1.55; margin-bottom: 22px;
262
+ }}
263
+ /* Info box */
264
+ .info-box {{
265
+ background: #f8fafc;
266
+ border-radius: 12px;
267
+ padding: 14px 16px;
268
+ display: flex; gap: 12px;
269
+ margin-bottom: 14px;
270
+ }}
271
+ .info-icon {{ font-size: 17px; flex-shrink: 0; margin-top: 1px; color: #38bdf8; }}
272
+ .info-box h4 {{ font-size: 13px; font-weight: 600; color: #1e293b; margin-bottom: 4px; }}
273
+ .info-box p {{ font-size: 13px; color: #64748b; line-height: 1.5; }}
274
+ /* Access checklist */
275
+ .access-box {{
276
+ background: #f8fafc;
277
+ border-radius: 12px;
278
+ padding: 14px 16px;
279
+ margin-bottom: 22px;
280
+ }}
281
+ .access-header {{
282
+ display: flex; align-items: center; gap: 8px;
283
+ margin-bottom: 10px;
284
+ }}
285
+ .shield {{ color: #22c55e; font-size: 15px; }}
286
+ .access-header > span:last-child {{
287
+ font-size: 11px; font-weight: 700;
288
+ letter-spacing: 0.07em;
289
+ text-transform: uppercase;
290
+ color: #475569;
291
+ }}
292
+ .access-item {{
293
+ display: flex; align-items: center; gap: 9px;
294
+ font-size: 13.5px; color: #374151;
295
+ padding: 3px 0;
296
+ }}
297
+ .check {{ color: #22c55e; font-weight: 700; font-size: 13px; }}
298
+ /* Primary CTA */
299
+ .btn-primary {{
300
+ width: 100%; padding: 15px;
301
+ background: #0f172a; color: white;
302
+ border: none; border-radius: 12px;
303
+ font-size: 15px; font-weight: 600;
304
+ cursor: pointer; margin-bottom: 10px;
305
+ }}
306
+ .btn-primary:hover {{ background: #1e293b; }}
307
+ .btn-cancel {{
308
+ width: 100%; padding: 8px;
309
+ background: none; border: none;
310
+ font-size: 13.5px; color: #94a3b8;
311
+ cursor: pointer;
312
+ }}
313
+ .btn-cancel:hover {{ color: #64748b; }}
314
+ /* Step 2 nav */
315
+ .step2-nav {{
316
+ display: flex; align-items: center;
317
+ justify-content: space-between;
318
+ margin-bottom: 24px;
319
+ }}
320
+ .back-btn {{
321
+ background: none; border: none;
322
+ font-size: 13.5px; color: #64748b;
323
+ cursor: pointer; display: flex; align-items: center; gap: 4px;
324
+ }}
325
+ .back-btn:hover {{ color: #374151; }}
326
+ /* Key icon */
327
+ .key-icon-wrap {{
328
+ width: 46px; height: 46px;
329
+ background: #e0f2fe;
330
+ border-radius: 12px;
331
+ display: flex; align-items: center; justify-content: center;
332
+ margin-bottom: 14px;
333
+ }}
334
+ .key-icon-wrap svg {{ width: 22px; height: 22px; color: #0284c7; }}
335
+ /* Form elements */
336
+ .field-label {{
337
+ font-size: 13.5px; font-weight: 600;
338
+ color: #1e293b; display: block;
339
+ margin-bottom: 7px;
340
+ }}
341
+ .key-input {{
342
+ width: 100%; padding: 11px 13px;
343
+ border: 1.5px solid #e2e8f0;
344
+ border-radius: 10px;
345
+ font-size: 14px; color: #0f172a;
346
+ outline: none; transition: border-color 0.15s, box-shadow 0.15s;
347
+ }}
348
+ .key-input:focus {{
349
+ border-color: #38bdf8;
350
+ box-shadow: 0 0 0 3px rgba(56,189,248,0.12);
351
+ }}
352
+ .help-link {{
353
+ display: inline-flex; align-items: center; gap: 4px;
354
+ color: #0ea5e9; font-size: 13px;
355
+ text-decoration: none; margin: 8px 0 16px;
356
+ }}
357
+ .help-link:hover {{ text-decoration: underline; }}
358
+ /* Save toggle card */
359
+ .save-card {{
360
+ border: 1.5px solid #e2e8f0;
361
+ border-radius: 12px;
362
+ padding: 13px 15px;
363
+ margin-bottom: 6px;
364
+ }}
365
+ .save-row {{
366
+ display: flex; align-items: center; gap: 10px;
367
+ }}
368
+ .save-icon {{ font-size: 16px; }}
369
+ .save-label {{
370
+ flex: 1;
371
+ font-size: 14px; font-weight: 500; color: #1e293b;
372
+ }}
373
+ /* Toggle switch */
374
+ .toggle {{ position: relative; width: 44px; height: 24px; flex-shrink: 0; }}
375
+ .toggle input {{ opacity: 0; width: 0; height: 0; }}
376
+ .slider {{
377
+ position: absolute; inset: 0;
378
+ background: #e2e8f0;
379
+ border-radius: 24px; cursor: pointer;
380
+ transition: background 0.18s;
381
+ }}
382
+ .slider::before {{
383
+ content: '';
384
+ position: absolute;
385
+ width: 18px; height: 18px;
386
+ left: 3px; bottom: 3px;
387
+ background: white;
388
+ border-radius: 50%;
389
+ transition: transform 0.18s;
390
+ box-shadow: 0 1px 3px rgba(0,0,0,0.18);
391
+ }}
392
+ input:checked + .slider {{ background: #38bdf8; }}
393
+ input:checked + .slider::before {{ transform: translateX(20px); }}
394
+ /* Duration pills */
395
+ .duration-section {{ margin-top: 14px; }}
396
+ .duration-label {{
397
+ font-size: 12px; font-weight: 600;
398
+ color: #64748b; margin-bottom: 8px;
399
+ text-transform: uppercase; letter-spacing: 0.05em;
400
+ }}
401
+ .pills {{ display: flex; flex-wrap: wrap; gap: 7px; }}
402
+ .pill {{
403
+ padding: 6px 13px;
404
+ border: 1.5px solid #e2e8f0;
405
+ border-radius: 20px;
406
+ font-size: 13px; color: #475569;
407
+ cursor: pointer; background: white;
408
+ transition: all 0.13s;
409
+ user-select: none;
410
+ }}
411
+ .pill:hover {{ border-color: #94a3b8; }}
412
+ .pill.sel {{
413
+ border-color: #38bdf8;
414
+ color: #0284c7;
415
+ background: #e0f2fe;
416
+ }}
417
+ /* Security note */
418
+ .sec-note {{
419
+ background: #f8fafc;
420
+ border-radius: 10px;
421
+ padding: 11px 14px;
422
+ display: flex; gap: 9px; align-items: flex-start;
423
+ margin: 16px 0;
424
+ }}
425
+ .sec-icon {{ font-size: 13px; color: #94a3b8; margin-top: 1px; flex-shrink: 0; }}
426
+ .sec-note p {{ font-size: 12.5px; color: #64748b; line-height: 1.5; }}
427
+ /* Connect button */
428
+ .btn-connect {{
429
+ width: 100%; padding: 15px;
430
+ border: none; border-radius: 12px;
431
+ font-size: 15px; font-weight: 600;
432
+ cursor: pointer;
433
+ background: #bae6fd; color: #0369a1;
434
+ transition: background 0.15s, color 0.15s;
435
+ }}
436
+ .btn-connect.ready {{
437
+ background: #0ea5e9; color: white;
438
+ }}
439
+ .btn-connect.ready:hover {{ background: #0284c7; }}
440
+ /* Step visibility */
441
+ .step {{ display: none; }}
442
+ .step.show {{ display: block; }}
443
+ </style>
444
+ </head>
445
+ <body>
446
+ <div class="modal">
447
+
448
+ <!-- ── STEP 1: Connect ─────────────────────────────────────── -->
449
+ <div id="s1" class="step show">
450
+ <div class="dots">
451
+ <div class="dot active"></div>
452
+ <div class="dot"></div>
453
+ </div>
454
+ <button class="close-btn" type="button" onclick="doCancel()" title="Close">&times;</button>
455
+
456
+ <div class="logos">
457
+ <img src="/ui/assets/logos/litellm_logo.jpg" class="logo-img" alt="LiteLLM">
458
+ <span class="logo-arrow">&#8594;</span>
459
+ <div class="logo logo-s">{server_initial}</div>
460
+ </div>
461
+
462
+ <h2 class="step-title">Connect {server_name} MCP</h2>
463
+ <p class="step-subtitle">LiteLLM needs access to {server_name} to complete your request.</p>
464
+
465
+ <div class="info-box">
466
+ <span class="info-icon">
467
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>
468
+ </span>
469
+ <div>
470
+ <h4>How it works</h4>
471
+ <p>LiteLLM acts as a secure bridge. Your requests are routed through our MCP client directly to {server_name}&rsquo;s API.</p>
472
+ </div>
473
+ </div>
474
+
475
+ {access_section}
476
+
477
+ <button class="btn-primary" type="button" onclick="goStep2()">
478
+ Continue to Authentication &rarr;
479
+ </button>
480
+ <button class="btn-cancel" type="button" onclick="doCancel()">Cancel</button>
481
+ </div>
482
+
483
+ <!-- ── STEP 2: Provide API Key ──────────────────────────────── -->
484
+ <div id="s2" class="step">
485
+ <div class="step2-nav">
486
+ <button class="back-btn" type="button" onclick="goStep1()">&#8592; Back</button>
487
+ <div class="dots">
488
+ <div class="dot active"></div>
489
+ <div class="dot active"></div>
490
+ </div>
491
+ <button class="close-btn" style="position:static;" type="button" onclick="doCancel()" title="Close">&times;</button>
492
+ </div>
493
+
494
+ <div class="key-icon-wrap">
495
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#0284c7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"/></svg>
496
+ </div>
497
+ <h2 class="step-title" style="text-align:left;">Provide API Key</h2>
498
+ <p class="step-subtitle" style="text-align:left;">Enter your {server_name} API key to authorize this connection.</p>
499
+
500
+ <form method="POST" id="authForm" onsubmit="prepareSubmit()">
501
+ <input type="hidden" name="client_id" value="{client_id}">
502
+ <input type="hidden" name="redirect_uri" value="{redirect_uri}">
503
+ <input type="hidden" name="code_challenge" value="{code_challenge}">
504
+ <input type="hidden" name="code_challenge_method" value="{code_challenge_method}">
505
+ <input type="hidden" name="state" value="{state}">
506
+ <input type="hidden" name="server_id" value="{server_id}">
507
+ <input type="hidden" name="duration" id="durInput" value="until_revoked">
508
+
509
+ <label class="field-label">{server_name} API Key</label>
510
+ <input
511
+ type="password"
512
+ name="api_key"
513
+ id="apiKey"
514
+ class="key-input"
515
+ placeholder="Enter your API key"
516
+ required
517
+ autofocus
518
+ oninput="syncBtn()"
519
+ >
520
+
521
+ {help_link_html}
522
+
523
+ <div class="save-card">
524
+ <div class="save-row">
525
+ <span class="save-label">Save key for future use</span>
526
+ <label class="toggle">
527
+ <input type="checkbox" id="saveToggle" onchange="toggleDur()">
528
+ <span class="slider"></span>
529
+ </label>
530
+ </div>
531
+ <div id="durSection" class="duration-section" style="display:none;">
532
+ <div class="duration-label">Duration</div>
533
+ <div class="pills">
534
+ <div class="pill" onclick="selDur('1h',this)">1 hour</div>
535
+ <div class="pill sel" onclick="selDur('24h',this)">24 hours</div>
536
+ <div class="pill" onclick="selDur('7d',this)">7 days</div>
537
+ <div class="pill" onclick="selDur('30d',this)">30 days</div>
538
+ <div class="pill" onclick="selDur('until_revoked',this)">Until I revoke</div>
539
+ </div>
540
+ </div>
541
+ </div>
542
+
543
+ <div class="sec-note">
544
+ <span class="sec-icon">
545
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>
546
+ </span>
547
+ <p>Your key is stored securely and transmitted over HTTPS. It is never shared with third parties.</p>
548
+ </div>
549
+
550
+ <button type="submit" class="btn-connect" id="connectBtn">
551
+ Connect &amp; Authorize
552
+ </button>
553
+ </form>
554
+ </div>
555
+
556
+ </div>
557
+ <script>
558
+ function goStep2() {{
559
+ document.getElementById('s1').classList.remove('show');
560
+ document.getElementById('s2').classList.add('show');
561
+ }}
562
+ function goStep1() {{
563
+ document.getElementById('s2').classList.remove('show');
564
+ document.getElementById('s1').classList.add('show');
565
+ }}
566
+ function doCancel() {{
567
+ if (window.opener) window.close();
568
+ else window.history.back();
569
+ }}
570
+ function toggleDur() {{
571
+ const on = document.getElementById('saveToggle').checked;
572
+ document.getElementById('durSection').style.display = on ? 'block' : 'none';
573
+ }}
574
+ function selDur(val, el) {{
575
+ document.querySelectorAll('.pill').forEach(p => p.classList.remove('sel'));
576
+ el.classList.add('sel');
577
+ document.getElementById('durInput').value = val;
578
+ }}
579
+ function syncBtn() {{
580
+ const btn = document.getElementById('connectBtn');
581
+ if (document.getElementById('apiKey').value.length > 0) {{
582
+ btn.classList.add('ready');
583
+ }} else {{
584
+ btn.classList.remove('ready');
585
+ }}
586
+ }}
587
+ function prepareSubmit() {{
588
+ // nothing extra needed — duration is already in the hidden input
589
+ }}
590
+ </script>
591
+ </body>
592
+ </html>"""
593
+
594
+
595
+ # ---------------------------------------------------------------------------
596
+ # OAuth metadata discovery endpoints
597
+ # ---------------------------------------------------------------------------
598
+
599
+
600
+ @router.get("/.well-known/oauth-authorization-server", include_in_schema=False)
601
+ async def oauth_authorization_server_metadata(request: Request) -> JSONResponse:
602
+ """RFC 8414 Authorization Server Metadata for the BYOK OAuth flow."""
603
+ base_url = get_request_base_url(request)
604
+ return JSONResponse(
605
+ {
606
+ "issuer": base_url,
607
+ "authorization_endpoint": f"{base_url}/v1/mcp/oauth/authorize",
608
+ "token_endpoint": f"{base_url}/v1/mcp/oauth/token",
609
+ "response_types_supported": ["code"],
610
+ "grant_types_supported": ["authorization_code"],
611
+ "code_challenge_methods_supported": ["S256"],
612
+ }
613
+ )
614
+
615
+
616
+ @router.get("/.well-known/oauth-protected-resource", include_in_schema=False)
617
+ async def oauth_protected_resource_metadata(request: Request) -> JSONResponse:
618
+ """RFC 9728 Protected Resource Metadata pointing back at this server."""
619
+ base_url = get_request_base_url(request)
620
+ return JSONResponse(
621
+ {
622
+ "resource": base_url,
623
+ "authorization_servers": [base_url],
624
+ }
625
+ )
626
+
627
+
628
+ # ---------------------------------------------------------------------------
629
+ # Authorization endpoint — GET (show form) and POST (process form)
630
+ # ---------------------------------------------------------------------------
631
+
632
+
633
+ @router.get("/v1/mcp/oauth/authorize", include_in_schema=False)
634
+ async def byok_authorize_get(
635
+ request: Request,
636
+ client_id: Optional[str] = None,
637
+ redirect_uri: Optional[str] = None,
638
+ response_type: Optional[str] = None,
639
+ code_challenge: Optional[str] = None,
640
+ code_challenge_method: Optional[str] = None,
641
+ state: Optional[str] = None,
642
+ server_id: Optional[str] = None,
643
+ ) -> HTMLResponse:
644
+ """
645
+ Show the BYOK API-key entry form.
646
+
647
+ The MCP client navigates the user here; the user types their API key and
648
+ clicks "Connect & Authorize", which POSTs back to this same path.
649
+
650
+ This GET is intentionally unauthenticated: it only renders HTML with no
651
+ state change. The POST handler enforces ``user_api_key_auth`` and pins
652
+ the stored credential to the authenticated session.
653
+ """
654
+ if response_type != "code":
655
+ raise HTTPException(status_code=400, detail="response_type must be 'code'")
656
+ if not redirect_uri:
657
+ raise HTTPException(status_code=400, detail="redirect_uri is required")
658
+ # Validate here too so the user sees the rejection before typing their
659
+ # API key into the HTML form (the POST handler also validates).
660
+ validate_loopback_redirect_uri(redirect_uri)
661
+ if not code_challenge:
662
+ raise HTTPException(status_code=400, detail="code_challenge is required")
663
+
664
+ # Resolve server metadata (name, description items, help URL).
665
+ server_name = "MCP Server"
666
+ access_items: list = []
667
+ help_url = ""
668
+ if server_id:
669
+ try:
670
+ from litellm.proxy._experimental.mcp_server.mcp_server_manager import (
671
+ global_mcp_server_manager,
672
+ )
673
+
674
+ registry = global_mcp_server_manager.get_registry()
675
+ if server_id in registry:
676
+ srv = registry[server_id]
677
+ server_name = srv.server_name or srv.name
678
+ access_items = list(srv.byok_description or [])
679
+ help_url = srv.byok_api_key_help_url or ""
680
+ except Exception:
681
+ pass
682
+
683
+ server_initial = (server_name[0].upper()) if server_name else "S"
684
+
685
+ html = _build_authorize_html(
686
+ server_name=server_name,
687
+ server_initial=server_initial,
688
+ client_id=client_id or "",
689
+ redirect_uri=redirect_uri,
690
+ code_challenge=code_challenge,
691
+ code_challenge_method=code_challenge_method or "S256",
692
+ state=state or "",
693
+ server_id=server_id or "",
694
+ access_items=access_items,
695
+ help_url=help_url,
696
+ )
697
+ return HTMLResponse(content=html)
698
+
699
+
700
+ @router.post("/v1/mcp/oauth/authorize", include_in_schema=False)
701
+ async def byok_authorize_post(
702
+ request: Request,
703
+ client_id: str = Form(default=""),
704
+ redirect_uri: str = Form(...),
705
+ code_challenge: str = Form(...),
706
+ code_challenge_method: str = Form(default="S256"),
707
+ state: str = Form(default=""),
708
+ server_id: str = Form(default=""),
709
+ api_key: str = Form(...),
710
+ user_api_key_dict: UserAPIKeyAuth = Depends(_byok_session_auth),
711
+ ) -> RedirectResponse:
712
+ """
713
+ Process the BYOK API-key form submission.
714
+
715
+ Stores a short-lived authorization code and redirects the client back to
716
+ redirect_uri with ?code=...&state=... query parameters.
717
+ """
718
+ _purge_expired_codes()
719
+
720
+ validate_loopback_redirect_uri(redirect_uri)
721
+
722
+ # Reject new codes if the store is at capacity (prevents memory exhaustion
723
+ # from a burst of abandoned OAuth flows).
724
+ if len(_byok_auth_codes) >= _AUTH_CODES_MAX_SIZE:
725
+ raise HTTPException(
726
+ status_code=503, detail="Too many pending authorization flows"
727
+ )
728
+
729
+ if code_challenge_method != "S256":
730
+ raise HTTPException(
731
+ status_code=400, detail="Only S256 code_challenge_method is supported"
732
+ )
733
+
734
+ # Identity comes from the authenticated session, not the OAuth client_id
735
+ # form field (RFC 6749 §2.2: client_id identifies the client application,
736
+ # not the user). We do bind the code to the submitted client_id so the
737
+ # /token call must present the same value (RFC 6749 §4.1.3).
738
+ user_id = user_api_key_dict.user_id
739
+ if not user_id:
740
+ raise HTTPException(status_code=401, detail="login_required")
741
+
742
+ auth_code = str(uuid.uuid4())
743
+ _byok_auth_codes[auth_code] = {
744
+ "api_key": api_key,
745
+ "server_id": server_id,
746
+ "code_challenge": code_challenge,
747
+ "redirect_uri": redirect_uri,
748
+ # RFC 6749 §4.1.3 defense-in-depth: if the authorization request
749
+ # declared a client_id, the token request must submit the same
750
+ # value. Stored even though we don't pre-register clients.
751
+ "client_id": client_id,
752
+ "user_id": user_id,
753
+ "expires_at": time.time() + _AUTH_CODE_TTL_SECONDS,
754
+ }
755
+
756
+ params = urlencode({"code": auth_code, "state": state})
757
+ separator = "&" if "?" in redirect_uri else "?"
758
+ location = f"{redirect_uri}{separator}{params}"
759
+ return RedirectResponse(url=location, status_code=302)
760
+
761
+
762
+ # ---------------------------------------------------------------------------
763
+ # Token endpoint
764
+ # ---------------------------------------------------------------------------
765
+
766
+
767
+ @router.post("/v1/mcp/oauth/token", include_in_schema=False)
768
+ async def byok_token(
769
+ request: Request,
770
+ grant_type: str = Form(...),
771
+ code: str = Form(...),
772
+ redirect_uri: str = Form(default=""),
773
+ code_verifier: str = Form(...),
774
+ client_id: str = Form(default=""),
775
+ ) -> JSONResponse:
776
+ """
777
+ Exchange an authorization code for a short-lived BYOK session JWT.
778
+
779
+ 1. Validates the authorization code and PKCE challenge.
780
+ 2. Stores the API key via store_user_credential().
781
+ 3. Issues a signed JWT with type="byok_session".
782
+ """
783
+ from litellm.proxy.proxy_server import master_key, prisma_client
784
+
785
+ _purge_expired_codes()
786
+
787
+ if grant_type != "authorization_code":
788
+ return _oauth_token_error("unsupported_grant_type")
789
+
790
+ record = _byok_auth_codes.get(code)
791
+ if record is None:
792
+ return _oauth_token_error("invalid_grant")
793
+
794
+ if time.time() > record["expires_at"]:
795
+ del _byok_auth_codes[code]
796
+ return _oauth_token_error("invalid_grant")
797
+
798
+ # PKCE verification
799
+ if not _verify_pkce(code_verifier, record["code_challenge"]):
800
+ return _oauth_token_error("invalid_grant")
801
+
802
+ # RFC 6749 §4.1.3: if redirect_uri was sent with the authorization
803
+ # request, the token request MUST include the identical value.
804
+ # OAuth 2.1 draft-15 §4.1.3 drops this requirement — strict OAuth 2.1
805
+ # clients will omit it. Enforce equality ONLY when the client
806
+ # actually submitted a value, so we stay RFC 6749-backward-compatible
807
+ # without breaking OAuth 2.1 clients. PKCE + client_id binding
808
+ # (checked below) cover the security role redirect_uri played.
809
+ if (
810
+ record.get("redirect_uri")
811
+ and redirect_uri
812
+ and redirect_uri != record["redirect_uri"]
813
+ ):
814
+ return _oauth_token_error("invalid_grant")
815
+
816
+ # RFC 6749 §4.1.3: if the client was identified at /authorize, the
817
+ # /token request MUST authenticate as the same client. We don't
818
+ # pre-register clients, so an empty stored client_id skips the check.
819
+ if record.get("client_id") and client_id != record["client_id"]:
820
+ return _oauth_token_error("invalid_grant")
821
+
822
+ server_id: str = record["server_id"]
823
+ api_key_value: str = record["api_key"]
824
+ # user_id is stamped by the authenticated /authorize POST. No client_id
825
+ # fallback — that fallback was the credential-hijack primitive. The
826
+ # token-endpoint client_id is informational per RFC 6749 and is not
827
+ # cross-checked against user_id (which identifies the resource owner,
828
+ # not the client application).
829
+ user_id: str = record.get("user_id") or ""
830
+ if not user_id:
831
+ return _oauth_token_error("invalid_grant")
832
+
833
+ # Verify preconditions that would fail token issuance BEFORE consuming
834
+ # the code or writing to the DB — otherwise a misconfigured proxy
835
+ # (missing master_key) silently persists the user's credential without
836
+ # ever returning an access token, and the user has no way to recover.
837
+ if master_key is None:
838
+ return _oauth_token_error("server_error", status=500)
839
+
840
+ # Consume the code (one-time use)
841
+ del _byok_auth_codes[code]
842
+
843
+ # Persist the BYOK credential
844
+ if prisma_client is not None:
845
+ try:
846
+ await store_user_credential(
847
+ prisma_client=prisma_client,
848
+ user_id=user_id,
849
+ server_id=server_id,
850
+ credential=api_key_value,
851
+ )
852
+ # Invalidate any cached negative result so the user isn't blocked
853
+ # for up to the TTL period after completing the OAuth flow.
854
+ from litellm.proxy._experimental.mcp_server.server import (
855
+ _invalidate_byok_cred_cache,
856
+ )
857
+
858
+ _invalidate_byok_cred_cache(user_id, server_id)
859
+ except Exception as exc:
860
+ verbose_proxy_logger.error(
861
+ "byok_token: failed to store user credential for user=%s server=%s: %s",
862
+ user_id,
863
+ server_id,
864
+ exc,
865
+ )
866
+ return _oauth_token_error("server_error", status=500)
867
+ else:
868
+ verbose_proxy_logger.warning(
869
+ "byok_token: prisma_client is None — credential not persisted"
870
+ )
871
+
872
+ now = int(time.time())
873
+ payload = {
874
+ "user_id": user_id,
875
+ "server_id": server_id,
876
+ # "type" distinguishes this from regular proxy auth tokens.
877
+ # The proxy's SSO JWT path uses asymmetric keys (RS256/ES256), so an
878
+ # HS256 token signed with master_key cannot be accepted there.
879
+ "type": "byok_session",
880
+ "iat": now,
881
+ "exp": now + 3600,
882
+ }
883
+ access_token = jwt.encode(payload, cast(str, master_key), algorithm="HS256")
884
+
885
+ return JSONResponse(
886
+ {
887
+ "access_token": access_token,
888
+ "token_type": "bearer",
889
+ "expires_in": 3600,
890
+ },
891
+ headers=TOKEN_NO_CACHE_HEADERS,
892
+ )
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/cost_calculator.py ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Cost calculator for MCP tools.
3
+ """
4
+
5
+ from typing import TYPE_CHECKING, Any, Optional, cast
6
+
7
+ from litellm.types.mcp import MCPServerCostInfo
8
+ from litellm.types.utils import StandardLoggingMCPToolCall
9
+
10
+ if TYPE_CHECKING:
11
+ from litellm.litellm_core_utils.litellm_logging import (
12
+ Logging as LitellmLoggingObject,
13
+ )
14
+ else:
15
+ LitellmLoggingObject = Any
16
+
17
+
18
+ class MCPCostCalculator:
19
+ @staticmethod
20
+ def calculate_mcp_tool_call_cost(
21
+ litellm_logging_obj: Optional[LitellmLoggingObject],
22
+ ) -> float:
23
+ """
24
+ Calculate the cost of an MCP tool call.
25
+
26
+ Default is 0.0, unless user specifies a custom cost per request for MCP tools.
27
+ """
28
+ if litellm_logging_obj is None:
29
+ return 0.0
30
+
31
+ #########################################################
32
+ # Get the response cost from logging object model_call_details
33
+ # This is set when a user modifies the response in a post_mcp_tool_call_hook
34
+ #########################################################
35
+ response_cost = litellm_logging_obj.model_call_details.get(
36
+ "response_cost", None
37
+ )
38
+ if response_cost is not None:
39
+ return response_cost
40
+
41
+ #########################################################
42
+ # Unpack the mcp_tool_call_metadata
43
+ #########################################################
44
+ mcp_tool_call_metadata: StandardLoggingMCPToolCall = (
45
+ cast(
46
+ StandardLoggingMCPToolCall,
47
+ litellm_logging_obj.model_call_details.get(
48
+ "mcp_tool_call_metadata", {}
49
+ ),
50
+ )
51
+ or {}
52
+ )
53
+ mcp_server_cost_info: MCPServerCostInfo = (
54
+ mcp_tool_call_metadata.get("mcp_server_cost_info") or MCPServerCostInfo()
55
+ )
56
+ #########################################################
57
+ # User defined cost per query
58
+ #########################################################
59
+ default_cost_per_query = mcp_server_cost_info.get(
60
+ "default_cost_per_query", None
61
+ )
62
+ tool_name_to_cost_per_query: dict = (
63
+ mcp_server_cost_info.get("tool_name_to_cost_per_query", {}) or {}
64
+ )
65
+ tool_name = mcp_tool_call_metadata.get("name", "")
66
+
67
+ #########################################################
68
+ # 1. If tool_name is in tool_name_to_cost_per_query, use the cost per query
69
+ # 2. If tool_name is not in tool_name_to_cost_per_query, use the default cost per query
70
+ # 3. Default to 0.0 if no cost per query is found
71
+ #########################################################
72
+ cost_per_query: float = 0.0
73
+ if tool_name in tool_name_to_cost_per_query:
74
+ cost_per_query = tool_name_to_cost_per_query[tool_name]
75
+ elif default_cost_per_query is not None:
76
+ cost_per_query = default_cost_per_query
77
+ return cost_per_query
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/db.py ADDED
@@ -0,0 +1,939 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import base64
2
+ import binascii
3
+ import json
4
+ from datetime import datetime, timedelta, timezone
5
+ from typing import Any, Dict, Iterable, List, Optional, Set, Union, cast
6
+
7
+ from litellm._logging import verbose_proxy_logger
8
+ from litellm._uuid import uuid
9
+ from litellm.proxy._types import (
10
+ LiteLLM_MCPServerTable,
11
+ LiteLLM_ObjectPermissionTable,
12
+ LiteLLM_TeamTable,
13
+ MCPApprovalStatus,
14
+ MCPSubmissionsSummary,
15
+ NewMCPServerRequest,
16
+ SpecialMCPServerName,
17
+ UpdateMCPServerRequest,
18
+ UserAPIKeyAuth,
19
+ )
20
+ from litellm.proxy.common_utils.encrypt_decrypt_utils import (
21
+ _get_salt_key,
22
+ decrypt_value_helper,
23
+ encrypt_value_helper,
24
+ )
25
+ from litellm.llms.custom_httpx.http_handler import get_async_httpx_client
26
+ from litellm.proxy.utils import PrismaClient
27
+ from litellm.types.llms.custom_http import httpxSpecialProvider
28
+ from litellm.types.mcp import MCPCredentials
29
+
30
+
31
+ def _prepare_mcp_server_data(
32
+ data: Union[NewMCPServerRequest, UpdateMCPServerRequest],
33
+ ) -> Dict[str, Any]:
34
+ """
35
+ Helper function to prepare MCP server data for database operations.
36
+ Handles JSON field serialization for mcp_info and env fields.
37
+
38
+ Args:
39
+ data: NewMCPServerRequest or UpdateMCPServerRequest object
40
+
41
+ Returns:
42
+ Dict with properly serialized JSON fields
43
+ """
44
+ from litellm.litellm_core_utils.safe_json_dumps import safe_dumps
45
+
46
+ # Convert model to dict
47
+ data_dict = data.model_dump(exclude_none=True)
48
+ # Ensure alias is always present in the dict (even if None)
49
+ if "alias" not in data_dict:
50
+ data_dict["alias"] = getattr(data, "alias", None)
51
+
52
+ # Handle credentials serialization
53
+ credentials = data_dict.get("credentials")
54
+ if credentials is not None:
55
+ data_dict["credentials"] = encrypt_credentials(
56
+ credentials=credentials, encryption_key=_get_salt_key()
57
+ )
58
+ data_dict["credentials"] = safe_dumps(data_dict["credentials"])
59
+
60
+ # Handle static_headers serialization
61
+ if data.static_headers is not None:
62
+ data_dict["static_headers"] = safe_dumps(data.static_headers)
63
+
64
+ # Handle mcp_info serialization
65
+ if data.mcp_info is not None:
66
+ data_dict["mcp_info"] = safe_dumps(data.mcp_info)
67
+
68
+ # Handle env serialization
69
+ if data.env is not None:
70
+ data_dict["env"] = safe_dumps(data.env)
71
+
72
+ # Handle tool name override serialization
73
+ if data.tool_name_to_display_name is not None:
74
+ data_dict["tool_name_to_display_name"] = safe_dumps(
75
+ data.tool_name_to_display_name
76
+ )
77
+ if data.tool_name_to_description is not None:
78
+ data_dict["tool_name_to_description"] = safe_dumps(
79
+ data.tool_name_to_description
80
+ )
81
+
82
+ # mcp_access_groups is already List[str], no serialization needed
83
+
84
+ # Force include is_byok even when False (exclude_none=True would not drop it,
85
+ # but be explicit to ensure a False value is always written to the DB).
86
+ data_dict["is_byok"] = getattr(data, "is_byok", False)
87
+
88
+ return data_dict
89
+
90
+
91
+ def encrypt_credentials(
92
+ credentials: MCPCredentials, encryption_key: Optional[str]
93
+ ) -> MCPCredentials:
94
+ auth_value = credentials.get("auth_value")
95
+ if auth_value is not None:
96
+ credentials["auth_value"] = encrypt_value_helper(
97
+ value=auth_value,
98
+ new_encryption_key=encryption_key,
99
+ )
100
+ client_id = credentials.get("client_id")
101
+ if client_id is not None:
102
+ credentials["client_id"] = encrypt_value_helper(
103
+ value=client_id,
104
+ new_encryption_key=encryption_key,
105
+ )
106
+ client_secret = credentials.get("client_secret")
107
+ if client_secret is not None:
108
+ credentials["client_secret"] = encrypt_value_helper(
109
+ value=client_secret,
110
+ new_encryption_key=encryption_key,
111
+ )
112
+ # AWS SigV4 credential fields
113
+ aws_access_key_id = credentials.get("aws_access_key_id")
114
+ if aws_access_key_id is not None:
115
+ credentials["aws_access_key_id"] = encrypt_value_helper(
116
+ value=aws_access_key_id,
117
+ new_encryption_key=encryption_key,
118
+ )
119
+ aws_secret_access_key = credentials.get("aws_secret_access_key")
120
+ if aws_secret_access_key is not None:
121
+ credentials["aws_secret_access_key"] = encrypt_value_helper(
122
+ value=aws_secret_access_key,
123
+ new_encryption_key=encryption_key,
124
+ )
125
+ aws_session_token = credentials.get("aws_session_token")
126
+ if aws_session_token is not None:
127
+ credentials["aws_session_token"] = encrypt_value_helper(
128
+ value=aws_session_token,
129
+ new_encryption_key=encryption_key,
130
+ )
131
+ # aws_region_name and aws_service_name are NOT secrets — stored as-is
132
+ return credentials
133
+
134
+
135
+ def decrypt_credentials(
136
+ credentials: MCPCredentials,
137
+ ) -> MCPCredentials:
138
+ """Decrypt all secret fields in an MCPCredentials dict using the global salt key."""
139
+ secret_fields = [
140
+ "auth_value",
141
+ "client_id",
142
+ "client_secret",
143
+ "aws_access_key_id",
144
+ "aws_secret_access_key",
145
+ "aws_session_token",
146
+ ]
147
+ for field in secret_fields:
148
+ value = credentials.get(field) # type: ignore[literal-required]
149
+ if value is not None and isinstance(value, str):
150
+ credentials[field] = decrypt_value_helper( # type: ignore[literal-required]
151
+ value=value,
152
+ key=field,
153
+ exception_type="debug",
154
+ return_original_value=True,
155
+ )
156
+ return credentials
157
+
158
+
159
+ async def get_all_mcp_servers(
160
+ prisma_client: PrismaClient,
161
+ approval_status: Optional[str] = None,
162
+ ) -> List[LiteLLM_MCPServerTable]:
163
+ """
164
+ Returns mcp servers from the db, optionally filtered by approval_status.
165
+ Pass approval_status=None to return all servers regardless of approval state.
166
+ """
167
+ try:
168
+ where: Dict[str, Any] = {}
169
+ if approval_status is not None:
170
+ where["approval_status"] = approval_status
171
+ mcp_servers = await prisma_client.db.litellm_mcpservertable.find_many(
172
+ where=where if where else {}
173
+ )
174
+
175
+ return [
176
+ LiteLLM_MCPServerTable(**mcp_server.model_dump())
177
+ for mcp_server in mcp_servers
178
+ ]
179
+ except Exception as e:
180
+ verbose_proxy_logger.debug(
181
+ "litellm.proxy._experimental.mcp_server.db.py::get_all_mcp_servers - {}".format(
182
+ str(e)
183
+ )
184
+ )
185
+ return []
186
+
187
+
188
+ async def get_mcp_server(
189
+ prisma_client: PrismaClient, server_id: str
190
+ ) -> Optional[LiteLLM_MCPServerTable]:
191
+ """
192
+ Returns the matching mcp server from the db iff exists
193
+ """
194
+ mcp_server: Optional[LiteLLM_MCPServerTable] = (
195
+ await prisma_client.db.litellm_mcpservertable.find_unique(
196
+ where={
197
+ "server_id": server_id,
198
+ }
199
+ )
200
+ )
201
+ return mcp_server
202
+
203
+
204
+ async def get_mcp_servers(
205
+ prisma_client: PrismaClient, server_ids: Iterable[str]
206
+ ) -> List[LiteLLM_MCPServerTable]:
207
+ """
208
+ Returns the matching mcp servers from the db with the server_ids
209
+ """
210
+ _mcp_servers: List[LiteLLM_MCPServerTable] = (
211
+ await prisma_client.db.litellm_mcpservertable.find_many(
212
+ where={
213
+ "server_id": {"in": server_ids},
214
+ }
215
+ )
216
+ )
217
+ final_mcp_servers: List[LiteLLM_MCPServerTable] = []
218
+ for _mcp_server in _mcp_servers:
219
+ final_mcp_servers.append(LiteLLM_MCPServerTable(**_mcp_server.model_dump()))
220
+
221
+ return final_mcp_servers
222
+
223
+
224
+ async def get_mcp_servers_by_verificationtoken(
225
+ prisma_client: PrismaClient, token: str
226
+ ) -> List[str]:
227
+ """
228
+ Returns the mcp servers from the db for the verification token
229
+ """
230
+ verification_token_record: LiteLLM_TeamTable = (
231
+ await prisma_client.db.litellm_verificationtoken.find_unique(
232
+ where={
233
+ "token": token,
234
+ },
235
+ include={
236
+ "object_permission": True,
237
+ },
238
+ )
239
+ )
240
+
241
+ mcp_servers: Optional[List[str]] = []
242
+ if (
243
+ verification_token_record is not None
244
+ and verification_token_record.object_permission is not None
245
+ ):
246
+ mcp_servers = verification_token_record.object_permission.mcp_servers
247
+ return mcp_servers or []
248
+
249
+
250
+ async def get_mcp_servers_by_team(
251
+ prisma_client: PrismaClient, team_id: str
252
+ ) -> List[str]:
253
+ """
254
+ Returns the mcp servers from the db for the team id
255
+ """
256
+ team_record: LiteLLM_TeamTable = (
257
+ await prisma_client.db.litellm_teamtable.find_unique(
258
+ where={
259
+ "team_id": team_id,
260
+ },
261
+ include={
262
+ "object_permission": True,
263
+ },
264
+ )
265
+ )
266
+
267
+ mcp_servers: Optional[List[str]] = []
268
+ if team_record is not None and team_record.object_permission is not None:
269
+ mcp_servers = team_record.object_permission.mcp_servers
270
+ return mcp_servers or []
271
+
272
+
273
+ async def get_all_mcp_servers_for_user(
274
+ prisma_client: PrismaClient,
275
+ user: UserAPIKeyAuth,
276
+ ) -> List[LiteLLM_MCPServerTable]:
277
+ """
278
+ Get all the mcp servers filtered by the given user has access to.
279
+
280
+ Following Least-Privilege Principle - the requestor should only be able to see the mcp servers that they have access to.
281
+ """
282
+
283
+ mcp_server_ids: Set[str] = set()
284
+ mcp_servers = []
285
+
286
+ # Get the mcp servers for the key
287
+ if user.api_key:
288
+ token_mcp_servers = await get_mcp_servers_by_verificationtoken(
289
+ prisma_client, user.api_key
290
+ )
291
+ mcp_server_ids.update(token_mcp_servers)
292
+
293
+ # check for special team membership
294
+ if (
295
+ SpecialMCPServerName.all_team_servers in mcp_server_ids
296
+ and user.team_id is not None
297
+ ):
298
+ team_mcp_servers = await get_mcp_servers_by_team(
299
+ prisma_client, user.team_id
300
+ )
301
+ mcp_server_ids.update(team_mcp_servers)
302
+
303
+ if len(mcp_server_ids) > 0:
304
+ mcp_servers = await get_mcp_servers(prisma_client, mcp_server_ids)
305
+
306
+ return mcp_servers
307
+
308
+
309
+ async def get_objectpermissions_for_mcp_server(
310
+ prisma_client: PrismaClient, mcp_server_id: str
311
+ ) -> List[LiteLLM_ObjectPermissionTable]:
312
+ """
313
+ Get all the object permissions records and the associated team and verficiationtoken records that have access to the mcp server
314
+ """
315
+ object_permission_records = (
316
+ await prisma_client.db.litellm_objectpermissiontable.find_many(
317
+ where={
318
+ "mcp_servers": {"has": mcp_server_id},
319
+ },
320
+ include={
321
+ "teams": True,
322
+ "verification_tokens": True,
323
+ },
324
+ )
325
+ )
326
+
327
+ return object_permission_records
328
+
329
+
330
+ async def get_virtualkeys_for_mcp_server(
331
+ prisma_client: PrismaClient, server_id: str
332
+ ) -> List:
333
+ """
334
+ Get all the virtual keys that have access to the mcp server
335
+ """
336
+ virtual_keys = await prisma_client.db.litellm_verificationtoken.find_many(
337
+ where={
338
+ "mcp_servers": {"has": server_id},
339
+ },
340
+ )
341
+
342
+ if virtual_keys is None:
343
+ return []
344
+ return virtual_keys
345
+
346
+
347
+ async def delete_mcp_server_from_team(prisma_client: PrismaClient, server_id: str):
348
+ """
349
+ Remove the mcp server from the team
350
+ """
351
+ pass
352
+
353
+
354
+ async def delete_mcp_server_from_virtualkey():
355
+ """
356
+ Remove the mcp server from the virtual key
357
+ """
358
+ pass
359
+
360
+
361
+ async def delete_mcp_server(
362
+ prisma_client: PrismaClient, server_id: str
363
+ ) -> Optional[LiteLLM_MCPServerTable]:
364
+ """
365
+ Delete the mcp server from the db by server_id
366
+
367
+ Returns the deleted mcp server record if it exists, otherwise None
368
+ """
369
+ deleted_server = await prisma_client.db.litellm_mcpservertable.delete(
370
+ where={
371
+ "server_id": server_id,
372
+ },
373
+ )
374
+ return deleted_server
375
+
376
+
377
+ async def create_mcp_server(
378
+ prisma_client: PrismaClient, data: NewMCPServerRequest, touched_by: str
379
+ ) -> LiteLLM_MCPServerTable:
380
+ """
381
+ Create a new mcp server record in the db
382
+ """
383
+ if data.server_id is None:
384
+ data.server_id = str(uuid.uuid4())
385
+
386
+ # Use helper to prepare data with proper JSON serialization
387
+ data_dict = _prepare_mcp_server_data(data)
388
+
389
+ # Add audit fields
390
+ data_dict["created_by"] = touched_by
391
+ data_dict["updated_by"] = touched_by
392
+
393
+ new_mcp_server = await prisma_client.db.litellm_mcpservertable.create(
394
+ data=data_dict # type: ignore
395
+ )
396
+
397
+ return new_mcp_server
398
+
399
+
400
+ async def update_mcp_server(
401
+ prisma_client: PrismaClient, data: UpdateMCPServerRequest, touched_by: str
402
+ ) -> LiteLLM_MCPServerTable:
403
+ """
404
+ Update a new mcp server record in the db
405
+ """
406
+ import json
407
+
408
+ from litellm.litellm_core_utils.safe_json_dumps import safe_dumps
409
+
410
+ # Use helper to prepare data with proper JSON serialization
411
+ data_dict = _prepare_mcp_server_data(data)
412
+
413
+ # Pre-fetch existing record once if we need it for auth_type or credential logic
414
+ existing = None
415
+ has_credentials = (
416
+ "credentials" in data_dict and data_dict["credentials"] is not None
417
+ )
418
+ if data.auth_type or has_credentials:
419
+ existing = await prisma_client.db.litellm_mcpservertable.find_unique(
420
+ where={"server_id": data.server_id}
421
+ )
422
+
423
+ # Clear stale credentials when auth_type changes but no new credentials provided
424
+ if (
425
+ data.auth_type
426
+ and "credentials" not in data_dict
427
+ and existing
428
+ and existing.auth_type is not None
429
+ and existing.auth_type != data.auth_type
430
+ ):
431
+ data_dict["credentials"] = None
432
+
433
+ # Merge credentials: preserve existing fields not present in the update.
434
+ # Without this, a partial credential update (e.g. changing only region)
435
+ # would wipe encrypted secrets that the UI cannot display back.
436
+ if "credentials" in data_dict and data_dict["credentials"] is not None:
437
+ if existing and existing.credentials:
438
+ # Only merge when auth_type is unchanged. Switching auth types
439
+ # (e.g. oauth2 → api_key) should replace credentials entirely
440
+ # to avoid stale secrets from the previous auth type lingering.
441
+ auth_type_unchanged = (
442
+ data.auth_type is None or data.auth_type == existing.auth_type
443
+ )
444
+ if auth_type_unchanged:
445
+ existing_creds = (
446
+ json.loads(existing.credentials)
447
+ if isinstance(existing.credentials, str)
448
+ else dict(existing.credentials)
449
+ )
450
+ new_creds = (
451
+ json.loads(data_dict["credentials"])
452
+ if isinstance(data_dict["credentials"], str)
453
+ else dict(data_dict["credentials"])
454
+ )
455
+ # New values override existing; existing keys not in update are preserved
456
+ merged = {**existing_creds, **new_creds}
457
+ data_dict["credentials"] = safe_dumps(merged)
458
+
459
+ # Add audit fields
460
+ data_dict["updated_by"] = touched_by
461
+
462
+ updated_mcp_server = await prisma_client.db.litellm_mcpservertable.update(
463
+ where={"server_id": data.server_id}, data=data_dict # type: ignore
464
+ )
465
+
466
+ return updated_mcp_server
467
+
468
+
469
+ async def rotate_mcp_server_credentials_master_key(
470
+ prisma_client: PrismaClient, touched_by: str, new_master_key: str
471
+ ):
472
+ mcp_servers = await prisma_client.db.litellm_mcpservertable.find_many()
473
+
474
+ for mcp_server in mcp_servers:
475
+ credentials = mcp_server.credentials
476
+ if not credentials:
477
+ continue
478
+
479
+ credentials_copy = dict(credentials)
480
+ # Decrypt with current key first, then re-encrypt with new key
481
+ decrypted_credentials = decrypt_credentials(
482
+ credentials=cast(MCPCredentials, credentials_copy),
483
+ )
484
+ encrypted_credentials = encrypt_credentials(
485
+ credentials=decrypted_credentials,
486
+ encryption_key=new_master_key,
487
+ )
488
+
489
+ from litellm.litellm_core_utils.safe_json_dumps import safe_dumps
490
+
491
+ serialized_credentials = safe_dumps(encrypted_credentials)
492
+
493
+ await prisma_client.db.litellm_mcpservertable.update(
494
+ where={"server_id": mcp_server.server_id},
495
+ data={
496
+ "credentials": serialized_credentials,
497
+ "updated_by": touched_by,
498
+ },
499
+ )
500
+
501
+
502
+ def _decode_user_credential(stored: str) -> Optional[str]:
503
+ """Read back a value persisted in ``LiteLLM_MCPUserCredentials.credential_b64``.
504
+
505
+ Tries nacl decryption first (current write format). Falls back to a
506
+ plain ``urlsafe_b64decode`` for rows persisted by older code that wrote
507
+ the credential without encryption. Returns ``None`` when neither path
508
+ yields a valid string.
509
+ """
510
+ decrypted = decrypt_value_helper(
511
+ value=stored,
512
+ key="mcp_user_credential",
513
+ exception_type="debug",
514
+ return_original_value=False,
515
+ )
516
+ if decrypted is not None:
517
+ return decrypted
518
+ try:
519
+ return base64.urlsafe_b64decode(stored).decode()
520
+ except (binascii.Error, UnicodeDecodeError, ValueError, TypeError):
521
+ return None
522
+
523
+
524
+ def _decode_oauth_payload(stored: str) -> Optional[Dict[str, Any]]:
525
+ """Return the OAuth2 payload dict if ``stored`` holds one, else ``None``.
526
+
527
+ A row is considered an OAuth2 credential iff its decoded value parses as
528
+ a JSON object with ``"type": "oauth2"``. Plain BYOK credentials (which
529
+ share the same column) decode to a non-JSON string and return ``None``.
530
+ """
531
+ decoded = _decode_user_credential(stored)
532
+ if decoded is None:
533
+ return None
534
+ try:
535
+ parsed = json.loads(decoded)
536
+ except (ValueError, TypeError):
537
+ return None
538
+ if isinstance(parsed, dict) and parsed.get("type") == "oauth2":
539
+ return parsed
540
+ return None
541
+
542
+
543
+ async def rotate_mcp_user_credentials_master_key(
544
+ prisma_client: PrismaClient, new_master_key: str
545
+ ):
546
+ """Re-encrypt every ``LiteLLM_MCPUserCredentials`` row with ``new_master_key``.
547
+
548
+ Reads each ``credential_b64`` with the current salt key (falling back to
549
+ legacy plain base64 for unmigrated rows) and writes it back encrypted
550
+ under the new master key. Rows that are unreadable under both paths
551
+ are logged and skipped so one corrupt row does not abort the rotation.
552
+ """
553
+ rows = await prisma_client.db.litellm_mcpusercredentials.find_many()
554
+ for row in rows:
555
+ plaintext = _decode_user_credential(row.credential_b64)
556
+ if plaintext is None:
557
+ verbose_proxy_logger.warning(
558
+ "rotate_mcp_user_credentials_master_key: could not decode "
559
+ "credential for user_id=%s server_id=%s, skipping",
560
+ row.user_id,
561
+ row.server_id,
562
+ )
563
+ continue
564
+ re_encrypted = encrypt_value_helper(
565
+ plaintext, new_encryption_key=new_master_key
566
+ )
567
+ await prisma_client.db.litellm_mcpusercredentials.update(
568
+ where={
569
+ "user_id_server_id": {
570
+ "user_id": row.user_id,
571
+ "server_id": row.server_id,
572
+ }
573
+ },
574
+ data={"credential_b64": re_encrypted},
575
+ )
576
+
577
+
578
+ async def store_user_credential(
579
+ prisma_client: PrismaClient,
580
+ user_id: str,
581
+ server_id: str,
582
+ credential: str,
583
+ ) -> None:
584
+ """Store a user credential for a BYOK MCP server."""
585
+
586
+ encoded = encrypt_value_helper(credential)
587
+ await prisma_client.db.litellm_mcpusercredentials.upsert(
588
+ where={"user_id_server_id": {"user_id": user_id, "server_id": server_id}},
589
+ data={
590
+ "create": {
591
+ "user_id": user_id,
592
+ "server_id": server_id,
593
+ "credential_b64": encoded,
594
+ },
595
+ "update": {"credential_b64": encoded},
596
+ },
597
+ )
598
+
599
+
600
+ async def get_user_credential(
601
+ prisma_client: PrismaClient,
602
+ user_id: str,
603
+ server_id: str,
604
+ ) -> Optional[str]:
605
+ """Return credential for a user+server pair, or None."""
606
+
607
+ row = await prisma_client.db.litellm_mcpusercredentials.find_unique(
608
+ where={"user_id_server_id": {"user_id": user_id, "server_id": server_id}}
609
+ )
610
+ if row is None:
611
+ return None
612
+ return _decode_user_credential(row.credential_b64)
613
+
614
+
615
+ async def has_user_credential(
616
+ prisma_client: PrismaClient,
617
+ user_id: str,
618
+ server_id: str,
619
+ ) -> bool:
620
+ """Return True if the user has a stored credential for this server."""
621
+ row = await prisma_client.db.litellm_mcpusercredentials.find_unique(
622
+ where={"user_id_server_id": {"user_id": user_id, "server_id": server_id}}
623
+ )
624
+ return row is not None
625
+
626
+
627
+ async def delete_user_credential(
628
+ prisma_client: PrismaClient,
629
+ user_id: str,
630
+ server_id: str,
631
+ ) -> None:
632
+ """Delete the user's stored credential for a BYOK MCP server."""
633
+ await prisma_client.db.litellm_mcpusercredentials.delete(
634
+ where={"user_id_server_id": {"user_id": user_id, "server_id": server_id}}
635
+ )
636
+
637
+
638
+ # ── OAuth2 user-credential helpers ────────────────────────────────────────────
639
+
640
+
641
+ async def store_user_oauth_credential(
642
+ prisma_client: PrismaClient,
643
+ user_id: str,
644
+ server_id: str,
645
+ access_token: str,
646
+ refresh_token: Optional[str] = None,
647
+ expires_in: Optional[int] = None,
648
+ scopes: Optional[List[str]] = None,
649
+ skip_byok_guard: bool = False,
650
+ ) -> None:
651
+ """Persist an OAuth2 access token for a user+server pair.
652
+
653
+ The payload is JSON-serialised and stored encrypted in the same
654
+ ``credential_b64`` column used by BYOK. A ``"type": "oauth2"`` key
655
+ differentiates it from plain BYOK API keys.
656
+ """
657
+
658
+ expires_at: Optional[str] = None
659
+ if expires_in is not None:
660
+ expires_at = (
661
+ datetime.now(timezone.utc) + timedelta(seconds=expires_in)
662
+ ).isoformat()
663
+
664
+ payload: Dict[str, Any] = {
665
+ "type": "oauth2",
666
+ "access_token": access_token,
667
+ "connected_at": datetime.now(timezone.utc).isoformat(),
668
+ }
669
+ if refresh_token:
670
+ payload["refresh_token"] = refresh_token
671
+ if expires_at:
672
+ payload["expires_at"] = expires_at
673
+ if scopes:
674
+ payload["scopes"] = scopes
675
+
676
+ # Guard against silently overwriting a BYOK credential with an OAuth token.
677
+ # Skip the guard when the caller knows the row is already an OAuth2 credential
678
+ # (e.g. during token refresh), saving an extra DB round-trip.
679
+ if not skip_byok_guard:
680
+ existing = await prisma_client.db.litellm_mcpusercredentials.find_unique(
681
+ where={"user_id_server_id": {"user_id": user_id, "server_id": server_id}}
682
+ )
683
+ if (
684
+ existing is not None
685
+ and _decode_oauth_payload(existing.credential_b64) is None
686
+ ):
687
+ # Existing row is either a BYOK secret or an OAuth2 row that no
688
+ # longer decrypts (e.g. after a salt-key rotation). In either
689
+ # case, refuse to overwrite — the caller would clobber data
690
+ # that may still be recoverable.
691
+ raise ValueError(
692
+ f"Existing credential for user {user_id} and server "
693
+ f"{server_id} could not be verified as an OAuth2 token. "
694
+ f"Refusing to overwrite."
695
+ )
696
+
697
+ encoded = encrypt_value_helper(json.dumps(payload))
698
+ await prisma_client.db.litellm_mcpusercredentials.upsert(
699
+ where={"user_id_server_id": {"user_id": user_id, "server_id": server_id}},
700
+ data={
701
+ "create": {
702
+ "user_id": user_id,
703
+ "server_id": server_id,
704
+ "credential_b64": encoded,
705
+ },
706
+ "update": {"credential_b64": encoded},
707
+ },
708
+ )
709
+
710
+
711
+ def is_oauth_credential_expired(cred: Dict[str, Any]) -> bool:
712
+ """Return True if the OAuth2 credential's access_token has expired.
713
+
714
+ Checks the ``expires_at`` ISO-format string stored in the credential payload.
715
+ Returns False when ``expires_at`` is absent or unparseable (treat as non-expired).
716
+ """
717
+ expires_at = cred.get("expires_at")
718
+ if not expires_at:
719
+ return False
720
+ try:
721
+ exp_dt = datetime.fromisoformat(expires_at)
722
+ if exp_dt.tzinfo is None:
723
+ exp_dt = exp_dt.replace(tzinfo=timezone.utc)
724
+ return datetime.now(timezone.utc) > exp_dt
725
+ except (ValueError, TypeError):
726
+ return False
727
+
728
+
729
+ async def get_user_oauth_credential(
730
+ prisma_client: PrismaClient,
731
+ user_id: str,
732
+ server_id: str,
733
+ ) -> Optional[Dict[str, Any]]:
734
+ """Return the decoded OAuth2 payload dict for a user+server pair, or None."""
735
+
736
+ row = await prisma_client.db.litellm_mcpusercredentials.find_unique(
737
+ where={"user_id_server_id": {"user_id": user_id, "server_id": server_id}}
738
+ )
739
+ if row is None:
740
+ return None
741
+ return _decode_oauth_payload(row.credential_b64)
742
+
743
+
744
+ async def list_user_oauth_credentials(
745
+ prisma_client: PrismaClient,
746
+ user_id: str,
747
+ ) -> List[Dict[str, Any]]:
748
+ """Return all OAuth2 credential payloads for a user, tagged with server_id."""
749
+
750
+ rows = await prisma_client.db.litellm_mcpusercredentials.find_many(
751
+ where={"user_id": user_id}
752
+ )
753
+ results: List[Dict[str, Any]] = []
754
+ for row in rows:
755
+ payload = _decode_oauth_payload(row.credential_b64)
756
+ if payload is None:
757
+ continue
758
+ payload["server_id"] = row.server_id
759
+ results.append(payload)
760
+ return results
761
+
762
+
763
+ async def refresh_user_oauth_token(
764
+ prisma_client: PrismaClient,
765
+ user_id: str,
766
+ server: Any,
767
+ cred: Dict[str, Any],
768
+ ) -> Optional[Dict[str, Any]]:
769
+ """Attempt to refresh a per-user OAuth2 token using its stored refresh_token.
770
+
771
+ POSTs to ``server.token_url`` with ``grant_type=refresh_token``.
772
+
773
+ On success: persists the new credential via ``store_user_oauth_credential``
774
+ and returns the updated payload dict.
775
+ On failure (network error, invalid_grant, missing refresh_token, …): logs a
776
+ warning and returns ``None`` — the caller is responsible for clearing the
777
+ stale credential and triggering re-authentication.
778
+ """
779
+ refresh_token: Optional[str] = cred.get("refresh_token")
780
+ token_url: Optional[str] = getattr(server, "token_url", None)
781
+ server_id: str = getattr(server, "server_id", "")
782
+ client_id: Optional[str] = getattr(server, "client_id", None)
783
+ client_secret: Optional[str] = getattr(server, "client_secret", None)
784
+
785
+ if not refresh_token:
786
+ verbose_proxy_logger.debug(
787
+ "refresh_user_oauth_token: no refresh_token stored for user=%s server=%s",
788
+ user_id,
789
+ server_id,
790
+ )
791
+ return None
792
+ if not token_url:
793
+ verbose_proxy_logger.debug(
794
+ "refresh_user_oauth_token: server=%s has no token_url configured",
795
+ server_id,
796
+ )
797
+ return None
798
+
799
+ token_data: Dict[str, str] = {
800
+ "grant_type": "refresh_token",
801
+ "refresh_token": refresh_token,
802
+ }
803
+ if client_id:
804
+ token_data["client_id"] = client_id
805
+ if client_secret:
806
+ token_data["client_secret"] = client_secret
807
+
808
+ try:
809
+ async_client = get_async_httpx_client(
810
+ llm_provider=httpxSpecialProvider.Oauth2Check
811
+ )
812
+ response = await async_client.post(
813
+ token_url,
814
+ headers={"Accept": "application/json"},
815
+ data=token_data,
816
+ )
817
+ response.raise_for_status()
818
+ body: Dict[str, Any] = response.json()
819
+ except Exception as exc:
820
+ verbose_proxy_logger.warning(
821
+ "refresh_user_oauth_token: refresh request failed for user=%s server=%s: %s",
822
+ user_id,
823
+ server_id,
824
+ exc,
825
+ )
826
+ return None
827
+
828
+ access_token: Optional[str] = body.get("access_token")
829
+ if not access_token:
830
+ verbose_proxy_logger.warning(
831
+ "refresh_user_oauth_token: token response missing access_token for "
832
+ "user=%s server=%s",
833
+ user_id,
834
+ server_id,
835
+ )
836
+ return None
837
+
838
+ expires_in: Optional[int] = None
839
+ raw_expires = body.get("expires_in")
840
+ try:
841
+ expires_in = int(raw_expires) if raw_expires is not None else None
842
+ except (TypeError, ValueError):
843
+ pass
844
+
845
+ # Rotate refresh token when the provider returns a new one
846
+ new_refresh_token: Optional[str] = body.get("refresh_token") or refresh_token
847
+
848
+ raw_scope = body.get("scope")
849
+ scopes: Optional[List[str]] = (
850
+ raw_scope.split() if isinstance(raw_scope, str) and raw_scope else None
851
+ ) or cred.get("scopes")
852
+
853
+ await store_user_oauth_credential(
854
+ prisma_client=prisma_client,
855
+ user_id=user_id,
856
+ server_id=server_id,
857
+ access_token=access_token,
858
+ refresh_token=new_refresh_token,
859
+ expires_in=expires_in,
860
+ scopes=scopes,
861
+ skip_byok_guard=True, # Row is already OAuth2; skip the extra find_unique check
862
+ )
863
+
864
+ verbose_proxy_logger.info(
865
+ "refresh_user_oauth_token: refreshed token for user=%s server=%s",
866
+ user_id,
867
+ server_id,
868
+ )
869
+ return await get_user_oauth_credential(prisma_client, user_id, server_id)
870
+
871
+
872
+ async def approve_mcp_server(
873
+ prisma_client: PrismaClient,
874
+ server_id: str,
875
+ touched_by: str,
876
+ ) -> LiteLLM_MCPServerTable:
877
+ """Set approval_status=active and record reviewed_at."""
878
+ now = datetime.now(timezone.utc)
879
+ updated = await prisma_client.db.litellm_mcpservertable.update(
880
+ where={"server_id": server_id},
881
+ data={
882
+ "approval_status": MCPApprovalStatus.active,
883
+ "reviewed_at": now,
884
+ "updated_by": touched_by,
885
+ },
886
+ )
887
+ return LiteLLM_MCPServerTable(**updated.model_dump())
888
+
889
+
890
+ async def reject_mcp_server(
891
+ prisma_client: PrismaClient,
892
+ server_id: str,
893
+ touched_by: str,
894
+ review_notes: Optional[str] = None,
895
+ ) -> LiteLLM_MCPServerTable:
896
+ """Set approval_status=rejected, record reviewed_at and review_notes."""
897
+ now = datetime.now(timezone.utc)
898
+ data: Dict[str, Any] = {
899
+ "approval_status": MCPApprovalStatus.rejected,
900
+ "reviewed_at": now,
901
+ "updated_by": touched_by,
902
+ }
903
+ if review_notes is not None:
904
+ data["review_notes"] = review_notes
905
+ updated = await prisma_client.db.litellm_mcpservertable.update(
906
+ where={"server_id": server_id},
907
+ data=data,
908
+ )
909
+ return LiteLLM_MCPServerTable(**updated.model_dump())
910
+
911
+
912
+ async def get_mcp_submissions(
913
+ prisma_client: PrismaClient,
914
+ ) -> MCPSubmissionsSummary:
915
+ """
916
+ Returns all MCP servers that were submitted by non-admin users (submitted_at IS NOT NULL),
917
+ along with a summary count breakdown by approval_status.
918
+ Mirrors get_guardrail_submissions() from guardrail_endpoints.py.
919
+ """
920
+ rows = await prisma_client.db.litellm_mcpservertable.find_many(
921
+ where={"submitted_at": {"not": None}},
922
+ order={"submitted_at": "desc"},
923
+ take=500, # safety cap; paginate if needed in a future iteration
924
+ )
925
+ items = [LiteLLM_MCPServerTable(**r.model_dump()) for r in rows]
926
+
927
+ pending = sum(
928
+ 1 for i in items if i.approval_status == MCPApprovalStatus.pending_review
929
+ )
930
+ active = sum(1 for i in items if i.approval_status == MCPApprovalStatus.active)
931
+ rejected = sum(1 for i in items if i.approval_status == MCPApprovalStatus.rejected)
932
+
933
+ return MCPSubmissionsSummary(
934
+ total=len(items),
935
+ pending_review=pending,
936
+ active=active,
937
+ rejected=rejected,
938
+ items=items,
939
+ )
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/discoverable_endpoints.py ADDED
@@ -0,0 +1,1049 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ from typing import Any, Dict, Optional
3
+ from urllib.parse import parse_qsl, urlencode, urlparse, urlunparse
4
+
5
+ from fastapi import APIRouter, Form, HTTPException, Request
6
+ from fastapi.responses import HTMLResponse, JSONResponse, RedirectResponse
7
+
8
+ from litellm._logging import verbose_logger
9
+ from litellm.llms.custom_httpx.http_handler import (
10
+ get_async_httpx_client,
11
+ httpxSpecialProvider,
12
+ )
13
+ from litellm.proxy._experimental.mcp_server.oauth_utils import (
14
+ TOKEN_NO_CACHE_HEADERS,
15
+ validate_loopback_redirect_uri,
16
+ )
17
+ from litellm.proxy.auth.ip_address_utils import IPAddressUtils
18
+ from litellm.proxy.common_utils.encrypt_decrypt_utils import (
19
+ decrypt_value_helper,
20
+ encrypt_value_helper,
21
+ )
22
+ from litellm.proxy.common_utils.http_parsing_utils import _read_request_body
23
+ from litellm.proxy.utils import get_server_root_path
24
+ from litellm.types.mcp import MCPAuth
25
+ from litellm.types.mcp_server.mcp_server_manager import MCPServer
26
+
27
+ router = APIRouter(
28
+ tags=["mcp"],
29
+ )
30
+
31
+
32
+ def get_request_base_url(request: Request) -> str:
33
+ """
34
+ Get the base URL for the request, considering X-Forwarded-* headers.
35
+
36
+ X-Forwarded-Proto / X-Forwarded-Host / X-Forwarded-Port are only honoured
37
+ when the request comes from a configured trusted proxy
38
+ (``use_x_forwarded_for`` enabled AND caller in ``mcp_trusted_proxy_ranges``).
39
+ Otherwise the request's literal ``base_url`` is returned, so an
40
+ untrusted caller cannot poison OAuth-discovery / redirect_uri values
41
+ by injecting headers.
42
+
43
+ Args:
44
+ request: FastAPI Request object
45
+
46
+ Returns:
47
+ The reconstructed base URL (e.g., "https://proxy.example.com")
48
+ """
49
+ base_url = str(request.base_url).rstrip("/")
50
+ parsed = urlparse(base_url)
51
+
52
+ if not IPAddressUtils.is_request_from_trusted_proxy(request):
53
+ return base_url
54
+
55
+ x_forwarded_proto = request.headers.get("X-Forwarded-Proto")
56
+ x_forwarded_host = request.headers.get("X-Forwarded-Host")
57
+ x_forwarded_port = request.headers.get("X-Forwarded-Port")
58
+
59
+ scheme = x_forwarded_proto if x_forwarded_proto else parsed.scheme
60
+
61
+ if x_forwarded_host:
62
+ # X-Forwarded-Host may already include port (e.g., "example.com:8080")
63
+ if ":" in x_forwarded_host and not x_forwarded_host.startswith("["):
64
+ netloc = x_forwarded_host
65
+ elif x_forwarded_port:
66
+ netloc = f"{x_forwarded_host}:{x_forwarded_port}"
67
+ else:
68
+ netloc = x_forwarded_host
69
+ else:
70
+ netloc = parsed.netloc
71
+ if x_forwarded_port and ":" not in netloc:
72
+ netloc = f"{netloc}:{x_forwarded_port}"
73
+
74
+ return urlunparse((scheme, netloc, parsed.path, "", "", ""))
75
+
76
+
77
+ def encode_state_with_base_url(
78
+ base_url: str,
79
+ original_state: str,
80
+ code_challenge: Optional[str] = None,
81
+ code_challenge_method: Optional[str] = None,
82
+ client_redirect_uri: Optional[str] = None,
83
+ ) -> str:
84
+ """
85
+ Encode the base_url, original state, and PKCE parameters using encryption.
86
+
87
+ Args:
88
+ base_url: The base URL to encode
89
+ original_state: The original state parameter
90
+ code_challenge: PKCE code challenge from client
91
+ code_challenge_method: PKCE code challenge method from client
92
+ client_redirect_uri: Original redirect_uri from client
93
+
94
+ Returns:
95
+ An encrypted string that encodes all values
96
+ """
97
+ state_data = {
98
+ "base_url": base_url,
99
+ "original_state": original_state,
100
+ "code_challenge": code_challenge,
101
+ "code_challenge_method": code_challenge_method,
102
+ "client_redirect_uri": client_redirect_uri,
103
+ }
104
+ state_json = json.dumps(state_data, sort_keys=True)
105
+ encrypted_state = encrypt_value_helper(state_json)
106
+ return encrypted_state
107
+
108
+
109
+ def decode_state_hash(encrypted_state: str) -> dict:
110
+ """
111
+ Decode an encrypted state to retrieve all OAuth session data.
112
+
113
+ Args:
114
+ encrypted_state: The encrypted string to decode
115
+
116
+ Returns:
117
+ A dict containing base_url, original_state, and optional PKCE parameters
118
+
119
+ Raises:
120
+ Exception: If decryption fails or data is malformed
121
+ """
122
+ decrypted_json = decrypt_value_helper(encrypted_state, "oauth_state")
123
+ if decrypted_json is None:
124
+ raise ValueError("Failed to decrypt state parameter")
125
+
126
+ state_data = json.loads(decrypted_json)
127
+ return state_data
128
+
129
+
130
+ def _get_validated_client_redirect_uri(state_data: Dict[str, Any]) -> str:
131
+ """Return a loopback client redirect URI from OAuth state."""
132
+ redirect_uri = state_data.get("client_redirect_uri") or state_data.get("base_url")
133
+ if not redirect_uri or not isinstance(redirect_uri, str):
134
+ raise HTTPException(status_code=400, detail="Invalid redirect URI")
135
+ validate_loopback_redirect_uri(redirect_uri)
136
+ return redirect_uri
137
+
138
+
139
+ def _append_query_params(url: str, params: Dict[str, str]) -> str:
140
+ parsed = urlparse(url)
141
+ query_params = parse_qsl(parsed.query, keep_blank_values=True)
142
+ query_params.extend(params.items())
143
+ return urlunparse(parsed._replace(query=urlencode(query_params)))
144
+
145
+
146
+ def _resolve_oauth2_server_for_root_endpoints(
147
+ client_ip: Optional[str] = None,
148
+ ) -> Optional[MCPServer]:
149
+ """
150
+ Resolve the MCP server for root-level OAuth endpoints (no server name in path).
151
+
152
+ When the MCP SDK hits root-level endpoints like /register, /authorize, /token
153
+ without a server name prefix, we try to find the right server automatically.
154
+ Returns the server if exactly one OAuth2 server is configured, else None.
155
+ """
156
+ from litellm.proxy._experimental.mcp_server.mcp_server_manager import (
157
+ global_mcp_server_manager,
158
+ )
159
+
160
+ registry = global_mcp_server_manager.get_filtered_registry(client_ip=client_ip)
161
+ oauth2_servers = [s for s in registry.values() if s.auth_type == MCPAuth.oauth2]
162
+ if len(oauth2_servers) == 1:
163
+ return oauth2_servers[0]
164
+ return None
165
+
166
+
167
+ def _validate_token_response(
168
+ token_response: Dict[str, Any],
169
+ validation_rules: Dict[str, Any],
170
+ server_id: str,
171
+ ) -> None:
172
+ """Raise HTTPException 403 if any validation rule doesn't match the token response.
173
+
174
+ Supports dot-notation for nested fields (e.g. ``"team.enterprise_id"`` checks
175
+ ``token_response["team"]["enterprise_id"]``). Top-level keys are tried first,
176
+ then dot-split traversal. All comparisons are string-coerced so that numeric
177
+ values in the response (e.g. ``"org_id": 12345``) match string rules
178
+ (``"org_id": "12345"``).
179
+ """
180
+ for key, expected in validation_rules.items():
181
+ actual: Any = token_response.get(key)
182
+ # Try dot-notation traversal when top-level lookup returns None
183
+ if actual is None and "." in key:
184
+ obj: Any = token_response
185
+ for part in key.split("."):
186
+ if isinstance(obj, dict):
187
+ obj = obj.get(part)
188
+ else:
189
+ obj = None
190
+ break
191
+ actual = obj
192
+ # Treat absent fields as a distinct failure from a mismatched value
193
+ if actual is None:
194
+ raise HTTPException(
195
+ status_code=403,
196
+ detail={
197
+ "error": "token_validation_failed",
198
+ "server_id": server_id,
199
+ "field": key,
200
+ "message": (
201
+ f"OAuth token rejected: required field '{key}' is absent"
202
+ ),
203
+ },
204
+ )
205
+ if str(actual) != str(expected):
206
+ raise HTTPException(
207
+ status_code=403,
208
+ detail={
209
+ "error": "token_validation_failed",
210
+ "server_id": server_id,
211
+ "field": key,
212
+ "message": (
213
+ f"OAuth token rejected: '{key}' = '{actual}', "
214
+ f"expected '{expected}'"
215
+ ),
216
+ },
217
+ )
218
+
219
+
220
+ async def _extract_user_id_from_request(request: Request) -> Optional[str]:
221
+ """Best-effort extraction of LiteLLM user_id from the request's Authorization header.
222
+
223
+ Called at the OAuth token endpoint so that per-user tokens can be stored
224
+ server-side. Uses a read-only cache lookup to avoid re-running the full
225
+ auth pipeline (which has side effects such as rate-limit increments and
226
+ spend logging). Returns ``None`` if no cached credential is found.
227
+ """
228
+ auth_header = request.headers.get("Authorization") or request.headers.get(
229
+ "authorization"
230
+ )
231
+ if not auth_header:
232
+ return None
233
+ lower = auth_header.lower()
234
+ if not lower.startswith("bearer "):
235
+ return None
236
+ token = auth_header[7:].strip()
237
+ try:
238
+ from litellm.proxy._types import hash_token # noqa: PLC0415
239
+ from litellm.proxy.proxy_server import user_api_key_cache # noqa: PLC0415
240
+
241
+ cached = await user_api_key_cache.async_get_cache(hash_token(token))
242
+ return getattr(cached, "user_id", None)
243
+ except Exception:
244
+ return None
245
+
246
+
247
+ async def _store_per_user_token_server_side(
248
+ server: MCPServer,
249
+ user_id: str,
250
+ token_response: Dict[str, Any],
251
+ ) -> None:
252
+ """Persist the OAuth token server-side and warm the Redis cache.
253
+
254
+ Called from the token endpoint after a successful code exchange or refresh.
255
+ Errors are logged but NOT re-raised — the token is always returned to the
256
+ client even when server-side storage fails.
257
+ """
258
+ from litellm.proxy._experimental.mcp_server.oauth2_token_cache import ( # noqa: PLC0415
259
+ _compute_per_user_token_ttl,
260
+ mcp_per_user_token_cache,
261
+ )
262
+ from litellm.proxy.utils import get_prisma_client_or_throw # noqa: PLC0415
263
+
264
+ access_token: Optional[str] = token_response.get("access_token")
265
+ if not access_token:
266
+ return
267
+
268
+ raw_expires = token_response.get("expires_in")
269
+ try:
270
+ expires_in: Optional[int] = (
271
+ int(raw_expires) if raw_expires is not None else None
272
+ )
273
+ except (TypeError, ValueError):
274
+ expires_in = None
275
+
276
+ refresh_token: Optional[str] = token_response.get("refresh_token") or None
277
+ raw_scope = token_response.get("scope")
278
+ scopes: Optional[list] = (
279
+ raw_scope.split() if isinstance(raw_scope, str) and raw_scope else None
280
+ )
281
+
282
+ try:
283
+ prisma_client = get_prisma_client_or_throw(
284
+ "Database not connected. Cannot store per-user OAuth token."
285
+ )
286
+ from litellm.proxy._experimental.mcp_server.db import ( # noqa: PLC0415
287
+ store_user_oauth_credential,
288
+ )
289
+
290
+ await store_user_oauth_credential(
291
+ prisma_client=prisma_client,
292
+ user_id=user_id,
293
+ server_id=server.server_id,
294
+ access_token=access_token,
295
+ refresh_token=refresh_token,
296
+ expires_in=expires_in,
297
+ scopes=scopes,
298
+ )
299
+ verbose_logger.info(
300
+ "_store_per_user_token_server_side: stored token for user=%s server=%s",
301
+ user_id,
302
+ server.server_id,
303
+ )
304
+ except Exception as exc:
305
+ verbose_logger.warning(
306
+ "_store_per_user_token_server_side: DB storage failed for user=%s server=%s: %s",
307
+ user_id,
308
+ server.server_id,
309
+ exc,
310
+ )
311
+ return # Don't warm Redis if DB write failed
312
+
313
+ # Warm the Redis cache so the first subsequent MCP call is a cache hit
314
+ ttl = _compute_per_user_token_ttl(server, expires_in)
315
+ await mcp_per_user_token_cache.set(
316
+ user_id=user_id,
317
+ server_id=server.server_id,
318
+ access_token=access_token,
319
+ ttl=ttl,
320
+ )
321
+
322
+
323
+ async def authorize_with_server(
324
+ request: Request,
325
+ mcp_server: MCPServer,
326
+ client_id: str,
327
+ redirect_uri: str,
328
+ state: str = "",
329
+ code_challenge: Optional[str] = None,
330
+ code_challenge_method: Optional[str] = None,
331
+ response_type: Optional[str] = None,
332
+ scope: Optional[str] = None,
333
+ ):
334
+ if mcp_server.auth_type != "oauth2":
335
+ raise HTTPException(status_code=400, detail="MCP server is not OAuth2")
336
+ if mcp_server.authorization_url is None:
337
+ raise HTTPException(
338
+ status_code=400, detail="MCP server authorization url is not set"
339
+ )
340
+
341
+ # Loopback-only redirect_uri. The URI is encrypted into the OAuth
342
+ # state and decoded on /callback to redirect the user back; a non-
343
+ # loopback URI would be an open-redirect + code-theft primitive
344
+ # (VERIA-57 root cause B). MCP clients are native apps — loopback is
345
+ # the spec-compliant callback pattern.
346
+ validate_loopback_redirect_uri(redirect_uri)
347
+ parsed = urlparse(redirect_uri)
348
+ base_url = urlunparse(parsed._replace(query=""))
349
+ request_base_url = get_request_base_url(request)
350
+ encoded_state = encode_state_with_base_url(
351
+ base_url=base_url,
352
+ original_state=state,
353
+ code_challenge=code_challenge,
354
+ code_challenge_method=code_challenge_method,
355
+ client_redirect_uri=redirect_uri,
356
+ )
357
+
358
+ params = {
359
+ "client_id": mcp_server.client_id if mcp_server.client_id else client_id,
360
+ "redirect_uri": f"{request_base_url}/callback",
361
+ "state": encoded_state,
362
+ "response_type": response_type or "code",
363
+ }
364
+ if scope:
365
+ params["scope"] = scope
366
+ elif mcp_server.scopes:
367
+ params["scope"] = " ".join(mcp_server.scopes)
368
+
369
+ if code_challenge:
370
+ params["code_challenge"] = code_challenge
371
+ if code_challenge_method:
372
+ params["code_challenge_method"] = code_challenge_method
373
+
374
+ parsed_auth_url = urlparse(mcp_server.authorization_url)
375
+ existing_params = dict(parse_qsl(parsed_auth_url.query))
376
+ existing_params.update(params)
377
+ final_url = urlunparse(parsed_auth_url._replace(query=urlencode(existing_params)))
378
+ return RedirectResponse(final_url)
379
+
380
+
381
+ async def exchange_token_with_server(
382
+ request: Request,
383
+ mcp_server: MCPServer,
384
+ grant_type: str,
385
+ code: Optional[str],
386
+ redirect_uri: Optional[str],
387
+ client_id: str,
388
+ client_secret: Optional[str],
389
+ code_verifier: Optional[str],
390
+ refresh_token: Optional[str] = None,
391
+ scope: Optional[str] = None,
392
+ ):
393
+ if grant_type not in ("authorization_code", "refresh_token"):
394
+ raise HTTPException(status_code=400, detail="Unsupported grant_type")
395
+
396
+ if mcp_server.token_url is None:
397
+ raise HTTPException(status_code=400, detail="MCP server token url is not set")
398
+
399
+ resolved_client_id = mcp_server.client_id if mcp_server.client_id else client_id
400
+ resolved_client_secret = (
401
+ mcp_server.client_secret if mcp_server.client_secret else client_secret
402
+ )
403
+
404
+ if grant_type == "refresh_token":
405
+ if not refresh_token:
406
+ raise HTTPException(
407
+ status_code=400,
408
+ detail="refresh_token is required for refresh_token grant",
409
+ )
410
+ token_data: dict = {
411
+ "grant_type": "refresh_token",
412
+ "refresh_token": refresh_token,
413
+ "client_id": resolved_client_id,
414
+ }
415
+ if resolved_client_secret is not None:
416
+ token_data["client_secret"] = resolved_client_secret
417
+ if scope:
418
+ token_data["scope"] = scope
419
+ else:
420
+ if not code:
421
+ raise HTTPException(
422
+ status_code=400,
423
+ detail="code is required for authorization_code grant",
424
+ )
425
+ proxy_base_url = get_request_base_url(request)
426
+ token_data = {
427
+ "grant_type": "authorization_code",
428
+ "client_id": resolved_client_id,
429
+ "code": code,
430
+ "redirect_uri": f"{proxy_base_url}/callback",
431
+ }
432
+ if resolved_client_secret is not None:
433
+ token_data["client_secret"] = resolved_client_secret
434
+ if code_verifier:
435
+ token_data["code_verifier"] = code_verifier
436
+
437
+ async_client = get_async_httpx_client(llm_provider=httpxSpecialProvider.Oauth2Check)
438
+ response = await async_client.post(
439
+ mcp_server.token_url,
440
+ headers={"Accept": "application/json"},
441
+ data=token_data,
442
+ )
443
+
444
+ response.raise_for_status()
445
+ token_response = response.json()
446
+ access_token = token_response["access_token"]
447
+
448
+ # Validate token response against server-configured rules before any storage.
449
+ # This rejects tokens from wrong Slack workspaces, Atlassian orgs, etc.
450
+ if mcp_server.token_validation and isinstance(mcp_server.token_validation, dict):
451
+ _validate_token_response(
452
+ token_response=token_response,
453
+ validation_rules=mcp_server.token_validation,
454
+ server_id=mcp_server.server_id,
455
+ )
456
+
457
+ # Store server-side when the server is configured for per-user OAuth and
458
+ # the calling client has provided a valid LiteLLM identity.
459
+ # Errors are non-fatal: the token is still returned to the client.
460
+ if mcp_server.needs_user_oauth_token:
461
+ user_id = await _extract_user_id_from_request(request)
462
+ if user_id:
463
+ try:
464
+ await _store_per_user_token_server_side(
465
+ server=mcp_server,
466
+ user_id=user_id,
467
+ token_response=token_response,
468
+ )
469
+ except Exception as exc:
470
+ verbose_logger.warning(
471
+ "exchange_token_with_server: server-side storage failed "
472
+ "for user=%s server=%s: %s",
473
+ user_id,
474
+ mcp_server.server_id,
475
+ exc,
476
+ )
477
+ else:
478
+ verbose_logger.debug(
479
+ "exchange_token_with_server: no LiteLLM user_id found in request; "
480
+ "per-user token for server=%s will not be stored server-side. "
481
+ "The client should call POST /mcp/server/{id}/oauth-user-credential "
482
+ "to store it manually.",
483
+ mcp_server.server_id,
484
+ )
485
+
486
+ result = {
487
+ "access_token": access_token,
488
+ "token_type": token_response.get("token_type", "Bearer"),
489
+ "expires_in": token_response.get("expires_in", 3600),
490
+ }
491
+
492
+ if "refresh_token" in token_response and token_response["refresh_token"]:
493
+ result["refresh_token"] = token_response["refresh_token"]
494
+ if "scope" in token_response and token_response["scope"]:
495
+ result["scope"] = token_response["scope"]
496
+
497
+ # RFC 6749 §5.1: token responses must not be cached.
498
+ return JSONResponse(result, headers=TOKEN_NO_CACHE_HEADERS)
499
+
500
+
501
+ async def register_client_with_server(
502
+ request: Request,
503
+ mcp_server: MCPServer,
504
+ client_name: str,
505
+ grant_types: Optional[list],
506
+ response_types: Optional[list],
507
+ token_endpoint_auth_method: Optional[str],
508
+ fallback_client_id: Optional[str] = None,
509
+ ):
510
+ request_base_url = get_request_base_url(request)
511
+ dummy_return = {
512
+ "client_id": fallback_client_id or mcp_server.server_name,
513
+ "client_secret": "dummy",
514
+ "redirect_uris": [f"{request_base_url}/callback"],
515
+ }
516
+
517
+ if mcp_server.client_id and mcp_server.client_secret:
518
+ return dummy_return
519
+
520
+ if mcp_server.authorization_url is None:
521
+ raise HTTPException(
522
+ status_code=400, detail="MCP server authorization url is not set"
523
+ )
524
+
525
+ if mcp_server.registration_url is None:
526
+ return dummy_return
527
+
528
+ register_data = {
529
+ "client_name": client_name,
530
+ "redirect_uris": [f"{request_base_url}/callback"],
531
+ "grant_types": grant_types or [],
532
+ "response_types": response_types or [],
533
+ "token_endpoint_auth_method": token_endpoint_auth_method or "",
534
+ }
535
+ headers = {
536
+ "Content-Type": "application/json",
537
+ "Accept": "application/json",
538
+ }
539
+
540
+ async_client = get_async_httpx_client(
541
+ llm_provider=httpxSpecialProvider.Oauth2Register
542
+ )
543
+ response = await async_client.post(
544
+ mcp_server.registration_url,
545
+ headers=headers,
546
+ json=register_data,
547
+ )
548
+ response.raise_for_status()
549
+
550
+ token_response = response.json()
551
+
552
+ return JSONResponse(token_response)
553
+
554
+
555
+ @router.get("/{mcp_server_name}/authorize")
556
+ @router.get("/authorize")
557
+ async def authorize(
558
+ request: Request,
559
+ redirect_uri: str,
560
+ client_id: Optional[str] = None,
561
+ state: str = "",
562
+ mcp_server_name: Optional[str] = None,
563
+ code_challenge: Optional[str] = None,
564
+ code_challenge_method: Optional[str] = None,
565
+ response_type: Optional[str] = None,
566
+ scope: Optional[str] = None,
567
+ ):
568
+ # Redirect to real OAuth provider with PKCE support
569
+ from litellm.proxy._experimental.mcp_server.mcp_server_manager import (
570
+ global_mcp_server_manager,
571
+ )
572
+
573
+ lookup_name: Optional[str] = mcp_server_name or client_id
574
+ client_ip = IPAddressUtils.get_mcp_client_ip(request)
575
+ mcp_server = (
576
+ global_mcp_server_manager.get_mcp_server_by_name(
577
+ lookup_name, client_ip=client_ip
578
+ )
579
+ if lookup_name
580
+ else None
581
+ )
582
+ if mcp_server is None and mcp_server_name is None:
583
+ mcp_server = _resolve_oauth2_server_for_root_endpoints(client_ip=client_ip)
584
+ if mcp_server is None:
585
+ raise HTTPException(status_code=404, detail="MCP server not found")
586
+ # Use server's stored client_id when caller doesn't supply one.
587
+ # Raise a clear error instead of passing an empty string — an empty
588
+ # client_id would silently produce a broken authorization URL.
589
+ resolved_client_id: str = mcp_server.client_id or client_id or ""
590
+ if not resolved_client_id:
591
+ raise HTTPException(
592
+ status_code=400,
593
+ detail={
594
+ "error": "client_id is required but was not supplied and is not "
595
+ "stored on the MCP server record. Provide client_id as a query "
596
+ "parameter or configure it on the server."
597
+ },
598
+ )
599
+ return await authorize_with_server(
600
+ request=request,
601
+ mcp_server=mcp_server,
602
+ client_id=resolved_client_id,
603
+ redirect_uri=redirect_uri,
604
+ state=state,
605
+ code_challenge=code_challenge,
606
+ code_challenge_method=code_challenge_method,
607
+ response_type=response_type,
608
+ scope=scope,
609
+ )
610
+
611
+
612
+ @router.post("/{mcp_server_name}/token")
613
+ @router.post("/token")
614
+ async def token_endpoint(
615
+ request: Request,
616
+ grant_type: str = Form(...),
617
+ code: str = Form(None),
618
+ redirect_uri: str = Form(None),
619
+ client_id: str = Form(...),
620
+ client_secret: Optional[str] = Form(None),
621
+ code_verifier: str = Form(None),
622
+ refresh_token: Optional[str] = Form(None),
623
+ scope: Optional[str] = Form(None),
624
+ mcp_server_name: Optional[str] = None,
625
+ ):
626
+ """
627
+ Accept the authorization code from client and exchange it for OAuth token.
628
+ Supports PKCE flow by forwarding code_verifier to upstream provider.
629
+
630
+ 1. Call the token endpoint with PKCE parameters
631
+ 2. Store the user's token in the db - and generate a LiteLLM virtual key
632
+ 3. Return the token
633
+ 4. Return a virtual key in this response
634
+ """
635
+ from litellm.proxy._experimental.mcp_server.mcp_server_manager import (
636
+ global_mcp_server_manager,
637
+ )
638
+
639
+ lookup_name = mcp_server_name or client_id
640
+ client_ip = IPAddressUtils.get_mcp_client_ip(request)
641
+ mcp_server = global_mcp_server_manager.get_mcp_server_by_name(
642
+ lookup_name, client_ip=client_ip
643
+ )
644
+ if mcp_server is None and mcp_server_name is None:
645
+ mcp_server = _resolve_oauth2_server_for_root_endpoints(client_ip=client_ip)
646
+ if mcp_server is None:
647
+ raise HTTPException(status_code=404, detail="MCP server not found")
648
+ return await exchange_token_with_server(
649
+ request=request,
650
+ mcp_server=mcp_server,
651
+ grant_type=grant_type,
652
+ code=code,
653
+ redirect_uri=redirect_uri,
654
+ client_id=client_id,
655
+ client_secret=client_secret,
656
+ code_verifier=code_verifier,
657
+ refresh_token=refresh_token,
658
+ scope=scope,
659
+ )
660
+
661
+
662
+ @router.get("/callback")
663
+ async def callback(code: str, state: str):
664
+ try:
665
+ state_data = decode_state_hash(state)
666
+ original_state = state_data["original_state"]
667
+
668
+ # Re-validate loopback at the sink. /authorize rejects non-loopback
669
+ # redirect_uri before encoding into state, but encrypted states
670
+ # minted before that check was added have no expiry and remain
671
+ # valid indefinitely. Validating here blocks the open-redirect +
672
+ # code-theft primitive even for pre-fix states.
673
+ redirect_uri = _get_validated_client_redirect_uri(state_data)
674
+
675
+ params = {"code": code, "state": original_state}
676
+ complete_returned_url = _append_query_params(redirect_uri, params)
677
+ return RedirectResponse(url=complete_returned_url, status_code=302)
678
+
679
+ except HTTPException:
680
+ # Re-raise so a non-loopback base_url surfaces as 400 instead of
681
+ # a generic "authentication incomplete" redirect.
682
+ raise
683
+ except Exception:
684
+ return HTMLResponse(
685
+ "<html><body>Authentication incomplete. You can close this window.</body></html>"
686
+ )
687
+
688
+
689
+ # ------------------------------
690
+ # Optional .well-known endpoints for MCP + OAuth discovery
691
+ # ------------------------------
692
+ """
693
+ Per SEP-985, the client MUST:
694
+ 1. Try resource_metadata from WWW-Authenticate header (if present)
695
+ 2. Fall back to path-based well-known URI: /.well-known/oauth-protected-resource/{path}
696
+ (
697
+ If the resource identifier value contains a path or query component, any terminating slash (/)
698
+ following the host component MUST be removed before inserting /.well-known/ and the well-known
699
+ URI path suffix between the host component and the path(include root path) and/or query components.
700
+ https://datatracker.ietf.org/doc/html/rfc9728#section-3.1)
701
+ 3. Fall back to root-based well-known URI: /.well-known/oauth-protected-resource
702
+
703
+ Dual Pattern Support:
704
+ - Standard MCP pattern: /mcp/{server_name} (recommended, used by mcp-inspector, VSCode Copilot)
705
+ - LiteLLM legacy pattern: /{server_name}/mcp (backward compatibility)
706
+
707
+ The resource URL returned matches the pattern used in the discovery request.
708
+ """
709
+
710
+
711
+ def _build_oauth_protected_resource_response(
712
+ request: Request,
713
+ mcp_server_name: Optional[str],
714
+ use_standard_pattern: bool,
715
+ ) -> dict:
716
+ """
717
+ Build OAuth protected resource response with the appropriate URL pattern.
718
+
719
+ Args:
720
+ request: FastAPI Request object
721
+ mcp_server_name: Name of the MCP server
722
+ use_standard_pattern: If True, use /mcp/{server_name} pattern;
723
+ if False, use /{server_name}/mcp pattern
724
+
725
+ Returns:
726
+ OAuth protected resource metadata dict
727
+ """
728
+ from litellm.proxy._experimental.mcp_server.mcp_server_manager import (
729
+ global_mcp_server_manager,
730
+ )
731
+
732
+ request_base_url = get_request_base_url(request)
733
+ client_ip = IPAddressUtils.get_mcp_client_ip(request)
734
+
735
+ # When no server name provided, try to resolve the single OAuth2 server
736
+ if mcp_server_name is None:
737
+ resolved = _resolve_oauth2_server_for_root_endpoints(client_ip=client_ip)
738
+ if resolved:
739
+ mcp_server_name = resolved.server_name or resolved.name
740
+
741
+ mcp_server: Optional[MCPServer] = None
742
+ if mcp_server_name:
743
+ mcp_server = global_mcp_server_manager.get_mcp_server_by_name(
744
+ mcp_server_name, client_ip=client_ip
745
+ )
746
+
747
+ # Build resource URL based on the pattern
748
+ if mcp_server_name:
749
+ if use_standard_pattern:
750
+ # Standard MCP pattern: /mcp/{server_name}
751
+ resource_url = f"{request_base_url}/mcp/{mcp_server_name}"
752
+ else:
753
+ # LiteLLM legacy pattern: /{server_name}/mcp
754
+ resource_url = f"{request_base_url}/{mcp_server_name}/mcp"
755
+ else:
756
+ resource_url = f"{request_base_url}/mcp"
757
+
758
+ return {
759
+ "authorization_servers": [
760
+ (
761
+ f"{request_base_url}/{mcp_server_name}"
762
+ if mcp_server_name
763
+ else f"{request_base_url}"
764
+ )
765
+ ],
766
+ "resource": resource_url,
767
+ "scopes_supported": (
768
+ mcp_server.scopes if mcp_server and mcp_server.scopes else []
769
+ ),
770
+ }
771
+
772
+
773
+ # Standard MCP pattern: /.well-known/oauth-protected-resource/mcp/{server_name}
774
+ # This is the pattern expected by standard MCP clients (mcp-inspector, VSCode Copilot)
775
+ @router.get(
776
+ f"/.well-known/oauth-protected-resource{'' if get_server_root_path() == '/' else get_server_root_path()}/mcp/{{mcp_server_name}}"
777
+ )
778
+ async def oauth_protected_resource_mcp_standard(request: Request, mcp_server_name: str):
779
+ """
780
+ OAuth protected resource discovery endpoint using standard MCP URL pattern.
781
+
782
+ Standard pattern: /mcp/{server_name}
783
+ Discovery path: /.well-known/oauth-protected-resource/mcp/{server_name}
784
+
785
+ This endpoint is compliant with MCP specification and works with standard
786
+ MCP clients like mcp-inspector and VSCode Copilot.
787
+ """
788
+ return _build_oauth_protected_resource_response(
789
+ request=request,
790
+ mcp_server_name=mcp_server_name,
791
+ use_standard_pattern=True,
792
+ )
793
+
794
+
795
+ # LiteLLM legacy pattern: /.well-known/oauth-protected-resource/{server_name}/mcp
796
+ # Kept for backward compatibility with existing deployments
797
+ @router.get(
798
+ f"/.well-known/oauth-protected-resource{'' if get_server_root_path() == '/' else get_server_root_path()}/{{mcp_server_name}}/mcp"
799
+ )
800
+ @router.get("/.well-known/oauth-protected-resource")
801
+ async def oauth_protected_resource_mcp(
802
+ request: Request, mcp_server_name: Optional[str] = None
803
+ ):
804
+ """
805
+ OAuth protected resource discovery endpoint using LiteLLM legacy URL pattern.
806
+
807
+ Legacy pattern: /{server_name}/mcp
808
+ Discovery path: /.well-known/oauth-protected-resource/{server_name}/mcp
809
+
810
+ This endpoint is kept for backward compatibility. New integrations should
811
+ use the standard MCP pattern (/mcp/{server_name}) instead.
812
+ """
813
+ return _build_oauth_protected_resource_response(
814
+ request=request,
815
+ mcp_server_name=mcp_server_name,
816
+ use_standard_pattern=False,
817
+ )
818
+
819
+
820
+ """
821
+ https://datatracker.ietf.org/doc/html/rfc8414#section-3.1
822
+ RFC 8414: Path-aware OAuth discovery
823
+ If the issuer identifier value contains a path component, any
824
+ terminating "/" MUST be removed before inserting "/.well-known/" and
825
+ the well-known URI suffix between the host component and the path(include root path)
826
+ component.
827
+ """
828
+
829
+
830
+ def _build_oauth_authorization_server_response(
831
+ request: Request,
832
+ mcp_server_name: Optional[str],
833
+ ) -> dict:
834
+ """
835
+ Build OAuth authorization server metadata response.
836
+
837
+ Args:
838
+ request: FastAPI Request object
839
+ mcp_server_name: Name of the MCP server
840
+
841
+ Returns:
842
+ OAuth authorization server metadata dict
843
+ """
844
+ from litellm.proxy._experimental.mcp_server.mcp_server_manager import (
845
+ global_mcp_server_manager,
846
+ )
847
+
848
+ request_base_url = get_request_base_url(request)
849
+ client_ip = IPAddressUtils.get_mcp_client_ip(request)
850
+
851
+ # When no server name provided, try to resolve the single OAuth2 server
852
+ if mcp_server_name is None:
853
+ resolved = _resolve_oauth2_server_for_root_endpoints(client_ip=client_ip)
854
+ if resolved:
855
+ mcp_server_name = resolved.server_name or resolved.name
856
+
857
+ authorization_endpoint = (
858
+ f"{request_base_url}/{mcp_server_name}/authorize"
859
+ if mcp_server_name
860
+ else f"{request_base_url}/authorize"
861
+ )
862
+ token_endpoint = (
863
+ f"{request_base_url}/{mcp_server_name}/token"
864
+ if mcp_server_name
865
+ else f"{request_base_url}/token"
866
+ )
867
+
868
+ mcp_server: Optional[MCPServer] = None
869
+ if mcp_server_name:
870
+ mcp_server = global_mcp_server_manager.get_mcp_server_by_name(
871
+ mcp_server_name, client_ip=client_ip
872
+ )
873
+
874
+ return {
875
+ "issuer": request_base_url, # point to your proxy
876
+ "authorization_endpoint": authorization_endpoint,
877
+ "token_endpoint": token_endpoint,
878
+ "response_types_supported": ["code"],
879
+ "scopes_supported": (
880
+ mcp_server.scopes if mcp_server and mcp_server.scopes else []
881
+ ),
882
+ "grant_types_supported": ["authorization_code", "refresh_token"],
883
+ "code_challenge_methods_supported": ["S256"],
884
+ "token_endpoint_auth_methods_supported": ["client_secret_post"],
885
+ # Claude expects a registration endpoint, even if we just fake it
886
+ "registration_endpoint": (
887
+ f"{request_base_url}/{mcp_server_name}/register"
888
+ if mcp_server_name
889
+ else f"{request_base_url}/register"
890
+ ),
891
+ }
892
+
893
+
894
+ # Standard MCP pattern: /.well-known/oauth-authorization-server/mcp/{server_name}
895
+ @router.get(
896
+ f"/.well-known/oauth-authorization-server{'' if get_server_root_path() == '/' else get_server_root_path()}/mcp/{{mcp_server_name}}"
897
+ )
898
+ async def oauth_authorization_server_mcp_standard(
899
+ request: Request, mcp_server_name: str
900
+ ):
901
+ """
902
+ OAuth authorization server discovery endpoint using standard MCP URL pattern.
903
+
904
+ Standard pattern: /mcp/{server_name}
905
+ Discovery path: /.well-known/oauth-authorization-server/mcp/{server_name}
906
+ """
907
+ return _build_oauth_authorization_server_response(
908
+ request=request,
909
+ mcp_server_name=mcp_server_name,
910
+ )
911
+
912
+
913
+ # LiteLLM legacy pattern and root endpoint
914
+ @router.get(
915
+ f"/.well-known/oauth-authorization-server{'' if get_server_root_path() == '/' else get_server_root_path()}/{{mcp_server_name}}"
916
+ )
917
+ @router.get("/.well-known/oauth-authorization-server")
918
+ async def oauth_authorization_server_mcp(
919
+ request: Request, mcp_server_name: Optional[str] = None
920
+ ):
921
+ """
922
+ OAuth authorization server discovery endpoint.
923
+
924
+ Supports both legacy pattern (/{server_name}) and root endpoint.
925
+ """
926
+ return _build_oauth_authorization_server_response(
927
+ request=request,
928
+ mcp_server_name=mcp_server_name,
929
+ )
930
+
931
+
932
+ # Alias for standard OpenID discovery
933
+ @router.get("/.well-known/openid-configuration")
934
+ async def openid_configuration(request: Request):
935
+ response = await oauth_authorization_server_mcp(request)
936
+
937
+ # If MCPJWTSigner is active, augment the discovery doc with JWKS fields so
938
+ # MCP servers and gateways (e.g. AWS Bedrock AgentCore Gateway) can resolve
939
+ # the signing keys and verify liteLLM-issued tokens.
940
+ try:
941
+ from litellm.proxy.guardrails.guardrail_hooks.mcp_jwt_signer.mcp_jwt_signer import (
942
+ get_mcp_jwt_signer,
943
+ )
944
+
945
+ signer = get_mcp_jwt_signer()
946
+ if signer is not None:
947
+ request_base_url = get_request_base_url(request)
948
+ if isinstance(response, dict):
949
+ response = {
950
+ **response,
951
+ "jwks_uri": f"{request_base_url}/.well-known/jwks.json",
952
+ "id_token_signing_alg_values_supported": ["RS256"],
953
+ }
954
+ except ImportError:
955
+ pass
956
+
957
+ return response
958
+
959
+
960
+ @router.get("/.well-known/jwks.json")
961
+ async def jwks_json(request: Request):
962
+ """
963
+ JSON Web Key Set endpoint.
964
+
965
+ Returns the RSA public key used by MCPJWTSigner to sign outbound MCP tokens.
966
+ MCP servers and gateways use this endpoint to verify liteLLM-issued JWTs.
967
+
968
+ Returns an empty key set if MCPJWTSigner is not configured.
969
+ """
970
+ try:
971
+ from litellm.proxy.guardrails.guardrail_hooks.mcp_jwt_signer.mcp_jwt_signer import (
972
+ get_mcp_jwt_signer,
973
+ )
974
+
975
+ signer = get_mcp_jwt_signer()
976
+ if signer is not None:
977
+ return JSONResponse(
978
+ content=signer.get_jwks(),
979
+ headers={"Cache-Control": f"public, max-age={signer.jwks_max_age}"},
980
+ )
981
+ except ImportError:
982
+ pass
983
+
984
+ # No signer active — return empty key set; short cache so activation is picked up quickly.
985
+ return JSONResponse(
986
+ content={"keys": []},
987
+ headers={"Cache-Control": "public, max-age=60"},
988
+ )
989
+
990
+
991
+ # Additional legacy pattern support
992
+ @router.get("/.well-known/oauth-authorization-server/{mcp_server_name}/mcp")
993
+ async def oauth_authorization_server_legacy(request: Request, mcp_server_name: str):
994
+ """
995
+ OAuth authorization server discovery for legacy /{server_name}/mcp pattern.
996
+ """
997
+ return _build_oauth_authorization_server_response(
998
+ request=request,
999
+ mcp_server_name=mcp_server_name,
1000
+ )
1001
+
1002
+
1003
+ @router.post("/{mcp_server_name}/register")
1004
+ @router.post("/register")
1005
+ async def register_client(request: Request, mcp_server_name: Optional[str] = None):
1006
+ from litellm.proxy._experimental.mcp_server.mcp_server_manager import (
1007
+ global_mcp_server_manager,
1008
+ )
1009
+
1010
+ # Get the correct base URL considering X-Forwarded-* headers
1011
+ request_base_url = get_request_base_url(request)
1012
+
1013
+ request_data = await _read_request_body(request=request)
1014
+ data: dict = {**request_data}
1015
+
1016
+ dummy_return = {
1017
+ "client_id": mcp_server_name or "dummy_client",
1018
+ "client_secret": "dummy",
1019
+ "redirect_uris": [f"{request_base_url}/callback"],
1020
+ }
1021
+ client_ip = IPAddressUtils.get_mcp_client_ip(request)
1022
+ if not mcp_server_name:
1023
+ resolved = _resolve_oauth2_server_for_root_endpoints(client_ip=client_ip)
1024
+ if resolved:
1025
+ return await register_client_with_server(
1026
+ request=request,
1027
+ mcp_server=resolved,
1028
+ client_name=data.get("client_name", ""),
1029
+ grant_types=data.get("grant_types", []),
1030
+ response_types=data.get("response_types", []),
1031
+ token_endpoint_auth_method=data.get("token_endpoint_auth_method", ""),
1032
+ fallback_client_id=resolved.server_name or resolved.name,
1033
+ )
1034
+ return dummy_return
1035
+
1036
+ mcp_server = global_mcp_server_manager.get_mcp_server_by_name(
1037
+ mcp_server_name, client_ip=client_ip
1038
+ )
1039
+ if mcp_server is None:
1040
+ return dummy_return
1041
+ return await register_client_with_server(
1042
+ request=request,
1043
+ mcp_server=mcp_server,
1044
+ client_name=data.get("client_name", ""),
1045
+ grant_types=data.get("grant_types", []),
1046
+ response_types=data.get("response_types", []),
1047
+ token_endpoint_auth_method=data.get("token_endpoint_auth_method", ""),
1048
+ fallback_client_id=mcp_server_name,
1049
+ )
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/mcp_context.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Shared ContextVars for the MCP server layer.
3
+
4
+ Lives in its own module to avoid circular imports between
5
+ mcp_server_manager.py and server.py.
6
+ """
7
+
8
+ from contextvars import ContextVar
9
+ from typing import Optional
10
+
11
+ # Set server-side in proxy_server.py route handlers when a request arrives via
12
+ # /toolset/{name}/mcp or the toolset fallback in dynamic_mcp_route.
13
+ # Never populated from client-supplied headers.
14
+ _mcp_active_toolset_id: ContextVar[Optional[str]] = ContextVar(
15
+ "_mcp_active_toolset_id", default=None
16
+ )
17
+
18
+ # Per-request merged InitializeResult.instructions; set in MCP HTTP/SSE handlers.
19
+ _mcp_gateway_initialize_instructions: ContextVar[Optional[str]] = ContextVar(
20
+ "_mcp_gateway_initialize_instructions", default=None
21
+ )
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/mcp_debug.py ADDED
@@ -0,0 +1,325 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ MCP OAuth2 Debug Headers
3
+ ========================
4
+
5
+ Client-side debugging for MCP authentication flows.
6
+
7
+ When a client sends the ``x-litellm-mcp-debug: true`` header, LiteLLM
8
+ returns masked diagnostic headers in the response so operators can
9
+ troubleshoot OAuth2 issues without SSH access to the gateway.
10
+
11
+ Response headers returned (all values are masked for safety):
12
+
13
+ x-mcp-debug-inbound-auth
14
+ Which inbound auth headers were present and how they were classified.
15
+ Example: ``x-litellm-api-key=Bearer sk-12****1234``
16
+
17
+ x-mcp-debug-oauth2-token
18
+ The OAuth2 token extracted from the Authorization header (masked).
19
+ Shows ``(none)`` if absent, or flags ``SAME_AS_LITELLM_KEY`` when
20
+ the LiteLLM API key is accidentally leaking to the MCP server.
21
+
22
+ x-mcp-debug-auth-resolution
23
+ Which auth priority was used for the outbound MCP call:
24
+ ``per-request-header``, ``m2m-client-credentials``, ``static-token``,
25
+ ``oauth2-passthrough``, or ``no-auth``.
26
+
27
+ x-mcp-debug-outbound-url
28
+ The upstream MCP server URL that will receive the request.
29
+
30
+ x-mcp-debug-server-auth-type
31
+ The ``auth_type`` configured on the MCP server (e.g. ``oauth2``,
32
+ ``bearer_token``, ``none``).
33
+
34
+ Debugging Guide
35
+ ---------------
36
+
37
+ **Common issue: LiteLLM API key leaking to the MCP server**
38
+
39
+ Symptom: ``x-mcp-debug-oauth2-token`` shows ``SAME_AS_LITELLM_KEY``.
40
+
41
+ This means the ``Authorization`` header carries the LiteLLM API key and
42
+ it's being forwarded to the upstream MCP server instead of an OAuth2 token.
43
+
44
+ Fix: Move the LiteLLM key to ``x-litellm-api-key`` so the ``Authorization``
45
+ header is free for OAuth2 discovery::
46
+
47
+ # WRONG — blocks OAuth2 discovery
48
+ claude mcp add --transport http my_server http://proxy/mcp/server \\
49
+ --header "Authorization: Bearer sk-..."
50
+
51
+ # CORRECT — LiteLLM key in dedicated header, Authorization free for OAuth2
52
+ claude mcp add --transport http my_server http://proxy/mcp/server \\
53
+ --header "x-litellm-api-key: Bearer sk-..." \\
54
+ --header "x-litellm-mcp-debug: true"
55
+
56
+ **Common issue: No OAuth2 token present**
57
+
58
+ Symptom: ``x-mcp-debug-oauth2-token`` shows ``(none)`` and
59
+ ``x-mcp-debug-auth-resolution`` shows ``no-auth``.
60
+
61
+ This means the client didn't go through the OAuth2 flow. Check that:
62
+ 1. The ``Authorization`` header is NOT set as a static header in the client config.
63
+ 2. The ``.well-known/oauth-protected-resource`` endpoint returns valid metadata.
64
+ 3. The MCP server in LiteLLM config has ``auth_type: oauth2``.
65
+
66
+ **Common issue: M2M token used instead of user token**
67
+
68
+ Symptom: ``x-mcp-debug-auth-resolution`` shows ``m2m-client-credentials``.
69
+
70
+ This means the server has ``client_id``/``client_secret``/``token_url``
71
+ configured and LiteLLM is fetching a machine-to-machine token instead of
72
+ using the per-user OAuth2 token. If you want per-user tokens, remove the
73
+ client credentials from the server config.
74
+
75
+ Usage from Claude Code::
76
+
77
+ claude mcp add --transport http my_server http://proxy/mcp/server \\
78
+ --header "x-litellm-api-key: Bearer sk-..." \\
79
+ --header "x-litellm-mcp-debug: true"
80
+
81
+ Usage with curl::
82
+
83
+ curl -H "x-litellm-mcp-debug: true" \\
84
+ -H "x-litellm-api-key: Bearer sk-..." \\
85
+ http://localhost:4000/mcp/atlassian_mcp
86
+ """
87
+
88
+ from typing import TYPE_CHECKING, Dict, List, Optional
89
+
90
+ from starlette.types import Message, Send
91
+
92
+ from litellm.litellm_core_utils.sensitive_data_masker import SensitiveDataMasker
93
+
94
+ if TYPE_CHECKING:
95
+ from litellm.types.mcp_server.mcp_server_manager import MCPServer
96
+
97
+ # Header the client sends to opt into debug mode
98
+ MCP_DEBUG_REQUEST_HEADER = "x-litellm-mcp-debug"
99
+
100
+ # Prefix for all debug response headers
101
+ _RESPONSE_HEADER_PREFIX = "x-mcp-debug"
102
+
103
+
104
+ class MCPDebug:
105
+ """
106
+ Static helper class for MCP OAuth2 debug headers.
107
+
108
+ Provides opt-in client-side diagnostics by injecting masked
109
+ authentication info into HTTP response headers.
110
+ """
111
+
112
+ # Masker: show first 6 and last 4 chars so you can distinguish token types
113
+ # e.g. "Bearer****ef01" vs "sk-123****cdef"
114
+ _masker = SensitiveDataMasker(
115
+ sensitive_patterns={
116
+ "authorization",
117
+ "token",
118
+ "key",
119
+ "secret",
120
+ "auth",
121
+ "bearer",
122
+ },
123
+ visible_prefix=6,
124
+ visible_suffix=4,
125
+ )
126
+
127
+ @staticmethod
128
+ def _mask(value: Optional[str]) -> str:
129
+ """Mask a single value for safe display in headers."""
130
+ if not value:
131
+ return "(none)"
132
+ return MCPDebug._masker._mask_value(value)
133
+
134
+ @staticmethod
135
+ def is_debug_enabled(headers: Dict[str, str]) -> bool:
136
+ """
137
+ Check if the client opted into MCP debug mode.
138
+
139
+ Looks for ``x-litellm-mcp-debug: true`` (case-insensitive) in the
140
+ request headers.
141
+ """
142
+ for key, val in headers.items():
143
+ if key.lower() == MCP_DEBUG_REQUEST_HEADER:
144
+ return val.strip().lower() in ("true", "1", "yes")
145
+ return False
146
+
147
+ @staticmethod
148
+ def resolve_auth_resolution(
149
+ server: "MCPServer",
150
+ mcp_auth_header: Optional[str],
151
+ mcp_server_auth_headers: Optional[Dict[str, Dict[str, str]]],
152
+ oauth2_headers: Optional[Dict[str, str]],
153
+ ) -> str:
154
+ """
155
+ Determine which auth priority will be used for the outbound MCP call.
156
+
157
+ Returns one of: ``per-request-header``, ``m2m-client-credentials``,
158
+ ``static-token``, ``oauth2-passthrough``, or ``no-auth``.
159
+ """
160
+ from litellm.types.mcp import MCPAuth
161
+
162
+ has_server_specific = bool(
163
+ mcp_server_auth_headers
164
+ and (
165
+ mcp_server_auth_headers.get(server.alias or "")
166
+ or mcp_server_auth_headers.get(server.server_name or "")
167
+ )
168
+ )
169
+ if has_server_specific or mcp_auth_header:
170
+ return "per-request-header"
171
+ if server.has_client_credentials:
172
+ return "m2m-client-credentials"
173
+ if server.authentication_token:
174
+ return "static-token"
175
+ if oauth2_headers and server.auth_type == MCPAuth.oauth2:
176
+ return "oauth2-passthrough"
177
+ return "no-auth"
178
+
179
+ @staticmethod
180
+ def build_debug_headers(
181
+ *,
182
+ inbound_headers: Dict[str, str],
183
+ oauth2_headers: Optional[Dict[str, str]],
184
+ litellm_api_key: Optional[str],
185
+ auth_resolution: str,
186
+ server_url: Optional[str],
187
+ server_auth_type: Optional[str],
188
+ ) -> Dict[str, str]:
189
+ """
190
+ Build masked debug response headers.
191
+
192
+ Parameters
193
+ ----------
194
+ inbound_headers : dict
195
+ Raw headers received from the MCP client.
196
+ oauth2_headers : dict or None
197
+ Extracted OAuth2 headers (``{"Authorization": "Bearer ..."}``).
198
+ litellm_api_key : str or None
199
+ The LiteLLM API key extracted from ``x-litellm-api-key`` or
200
+ ``Authorization`` header.
201
+ auth_resolution : str
202
+ Which auth priority was selected for the outbound call.
203
+ server_url : str or None
204
+ Upstream MCP server URL.
205
+ server_auth_type : str or None
206
+ The ``auth_type`` configured on the server (e.g. ``oauth2``).
207
+
208
+ Returns
209
+ -------
210
+ dict
211
+ Headers to include in the response (all values masked).
212
+ """
213
+ debug: Dict[str, str] = {}
214
+
215
+ # --- Inbound auth summary ---
216
+ inbound_parts = []
217
+ for hdr_name in ("x-litellm-api-key", "authorization", "x-mcp-auth"):
218
+ for k, v in inbound_headers.items():
219
+ if k.lower() == hdr_name:
220
+ inbound_parts.append(f"{hdr_name}={MCPDebug._mask(v)}")
221
+ break
222
+ debug[f"{_RESPONSE_HEADER_PREFIX}-inbound-auth"] = (
223
+ "; ".join(inbound_parts) if inbound_parts else "(none)"
224
+ )
225
+
226
+ # --- OAuth2 token ---
227
+ oauth2_token = (oauth2_headers or {}).get("Authorization")
228
+ if oauth2_token and litellm_api_key:
229
+ oauth2_raw = oauth2_token.removeprefix("Bearer ").strip()
230
+ litellm_raw = litellm_api_key.removeprefix("Bearer ").strip()
231
+ if oauth2_raw == litellm_raw:
232
+ debug[f"{_RESPONSE_HEADER_PREFIX}-oauth2-token"] = (
233
+ f"{MCPDebug._mask(oauth2_token)} "
234
+ f"(SAME_AS_LITELLM_KEY - likely misconfigured)"
235
+ )
236
+ else:
237
+ debug[f"{_RESPONSE_HEADER_PREFIX}-oauth2-token"] = MCPDebug._mask(
238
+ oauth2_token
239
+ )
240
+ else:
241
+ debug[f"{_RESPONSE_HEADER_PREFIX}-oauth2-token"] = MCPDebug._mask(
242
+ oauth2_token
243
+ )
244
+
245
+ # --- Auth resolution ---
246
+ debug[f"{_RESPONSE_HEADER_PREFIX}-auth-resolution"] = auth_resolution
247
+
248
+ # --- Server info ---
249
+ debug[f"{_RESPONSE_HEADER_PREFIX}-outbound-url"] = server_url or "(unknown)"
250
+ debug[f"{_RESPONSE_HEADER_PREFIX}-server-auth-type"] = (
251
+ server_auth_type or "(none)"
252
+ )
253
+
254
+ return debug
255
+
256
+ @staticmethod
257
+ def wrap_send_with_debug_headers(send: Send, debug_headers: Dict[str, str]) -> Send:
258
+ """
259
+ Return a new ASGI ``send`` callable that injects *debug_headers*
260
+ into the ``http.response.start`` message.
261
+ """
262
+
263
+ async def _send_with_debug(message: Message) -> None:
264
+ if message["type"] == "http.response.start":
265
+ headers = list(message.get("headers", []))
266
+ for k, v in debug_headers.items():
267
+ headers.append((k.encode(), v.encode()))
268
+ message = {**message, "headers": headers}
269
+ await send(message)
270
+
271
+ return _send_with_debug
272
+
273
+ @staticmethod
274
+ def maybe_build_debug_headers(
275
+ *,
276
+ raw_headers: Optional[Dict[str, str]],
277
+ scope: Dict,
278
+ mcp_servers: Optional[List[str]],
279
+ mcp_auth_header: Optional[str],
280
+ mcp_server_auth_headers: Optional[Dict[str, Dict[str, str]]],
281
+ oauth2_headers: Optional[Dict[str, str]],
282
+ client_ip: Optional[str],
283
+ ) -> Dict[str, str]:
284
+ """
285
+ Build debug headers if debug mode is enabled, otherwise return empty dict.
286
+
287
+ This is the single entry point called from the MCP request handler.
288
+ """
289
+ if not raw_headers or not MCPDebug.is_debug_enabled(raw_headers):
290
+ return {}
291
+
292
+ from litellm.proxy._experimental.mcp_server.auth.user_api_key_auth_mcp import (
293
+ MCPRequestHandler,
294
+ )
295
+ from litellm.proxy._experimental.mcp_server.mcp_server_manager import (
296
+ global_mcp_server_manager,
297
+ )
298
+
299
+ server_url: Optional[str] = None
300
+ server_auth_type: Optional[str] = None
301
+ auth_resolution = "no-auth"
302
+
303
+ for server_name in mcp_servers or []:
304
+ server = global_mcp_server_manager.get_mcp_server_by_name(
305
+ server_name, client_ip=client_ip
306
+ )
307
+ if server:
308
+ server_url = server.url
309
+ server_auth_type = server.auth_type
310
+ auth_resolution = MCPDebug.resolve_auth_resolution(
311
+ server, mcp_auth_header, mcp_server_auth_headers, oauth2_headers
312
+ )
313
+ break
314
+
315
+ scope_headers = MCPRequestHandler._safe_get_headers_from_scope(scope)
316
+ litellm_key = MCPRequestHandler.get_litellm_api_key_from_headers(scope_headers)
317
+
318
+ return MCPDebug.build_debug_headers(
319
+ inbound_headers=raw_headers,
320
+ oauth2_headers=oauth2_headers,
321
+ litellm_api_key=litellm_key,
322
+ auth_resolution=auth_resolution,
323
+ server_url=server_url,
324
+ server_auth_type=server_auth_type,
325
+ )
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/mcp_server_manager.py ADDED
The diff for this file is too large to render. See raw diff
 
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/oauth2_token_cache.py ADDED
@@ -0,0 +1,278 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ OAuth2 client_credentials token cache for MCP servers.
3
+
4
+ Automatically fetches and refreshes access tokens for MCP servers configured
5
+ with ``client_id``, ``client_secret``, and ``token_url``.
6
+ """
7
+
8
+ import asyncio
9
+ from typing import TYPE_CHECKING, Dict, Optional, Tuple, Union
10
+
11
+ import httpx
12
+
13
+ from litellm._logging import verbose_logger
14
+ from litellm.caching.in_memory_cache import InMemoryCache
15
+ from litellm.constants import (
16
+ MCP_OAUTH2_TOKEN_CACHE_DEFAULT_TTL,
17
+ MCP_OAUTH2_TOKEN_CACHE_MAX_SIZE,
18
+ MCP_OAUTH2_TOKEN_CACHE_MIN_TTL,
19
+ MCP_OAUTH2_TOKEN_EXPIRY_BUFFER_SECONDS,
20
+ MCP_PER_USER_TOKEN_DEFAULT_TTL,
21
+ MCP_PER_USER_TOKEN_EXPIRY_BUFFER_SECONDS,
22
+ MCP_PER_USER_TOKEN_REDIS_KEY_PREFIX,
23
+ )
24
+ from litellm.llms.custom_httpx.http_handler import get_async_httpx_client
25
+ from litellm.proxy.common_utils.encrypt_decrypt_utils import (
26
+ decrypt_value_helper,
27
+ encrypt_value_helper,
28
+ )
29
+ from litellm.types.llms.custom_http import httpxSpecialProvider
30
+
31
+ if TYPE_CHECKING:
32
+ from litellm.types.mcp_server.mcp_server_manager import MCPServer
33
+
34
+
35
+ class MCPOAuth2TokenCache(InMemoryCache):
36
+ """
37
+ In-memory cache for OAuth2 client_credentials tokens, keyed by server_id.
38
+
39
+ Inherits from ``InMemoryCache`` for TTL-based storage and eviction.
40
+ Adds per-server ``asyncio.Lock`` to prevent duplicate concurrent fetches.
41
+ """
42
+
43
+ def __init__(self) -> None:
44
+ super().__init__(
45
+ max_size_in_memory=MCP_OAUTH2_TOKEN_CACHE_MAX_SIZE,
46
+ default_ttl=MCP_OAUTH2_TOKEN_CACHE_DEFAULT_TTL,
47
+ )
48
+ self._locks: Dict[str, asyncio.Lock] = {}
49
+
50
+ def _get_lock(self, server_id: str) -> asyncio.Lock:
51
+ return self._locks.setdefault(server_id, asyncio.Lock())
52
+
53
+ async def async_get_token(self, server: "MCPServer") -> Optional[str]:
54
+ """Return a valid access token, fetching or refreshing as needed.
55
+
56
+ Returns ``None`` when the server lacks client credentials config.
57
+ """
58
+ if not server.has_client_credentials:
59
+ return None
60
+
61
+ server_id = server.server_id
62
+
63
+ # Fast path — cached token is still valid
64
+ cached = self.get_cache(server_id)
65
+ if cached is not None:
66
+ return cached
67
+
68
+ # Slow path — acquire per-server lock then double-check
69
+ async with self._get_lock(server_id):
70
+ cached = self.get_cache(server_id)
71
+ if cached is not None:
72
+ return cached
73
+
74
+ token, ttl = await self._fetch_token(server)
75
+ self.set_cache(server_id, token, ttl=ttl)
76
+ return token
77
+
78
+ async def _fetch_token(self, server: "MCPServer") -> Tuple[str, int]:
79
+ """POST to ``token_url`` with ``grant_type=client_credentials``.
80
+
81
+ Returns ``(access_token, ttl_seconds)`` where ttl accounts for the
82
+ expiry buffer so the cache entry expires before the real token does.
83
+ """
84
+ client = get_async_httpx_client(llm_provider=httpxSpecialProvider.MCP)
85
+
86
+ if not server.client_id or not server.client_secret or not server.token_url:
87
+ raise ValueError(
88
+ f"MCP server '{server.server_id}' missing required OAuth2 fields: "
89
+ f"client_id={bool(server.client_id)}, "
90
+ f"client_secret={bool(server.client_secret)}, "
91
+ f"token_url={bool(server.token_url)}"
92
+ )
93
+
94
+ data: Dict[str, str] = {
95
+ "grant_type": "client_credentials",
96
+ "client_id": server.client_id,
97
+ "client_secret": server.client_secret,
98
+ }
99
+ if server.scopes:
100
+ data["scope"] = " ".join(server.scopes)
101
+
102
+ verbose_logger.debug(
103
+ "Fetching OAuth2 client_credentials token for MCP server %s",
104
+ server.server_id,
105
+ )
106
+
107
+ try:
108
+ response = await client.post(server.token_url, data=data)
109
+ response.raise_for_status()
110
+ except httpx.HTTPStatusError as exc:
111
+ raise ValueError(
112
+ f"OAuth2 token request for MCP server '{server.server_id}' "
113
+ f"failed with status {exc.response.status_code}"
114
+ ) from exc
115
+
116
+ body = response.json()
117
+
118
+ if not isinstance(body, dict):
119
+ raise ValueError(
120
+ f"OAuth2 token response for MCP server '{server.server_id}' "
121
+ f"returned non-object JSON (got {type(body).__name__})"
122
+ )
123
+
124
+ access_token = body.get("access_token")
125
+ if not access_token:
126
+ raise ValueError(
127
+ f"OAuth2 token response for MCP server '{server.server_id}' "
128
+ f"missing 'access_token'"
129
+ )
130
+
131
+ # Safely parse expires_in — providers may return null or non-numeric values
132
+ raw_expires_in = body.get("expires_in")
133
+ try:
134
+ expires_in = (
135
+ int(raw_expires_in)
136
+ if raw_expires_in is not None
137
+ else MCP_OAUTH2_TOKEN_CACHE_DEFAULT_TTL
138
+ )
139
+ except (TypeError, ValueError):
140
+ expires_in = MCP_OAUTH2_TOKEN_CACHE_DEFAULT_TTL
141
+
142
+ ttl = max(
143
+ expires_in - MCP_OAUTH2_TOKEN_EXPIRY_BUFFER_SECONDS,
144
+ MCP_OAUTH2_TOKEN_CACHE_MIN_TTL,
145
+ )
146
+
147
+ verbose_logger.info(
148
+ "Fetched OAuth2 token for MCP server %s (expires in %ds)",
149
+ server.server_id,
150
+ expires_in,
151
+ )
152
+ return access_token, ttl
153
+
154
+ def invalidate(self, server_id: str) -> None:
155
+ """Remove a cached token (e.g. after a 401)."""
156
+ self.delete_cache(server_id)
157
+
158
+
159
+ mcp_oauth2_token_cache = MCPOAuth2TokenCache()
160
+
161
+
162
+ def _compute_per_user_token_ttl(server: "MCPServer", expires_in: Optional[int]) -> int:
163
+ """Compute Redis TTL for a per-user token.
164
+
165
+ Uses server.token_storage_ttl_seconds when configured; otherwise derives
166
+ TTL from expires_in minus the expiry buffer; falls back to the default TTL.
167
+ """
168
+ if server.token_storage_ttl_seconds is not None:
169
+ return max(server.token_storage_ttl_seconds, 1)
170
+ if expires_in is not None:
171
+ return max(
172
+ expires_in - MCP_PER_USER_TOKEN_EXPIRY_BUFFER_SECONDS,
173
+ 1,
174
+ )
175
+ return MCP_PER_USER_TOKEN_DEFAULT_TTL
176
+
177
+
178
+ class MCPPerUserTokenCache:
179
+ """Redis-backed cache for per-user OAuth2 access tokens.
180
+
181
+ Uses LiteLLM's existing ``user_api_key_cache`` (DualCache with optional
182
+ Redis backend). Tokens are NaCl-encrypted with ``encrypt_value_helper``
183
+ before storage so they are safe at rest in Redis.
184
+
185
+ Redis key format: ``mcp:per_user_token:{user_id}:{server_id}``
186
+ Redis value: ``encrypt_value_helper(access_token)`` — URL-safe base64
187
+ """
188
+
189
+ def _cache_key(self, user_id: str, server_id: str) -> str:
190
+ return f"{MCP_PER_USER_TOKEN_REDIS_KEY_PREFIX}:{user_id}:{server_id}"
191
+
192
+ async def get(self, user_id: str, server_id: str) -> Optional[str]:
193
+ """Return the plaintext access_token, or None on miss/error."""
194
+ try:
195
+ from litellm.proxy.proxy_server import user_api_key_cache # noqa: PLC0415
196
+
197
+ key = self._cache_key(user_id, server_id)
198
+ encrypted = await user_api_key_cache.async_get_cache(key)
199
+ if encrypted is None:
200
+ return None
201
+ plaintext = decrypt_value_helper(
202
+ encrypted,
203
+ key="mcp_per_user_token",
204
+ exception_type="debug",
205
+ )
206
+ return plaintext or None
207
+ except Exception as exc:
208
+ verbose_logger.debug(
209
+ "MCPPerUserTokenCache.get failed for user=%s server=%s: %s",
210
+ user_id,
211
+ server_id,
212
+ exc,
213
+ )
214
+ return None
215
+
216
+ async def set(
217
+ self,
218
+ user_id: str,
219
+ server_id: str,
220
+ access_token: str,
221
+ ttl: int,
222
+ ) -> None:
223
+ """Store NaCl-encrypted access_token in Redis with the given TTL."""
224
+ try:
225
+ from litellm.proxy.proxy_server import user_api_key_cache # noqa: PLC0415
226
+
227
+ key = self._cache_key(user_id, server_id)
228
+ encrypted = encrypt_value_helper(access_token)
229
+ await user_api_key_cache.async_set_cache(key, encrypted, ttl=ttl)
230
+ verbose_logger.debug(
231
+ "MCPPerUserTokenCache.set: cached token for user=%s server=%s ttl=%ds",
232
+ user_id,
233
+ server_id,
234
+ ttl,
235
+ )
236
+ except Exception as exc:
237
+ verbose_logger.debug(
238
+ "MCPPerUserTokenCache.set failed for user=%s server=%s: %s",
239
+ user_id,
240
+ server_id,
241
+ exc,
242
+ )
243
+
244
+ async def delete(self, user_id: str, server_id: str) -> None:
245
+ """Invalidate the cached token (removes from both in-memory and Redis layers)."""
246
+ try:
247
+ from litellm.proxy.proxy_server import user_api_key_cache # noqa: PLC0415
248
+
249
+ key = self._cache_key(user_id, server_id)
250
+ await user_api_key_cache.async_delete_cache(key)
251
+ except Exception as exc:
252
+ verbose_logger.debug(
253
+ "MCPPerUserTokenCache.delete failed for user=%s server=%s: %s",
254
+ user_id,
255
+ server_id,
256
+ exc,
257
+ )
258
+
259
+
260
+ mcp_per_user_token_cache = MCPPerUserTokenCache()
261
+
262
+
263
+ async def resolve_mcp_auth(
264
+ server: "MCPServer",
265
+ mcp_auth_header: Optional[Union[str, Dict[str, str]]] = None,
266
+ ) -> Optional[Union[str, Dict[str, str]]]:
267
+ """Resolve the auth value for an MCP server.
268
+
269
+ Priority:
270
+ 1. ``mcp_auth_header`` — per-request/per-user override
271
+ 2. OAuth2 client_credentials token — auto-fetched and cached
272
+ 3. ``server.authentication_token`` — static token from config/DB
273
+ """
274
+ if mcp_auth_header:
275
+ return mcp_auth_header
276
+ if server.has_client_credentials:
277
+ return await mcp_oauth2_token_cache.async_get_token(server)
278
+ return server.authentication_token
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/oauth_utils.py ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Shared helpers for the MCP OAuth authorization endpoints
2
+ (BYOK + discoverable / pass-through OAuth proxy)."""
3
+
4
+ from ipaddress import ip_address
5
+ from urllib.parse import urlparse
6
+
7
+ from fastapi import HTTPException
8
+
9
+ # RFC 6749 §5.1 / OAuth 2.1 draft-15 §4.1.3: token-endpoint responses
10
+ # must not be cached — both success and error bodies may reveal secrets.
11
+ TOKEN_NO_CACHE_HEADERS = {"Cache-Control": "no-store", "Pragma": "no-cache"}
12
+
13
+
14
+ def validate_loopback_redirect_uri(redirect_uri: str) -> None:
15
+ """Require a loopback ``redirect_uri`` (OAuth 2.1 §4.1.2.1 + RFC 8252
16
+ §7.3 native-app pattern). MCP clients are native apps that listen on
17
+ a localhost port; rejecting non-loopback URIs prevents a malicious
18
+ client from pointing the callback at its own server to capture the
19
+ authorization code — the credential-theft primitive behind VERIA-57
20
+ and pNr1PHa9.
21
+
22
+ Accepts the literal ``localhost`` plus any IP in the loopback ranges
23
+ (IPv4 ``127.0.0.0/8`` and IPv6 ``::1``). A string match on
24
+ ``"127.0.0.1"`` alone would miss ``127.0.0.2`` and the full-form
25
+ IPv6 loopback ``0:0:0:0:0:0:0:1``.
26
+ """
27
+ try:
28
+ parsed = urlparse(redirect_uri)
29
+ except ValueError:
30
+ raise HTTPException(status_code=400, detail="invalid_request")
31
+ if parsed.scheme not in ("http", "https"):
32
+ raise HTTPException(status_code=400, detail="invalid_request")
33
+ # Fragments are not allowed in OAuth redirect URIs (RFC 6749 §3.1.2)
34
+ # — rejecting them prevents a ``http://127.0.0.1/cb#frag?code=...``
35
+ # from silently eating the authorization code.
36
+ if parsed.fragment:
37
+ raise HTTPException(status_code=400, detail="invalid_request")
38
+ host = (parsed.hostname or "").lower()
39
+ if host == "localhost":
40
+ return
41
+ try:
42
+ if ip_address(host).is_loopback:
43
+ return
44
+ except ValueError:
45
+ # Unparseable host (malformed IPv6, etc.) — treat as invalid,
46
+ # don't let it bubble up as a 500.
47
+ pass
48
+ raise HTTPException(status_code=400, detail="invalid_request")
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/openapi_to_mcp_generator.py ADDED
@@ -0,0 +1,474 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ This module is used to generate MCP tools from OpenAPI specs.
3
+ """
4
+
5
+ import asyncio
6
+ import contextvars
7
+ import json
8
+ import os
9
+ from pathlib import PurePosixPath
10
+ from typing import Any, Dict, List, Optional
11
+ from urllib.parse import quote
12
+
13
+ from litellm._logging import verbose_logger
14
+ from litellm.llms.custom_httpx.http_handler import (
15
+ get_async_httpx_client,
16
+ httpxSpecialProvider,
17
+ )
18
+ from litellm.litellm_core_utils.url_utils import async_safe_get
19
+ from litellm.proxy._experimental.mcp_server.tool_registry import (
20
+ global_mcp_tool_registry,
21
+ )
22
+
23
+ # Store the base URL and headers globally
24
+ BASE_URL = ""
25
+ HEADERS: Dict[str, str] = {}
26
+
27
+ # Per-request auth header override for BYOK servers.
28
+ # Set this ContextVar before calling a local tool handler to inject the user's
29
+ # stored credential into the HTTP request made by the tool function closure.
30
+ _request_auth_header: contextvars.ContextVar[Optional[str]] = contextvars.ContextVar(
31
+ "_request_auth_header", default=None
32
+ )
33
+
34
+ # Per-request extra headers forwarded from the client request.
35
+ # Populated from MCPServer.extra_headers names matched against raw request
36
+ # headers in server.py before dispatching to a local/OpenAPI tool handler.
37
+ _request_extra_headers: contextvars.ContextVar[Optional[Dict[str, str]]] = (
38
+ contextvars.ContextVar("_request_extra_headers", default=None)
39
+ )
40
+
41
+
42
+ def _sanitize_path_parameter_value(param_value: Any, param_name: str) -> str:
43
+ """Ensure path params cannot introduce directory traversal."""
44
+ if param_value is None:
45
+ return ""
46
+
47
+ value_str = str(param_value)
48
+ if value_str == "":
49
+ return ""
50
+
51
+ normalized_value = value_str.replace("\\", "/")
52
+ if "/" in normalized_value:
53
+ raise ValueError(
54
+ f"Path parameter '{param_name}' must not contain path separators"
55
+ )
56
+
57
+ if any(part in {".", ".."} for part in PurePosixPath(normalized_value).parts):
58
+ raise ValueError(
59
+ f"Path parameter '{param_name}' cannot include '.' or '..' segments"
60
+ )
61
+
62
+ return quote(value_str, safe="")
63
+
64
+
65
+ def load_openapi_spec(filepath: str) -> Dict[str, Any]:
66
+ """
67
+ Sync wrapper. For URL specs, use the shared/custom MCP httpx client.
68
+ """
69
+ try:
70
+ # If we're already inside an event loop, prefer the async function.
71
+ asyncio.get_running_loop()
72
+ raise RuntimeError(
73
+ "load_openapi_spec() was called from within a running event loop. "
74
+ "Use 'await load_openapi_spec_async(...)' instead."
75
+ )
76
+ except RuntimeError as e:
77
+ # "no running event loop" is fine; other RuntimeErrors we re-raise
78
+ if "no running event loop" not in str(e).lower():
79
+ raise
80
+ return asyncio.run(load_openapi_spec_async(filepath))
81
+
82
+
83
+ async def load_openapi_spec_async(filepath: str) -> Dict[str, Any]:
84
+ if filepath.startswith("http://") or filepath.startswith("https://"):
85
+ client = get_async_httpx_client(llm_provider=httpxSpecialProvider.MCP)
86
+ r = await async_safe_get(client, filepath)
87
+ r.raise_for_status()
88
+ return r.json()
89
+
90
+ # fallback: local file
91
+ # Local filesystem path
92
+ if not os.path.exists(filepath):
93
+ raise FileNotFoundError(f"OpenAPI spec not found at {filepath}")
94
+ with open(filepath, "r", encoding="utf-8") as f:
95
+ return json.load(f)
96
+
97
+
98
+ def get_base_url(spec: Dict[str, Any], spec_path: Optional[str] = None) -> str:
99
+ """Extract base URL from OpenAPI spec."""
100
+ # OpenAPI 3.x
101
+ if "servers" in spec and spec["servers"]:
102
+ server_url = spec["servers"][0]["url"]
103
+
104
+ # If the server URL is relative (starts with /), derive base from spec_path
105
+ if server_url.startswith("/") and spec_path:
106
+ if spec_path.startswith("http://") or spec_path.startswith("https://"):
107
+ # Extract base URL from spec_path (e.g., https://petstore3.swagger.io/api/v3/openapi.json)
108
+ # Combine domain with the relative server URL
109
+ from urllib.parse import urlparse
110
+
111
+ parsed = urlparse(spec_path)
112
+ base_domain = f"{parsed.scheme}://{parsed.netloc}"
113
+ full_base_url = base_domain + server_url
114
+ verbose_logger.info(
115
+ f"OpenAPI spec has relative server URL '{server_url}'. "
116
+ f"Deriving base from spec_path: {full_base_url}"
117
+ )
118
+ return full_base_url
119
+
120
+ return server_url
121
+ # OpenAPI 2.x (Swagger)
122
+ elif "host" in spec:
123
+ scheme = spec.get("schemes", ["https"])[0]
124
+ base_path = spec.get("basePath", "")
125
+ return f"{scheme}://{spec['host']}{base_path}"
126
+
127
+ # Fallback: derive base URL from spec_path if it's a URL
128
+ if spec_path and (
129
+ spec_path.startswith("http://") or spec_path.startswith("https://")
130
+ ):
131
+ for suffix in [
132
+ "/openapi.json",
133
+ "/openapi.yaml",
134
+ "/swagger.json",
135
+ "/swagger.yaml",
136
+ ]:
137
+ if spec_path.endswith(suffix):
138
+ base_url = spec_path[: -len(suffix)]
139
+ verbose_logger.info(
140
+ f"No server info in OpenAPI spec. Using derived base URL: {base_url}"
141
+ )
142
+ return base_url
143
+
144
+ if spec_path.split("/")[-1].endswith((".json", ".yaml", ".yml")):
145
+ base_url = "/".join(spec_path.split("/")[:-1])
146
+ verbose_logger.info(
147
+ f"No server info in OpenAPI spec. Using derived base URL: {base_url}"
148
+ )
149
+ return base_url
150
+
151
+ return ""
152
+
153
+
154
+ def _resolve_ref(
155
+ param: Dict[str, Any], component_params: Dict[str, Any]
156
+ ) -> Optional[Dict[str, Any]]:
157
+ """Resolve a single parameter, following a $ref if present.
158
+
159
+ Returns the resolved param dict, or None if the $ref target is absent from
160
+ components (so callers can skip/filter it rather than propagating a stub
161
+ with name=None that would corrupt deduplication).
162
+ """
163
+ ref = param.get("$ref", "")
164
+ if not ref.startswith("#/components/parameters/"):
165
+ return param
166
+ return component_params.get(ref.split("/")[-1])
167
+
168
+
169
+ def _resolve_param_list(
170
+ raw: List[Dict[str, Any]], component_params: Dict[str, Any]
171
+ ) -> List[Dict[str, Any]]:
172
+ """Resolve $refs in a parameter list, dropping any unresolvable entries."""
173
+ result = []
174
+ for p in raw:
175
+ resolved = _resolve_ref(p, component_params)
176
+ if resolved is not None and resolved.get("name"):
177
+ result.append(resolved)
178
+ return result
179
+
180
+
181
+ def resolve_operation_params(
182
+ operation: Dict[str, Any],
183
+ path_item: Dict[str, Any],
184
+ components: Dict[str, Any],
185
+ ) -> Dict[str, Any]:
186
+ """Return a copy of *operation* with fully-resolved, merged parameters.
187
+
188
+ Handles two common patterns in real-world OpenAPI specs:
189
+
190
+ 1. **$ref parameters** — ``{"$ref": "#/components/parameters/per-page"}``
191
+ instead of inline objects. Each ref is resolved against
192
+ ``components["parameters"]``; unresolvable refs are silently dropped so
193
+ they cannot corrupt the deduplication set with ``(None, None)`` keys.
194
+
195
+ 2. **Path-level parameters** — params defined on the path item that apply
196
+ to every HTTP method on that path (e.g. ``owner``, ``repo``). They are
197
+ merged with the operation-level params; operation-level wins when the
198
+ same ``name`` + ``in`` combination appears in both.
199
+ """
200
+ component_params = components.get("parameters", {})
201
+ path_level = _resolve_param_list(path_item.get("parameters", []), component_params)
202
+ op_level = _resolve_param_list(operation.get("parameters", []), component_params)
203
+ op_keys = {(p["name"], p.get("in")) for p in op_level}
204
+ merged = [
205
+ p for p in path_level if (p["name"], p.get("in")) not in op_keys
206
+ ] + op_level
207
+ result = dict(operation)
208
+ result["parameters"] = merged
209
+ return result
210
+
211
+
212
+ def extract_parameters(operation: Dict[str, Any]) -> tuple:
213
+ """Extract parameter names from OpenAPI operation."""
214
+ path_params = []
215
+ query_params = []
216
+ body_params = []
217
+
218
+ # OpenAPI 3.x and 2.x parameters
219
+ if "parameters" in operation:
220
+ for param in operation["parameters"]:
221
+ if "name" not in param:
222
+ continue
223
+ param_name = param["name"]
224
+ if param.get("in") == "path":
225
+ path_params.append(param_name)
226
+ elif param.get("in") == "query":
227
+ query_params.append(param_name)
228
+ elif param.get("in") == "body":
229
+ body_params.append(param_name)
230
+
231
+ # OpenAPI 3.x requestBody
232
+ if "requestBody" in operation:
233
+ body_params.append("body")
234
+
235
+ return path_params, query_params, body_params
236
+
237
+
238
+ def build_input_schema(operation: Dict[str, Any]) -> Dict[str, Any]:
239
+ """Build MCP input schema from OpenAPI operation."""
240
+ properties = {}
241
+ required = []
242
+
243
+ # Process parameters
244
+ if "parameters" in operation:
245
+ for param in operation["parameters"]:
246
+ if "name" not in param:
247
+ continue
248
+ param_name = param["name"]
249
+ param_schema = param.get("schema", {})
250
+ param_type = param_schema.get("type", "string")
251
+
252
+ properties[param_name] = {
253
+ "type": param_type,
254
+ "description": param.get("description", ""),
255
+ }
256
+
257
+ if param.get("required", False):
258
+ required.append(param_name)
259
+
260
+ # Process requestBody (OpenAPI 3.x)
261
+ if "requestBody" in operation:
262
+ request_body = operation["requestBody"]
263
+ content = request_body.get("content", {})
264
+
265
+ # Try to get JSON schema
266
+ if "application/json" in content:
267
+ schema = content["application/json"].get("schema", {})
268
+ properties["body"] = {
269
+ "type": "object",
270
+ "description": request_body.get("description", "Request body"),
271
+ "properties": schema.get("properties", {}),
272
+ }
273
+ if request_body.get("required", False):
274
+ required.append("body")
275
+
276
+ return {
277
+ "type": "object",
278
+ "properties": properties,
279
+ "required": required if required else [],
280
+ }
281
+
282
+
283
+ def _merge_openapi_tool_request_headers(
284
+ static_headers: Dict[str, str]
285
+ ) -> Dict[str, str]:
286
+ """Merge static closure headers with per-request ContextVar overrides.
287
+
288
+ Precedence (highest to lowest):
289
+ 1. ``_request_auth_header`` — BYOK override of ``Authorization``
290
+ 2. ``static_headers`` — operator-configured headers baked into the
291
+ tool closure at registration time
292
+ 3. ``_request_extra_headers`` — per-request headers forwarded from
293
+ the MCP caller (allowlisted by ``MCPServer.extra_headers``)
294
+
295
+ This matches the existing MCP invariant in
296
+ :func:`litellm.proxy._experimental.mcp_server.utils.merge_mcp_headers`
297
+ and the managed MCP path, where ``static_headers`` always wins over
298
+ caller-forwarded headers. Keeping the same precedence here prevents an
299
+ authenticated caller from overriding an operator-configured value
300
+ (e.g. a tenant id or upstream API key) by sending the same header name.
301
+
302
+ Header names are compared case-insensitively so different casing cannot
303
+ bypass the precedence rules.
304
+ """
305
+ request_extra = _request_extra_headers.get() or {}
306
+ static = static_headers or {}
307
+
308
+ static_lower_names = {k.lower() for k in static}
309
+ effective_headers: Dict[str, str] = {
310
+ k: v for k, v in request_extra.items() if k.lower() not in static_lower_names
311
+ }
312
+ effective_headers.update(static)
313
+
314
+ override_auth = _request_auth_header.get()
315
+ if override_auth:
316
+ for existing in [k for k in effective_headers if k.lower() == "authorization"]:
317
+ del effective_headers[existing]
318
+ effective_headers["Authorization"] = override_auth
319
+
320
+ return effective_headers
321
+
322
+
323
+ def create_tool_function(
324
+ path: str,
325
+ method: str,
326
+ operation: Dict[str, Any],
327
+ base_url: str,
328
+ headers: Optional[Dict[str, str]] = None,
329
+ ):
330
+ """Create a tool function for an OpenAPI operation.
331
+
332
+ This function creates an async tool function that can be called with
333
+ keyword arguments. Parameter names from the OpenAPI spec are accessed
334
+ directly via **kwargs, avoiding syntax errors from invalid Python identifiers.
335
+
336
+ Args:
337
+ path: API endpoint path
338
+ method: HTTP method (get, post, put, delete, patch)
339
+ operation: OpenAPI operation object
340
+ base_url: Base URL for the API
341
+ headers: Optional headers to include in requests (e.g., authentication)
342
+
343
+ Returns:
344
+ An async function that accepts **kwargs and makes the HTTP request
345
+ """
346
+ if headers is None:
347
+ headers = {}
348
+
349
+ path_params, query_params, body_params = extract_parameters(operation)
350
+ original_method = method.lower()
351
+
352
+ async def tool_function(**kwargs: Any) -> str:
353
+ """
354
+ Dynamically generated tool function.
355
+
356
+ Accepts keyword arguments where keys are the original OpenAPI parameter names.
357
+ The function safely handles parameter names that aren't valid Python identifiers
358
+ by using **kwargs instead of named parameters.
359
+ """
360
+ effective_headers = _merge_openapi_tool_request_headers(headers)
361
+
362
+ # Build URL from base_url and path
363
+ url = base_url + path
364
+
365
+ # Replace path parameters using original names from OpenAPI spec
366
+ # Apply path traversal validation and URL encoding
367
+ for param_name in path_params:
368
+ param_value = kwargs.get(param_name, "")
369
+ if param_value:
370
+ try:
371
+ # Sanitize and encode path parameter to prevent traversal attacks
372
+ safe_value = _sanitize_path_parameter_value(param_value, param_name)
373
+ except ValueError as exc:
374
+ return "Invalid path parameter: " + str(exc)
375
+ # Replace {param_name} or {{param_name}} in URL
376
+ url = url.replace("{" + param_name + "}", safe_value)
377
+ url = url.replace("{{" + param_name + "}}", safe_value)
378
+
379
+ # Build query params using original parameter names
380
+ params: Dict[str, Any] = {}
381
+ for param_name in query_params:
382
+ param_value = kwargs.get(param_name, "")
383
+ if param_value:
384
+ # Use original parameter name in query string (as expected by API)
385
+ params[param_name] = param_value
386
+
387
+ # Build request body
388
+ json_body: Optional[Dict[str, Any]] = None
389
+ if body_params:
390
+ # Try "body" first (most common), then check all body param names
391
+ body_value = kwargs.get("body", {})
392
+ if not body_value:
393
+ for param_name in body_params:
394
+ body_value = kwargs.get(param_name, {})
395
+ if body_value:
396
+ break
397
+
398
+ if isinstance(body_value, dict):
399
+ json_body = body_value
400
+ elif body_value:
401
+ # If it's a string, try to parse as JSON
402
+ try:
403
+ json_body = (
404
+ json.loads(body_value)
405
+ if isinstance(body_value, str)
406
+ else {"data": body_value}
407
+ )
408
+ except (json.JSONDecodeError, TypeError):
409
+ json_body = {"data": body_value}
410
+
411
+ client = get_async_httpx_client(llm_provider=httpxSpecialProvider.MCP)
412
+
413
+ if original_method == "get":
414
+ response = await client.get(url, params=params, headers=effective_headers)
415
+ elif original_method == "post":
416
+ response = await client.post(
417
+ url, params=params, json=json_body, headers=effective_headers
418
+ )
419
+ elif original_method == "put":
420
+ response = await client.put(
421
+ url, params=params, json=json_body, headers=effective_headers
422
+ )
423
+ elif original_method == "delete":
424
+ response = await client.delete(
425
+ url, params=params, headers=effective_headers
426
+ )
427
+ elif original_method == "patch":
428
+ response = await client.patch(
429
+ url, params=params, json=json_body, headers=effective_headers
430
+ )
431
+ else:
432
+ return f"Unsupported HTTP method: {original_method}"
433
+
434
+ return response.text
435
+
436
+ return tool_function
437
+
438
+
439
+ def register_tools_from_openapi(spec: Dict[str, Any], base_url: str):
440
+ """Register MCP tools from OpenAPI specification."""
441
+ paths = spec.get("paths", {})
442
+
443
+ for path, path_item in paths.items():
444
+ for method in ["get", "post", "put", "delete", "patch"]:
445
+ if method in path_item:
446
+ operation = path_item[method]
447
+
448
+ # Generate tool name
449
+ operation_id = operation.get(
450
+ "operationId", f"{method}_{path.replace('/', '_')}"
451
+ )
452
+ tool_name = operation_id.replace(" ", "_").lower()
453
+
454
+ # Get description
455
+ description = operation.get(
456
+ "summary", operation.get("description", f"{method.upper()} {path}")
457
+ )
458
+
459
+ # Build input schema
460
+ input_schema = build_input_schema(operation)
461
+
462
+ # Create tool function
463
+ tool_func = create_tool_function(path, method, operation, base_url)
464
+ tool_func.__name__ = tool_name
465
+ tool_func.__doc__ = description
466
+
467
+ # Register tool with local registry
468
+ global_mcp_tool_registry.register_tool(
469
+ name=tool_name,
470
+ description=description,
471
+ input_schema=input_schema,
472
+ handler=tool_func,
473
+ )
474
+ verbose_logger.debug(f"Registered tool: {tool_name}")
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/rest_endpoints.py ADDED
@@ -0,0 +1,1119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import importlib
2
+ from datetime import datetime
3
+ from typing import Any, Awaitable, Callable, Dict, List, Literal, Optional, Set, Union
4
+
5
+ from fastapi import APIRouter, Depends, HTTPException, Query, Request, status
6
+
7
+ from litellm._logging import verbose_logger
8
+ from litellm.proxy._experimental.mcp_server.ui_session_utils import (
9
+ build_effective_auth_contexts,
10
+ )
11
+ from litellm.proxy._experimental.mcp_server.utils import merge_mcp_headers
12
+ from litellm.proxy._types import LitellmUserRoles, UserAPIKeyAuth
13
+ from litellm.proxy.auth.ip_address_utils import IPAddressUtils
14
+ from litellm.proxy.auth.user_api_key_auth import user_api_key_auth
15
+ from litellm.proxy.common_utils.http_parsing_utils import _safe_get_request_headers
16
+ from litellm.types.mcp import MCPAuth
17
+ from litellm.types.utils import CallTypes
18
+
19
+ MCP_AVAILABLE: bool = True
20
+ try:
21
+ importlib.import_module("mcp")
22
+ except ImportError as e:
23
+ verbose_logger.debug(f"MCP module not found: {e}")
24
+ MCP_AVAILABLE = False
25
+
26
+
27
+ router = APIRouter(
28
+ prefix="/mcp-rest",
29
+ tags=["mcp"],
30
+ )
31
+
32
+ if MCP_AVAILABLE:
33
+ from mcp.types import Tool as MCPTool
34
+
35
+ from litellm.proxy._experimental.mcp_server.mcp_server_manager import (
36
+ global_mcp_server_manager,
37
+ )
38
+ from litellm.proxy._experimental.mcp_server.server import (
39
+ ListMCPToolsRestAPIResponseObject,
40
+ MCPServer,
41
+ _tool_name_matches,
42
+ execute_mcp_tool,
43
+ filter_tools_by_allowed_tools,
44
+ )
45
+
46
+ ########################################################
47
+ ############ MCP Server REST API Routes #################
48
+ def _get_server_auth_header(
49
+ server,
50
+ mcp_server_auth_headers: Optional[Dict[str, Dict[str, str]]],
51
+ mcp_auth_header: Optional[str],
52
+ ) -> Optional[Union[Dict[str, str], str]]:
53
+ """Helper function to get server-specific auth header with case-insensitive matching."""
54
+ if mcp_server_auth_headers and server.alias:
55
+ normalized_server_alias = server.alias.lower()
56
+ normalized_headers = {
57
+ k.lower(): v for k, v in mcp_server_auth_headers.items()
58
+ }
59
+ server_auth = normalized_headers.get(normalized_server_alias)
60
+ if server_auth is not None:
61
+ return server_auth
62
+ elif mcp_server_auth_headers and server.server_name:
63
+ normalized_server_name = server.server_name.lower()
64
+ normalized_headers = {
65
+ k.lower(): v for k, v in mcp_server_auth_headers.items()
66
+ }
67
+ server_auth = normalized_headers.get(normalized_server_name)
68
+ if server_auth is not None:
69
+ return server_auth
70
+ return mcp_auth_header
71
+
72
+ def _get_oauth2_server_ids(allowed_server_ids: List[str]) -> Set[str]:
73
+ """Return the subset of *allowed_server_ids* whose servers use OAuth2 auth.
74
+
75
+ Used as a cheap pre-flight check to skip bulk credential fetching when no
76
+ OAuth2 servers are involved in the current request.
77
+ """
78
+ return {
79
+ sid
80
+ for sid in allowed_server_ids
81
+ if getattr(
82
+ global_mcp_server_manager.get_mcp_server_by_id(sid), "auth_type", None
83
+ )
84
+ == MCPAuth.oauth2
85
+ }
86
+
87
+ async def _get_user_oauth_extra_headers(
88
+ server,
89
+ user_api_key_dict: UserAPIKeyAuth,
90
+ prefetched_creds: Optional[Dict[str, Dict[str, Any]]] = None,
91
+ ) -> Optional[Dict[str, str]]:
92
+ """
93
+ For OAuth2 servers, look up the user's stored access token and return it
94
+ as extra_headers {"Authorization": "Bearer <token>"} so that it reaches
95
+ the MCP server the same way the admin "Add MCP / Authorize and Fetch" flow does.
96
+ Returns None for non-OAuth2 servers or when no credential is stored.
97
+
98
+ Args:
99
+ prefetched_creds: Optional dict keyed by server_id with credential payloads.
100
+ When provided, avoids a per-server DB round-trip.
101
+ """
102
+ if getattr(server, "auth_type", None) != MCPAuth.oauth2:
103
+ return None
104
+ user_id = getattr(user_api_key_dict, "user_id", None)
105
+ server_id = getattr(server, "server_id", None)
106
+ if not user_id or not server_id:
107
+ return None
108
+ try:
109
+ from litellm.proxy._experimental.mcp_server.db import (
110
+ get_user_oauth_credential,
111
+ is_oauth_credential_expired,
112
+ )
113
+
114
+ if prefetched_creds is not None:
115
+ cred = prefetched_creds.get(server_id)
116
+ else:
117
+ from litellm.proxy.utils import get_prisma_client_or_throw
118
+
119
+ prisma_client = get_prisma_client_or_throw(
120
+ "Database not connected. Connect a database to use OAuth2 MCP tools."
121
+ )
122
+ cred = await get_user_oauth_credential(
123
+ prisma_client, user_id, server_id
124
+ )
125
+ if cred and cred.get("access_token"):
126
+ if is_oauth_credential_expired(cred):
127
+ verbose_logger.debug(
128
+ f"_get_user_oauth_extra_headers: token expired for "
129
+ f"user={user_id} server={server_id}"
130
+ )
131
+ return None
132
+ return {"Authorization": f"Bearer {cred['access_token']}"}
133
+ except Exception as e:
134
+ verbose_logger.warning(
135
+ f"_get_user_oauth_extra_headers: failed to retrieve credential for "
136
+ f"user={user_id} server={server_id}: {e}"
137
+ )
138
+ return None
139
+
140
+ async def _prefetch_user_oauth_creds(
141
+ user_api_key_dict: UserAPIKeyAuth,
142
+ ) -> Dict[str, Dict[str, Any]]:
143
+ """Fetch all OAuth2 credentials for the user in a single DB query.
144
+
145
+ Returns a dict keyed by server_id. Used to avoid N+1 DB queries when
146
+ iterating over multiple OAuth2 MCP servers.
147
+ """
148
+ user_id = getattr(user_api_key_dict, "user_id", None)
149
+ if not user_id:
150
+ return {}
151
+ try:
152
+ from litellm.proxy._experimental.mcp_server.db import (
153
+ list_user_oauth_credentials,
154
+ )
155
+ from litellm.proxy.utils import get_prisma_client_or_throw
156
+
157
+ prisma_client = get_prisma_client_or_throw(
158
+ "Database not connected. Connect a database to use OAuth2 MCP tools."
159
+ )
160
+ creds = await list_user_oauth_credentials(prisma_client, user_id)
161
+ return {c["server_id"]: c for c in creds if "server_id" in c}
162
+ except Exception as e:
163
+ verbose_logger.warning(
164
+ f"_prefetch_user_oauth_creds: failed to prefetch for user={user_id}: {e}"
165
+ )
166
+ return {}
167
+
168
+ async def _get_bulk_user_oauth_headers(
169
+ user_api_key_dict: UserAPIKeyAuth,
170
+ ) -> Dict[str, Dict[str, str]]:
171
+ """
172
+ Fetch ALL OAuth2 credentials for the current user in a single DB query and
173
+ return a mapping of server_id → {"Authorization": "Bearer <token>"}.
174
+
175
+ This is the batch alternative to calling _get_user_oauth_extra_headers
176
+ per-server inside a loop (N+1 DB queries).
177
+ """
178
+ user_id = getattr(user_api_key_dict, "user_id", None)
179
+ if not user_id:
180
+ return {}
181
+ try:
182
+ from litellm.proxy._experimental.mcp_server.db import (
183
+ list_user_oauth_credentials,
184
+ )
185
+ from litellm.proxy.utils import get_prisma_client_or_throw
186
+
187
+ prisma_client = get_prisma_client_or_throw(
188
+ "Database not connected. Connect a database to use OAuth2 MCP tools."
189
+ )
190
+ creds = await list_user_oauth_credentials(prisma_client, user_id)
191
+ return {
192
+ c["server_id"]: {"Authorization": f"Bearer {c['access_token']}"}
193
+ for c in creds
194
+ if c.get("access_token") and c.get("server_id")
195
+ }
196
+ except Exception:
197
+ verbose_logger.debug(
198
+ "Failed to bulk-fetch OAuth credentials", exc_info=True
199
+ )
200
+ return {}
201
+
202
+ def _create_tool_response_objects(tools, server_mcp_info):
203
+ """Helper function to create tool response objects."""
204
+ return [
205
+ ListMCPToolsRestAPIResponseObject(
206
+ name=tool.name,
207
+ description=tool.description,
208
+ inputSchema=tool.inputSchema,
209
+ mcp_info=server_mcp_info,
210
+ )
211
+ for tool in tools
212
+ ]
213
+
214
+ def _extract_mcp_headers_from_request(
215
+ request: Request,
216
+ mcp_request_handler_cls,
217
+ ) -> tuple:
218
+ """
219
+ Extract MCP auth headers from HTTP request.
220
+
221
+ Returns:
222
+ Tuple of (mcp_auth_header, mcp_server_auth_headers, raw_headers)
223
+ """
224
+ headers = request.headers
225
+ raw_headers = dict(headers)
226
+ mcp_auth_header = mcp_request_handler_cls._get_mcp_auth_header_from_headers(
227
+ headers
228
+ )
229
+ mcp_server_auth_headers = (
230
+ mcp_request_handler_cls._get_mcp_server_auth_headers_from_headers(headers)
231
+ )
232
+ return mcp_auth_header, mcp_server_auth_headers, raw_headers
233
+
234
+ async def _resolve_allowed_mcp_servers_with_ip_filter(
235
+ request: Request,
236
+ user_api_key_dict: UserAPIKeyAuth,
237
+ server_id: str,
238
+ ) -> List[MCPServer]:
239
+ """
240
+ Resolve allowed MCP servers for a tool call with IP filtering.
241
+
242
+ Args:
243
+ request: The HTTP request object
244
+ user_api_key_dict: The user's API key auth object
245
+ server_id: The server ID to validate access for
246
+
247
+ Returns:
248
+ List of allowed MCPServer objects
249
+
250
+ Raises:
251
+ HTTPException: If the server_id is not allowed
252
+ """
253
+ # Get all auth contexts
254
+ auth_contexts = await build_effective_auth_contexts(user_api_key_dict)
255
+
256
+ # Collect allowed server IDs from all contexts, then apply IP filtering
257
+ _rest_client_ip = IPAddressUtils.get_mcp_client_ip(request)
258
+ allowed_server_ids_set = set()
259
+ for auth_context in auth_contexts:
260
+ servers = await global_mcp_server_manager.get_allowed_mcp_servers(
261
+ user_api_key_auth=auth_context,
262
+ )
263
+ allowed_server_ids_set.update(servers)
264
+
265
+ allowed_server_ids_set = set(
266
+ global_mcp_server_manager.filter_server_ids_by_ip(
267
+ list(allowed_server_ids_set), _rest_client_ip
268
+ )
269
+ )
270
+
271
+ # Check if the specified server_id is allowed
272
+ if server_id not in allowed_server_ids_set:
273
+ raise HTTPException(
274
+ status_code=403,
275
+ detail={
276
+ "error": "access_denied",
277
+ "message": f"The key is not allowed to access server {server_id}",
278
+ },
279
+ )
280
+
281
+ # Build allowed_mcp_servers list (only include allowed servers)
282
+ allowed_mcp_servers: List[MCPServer] = []
283
+ for allowed_server_id in allowed_server_ids_set:
284
+ server = global_mcp_server_manager.get_mcp_server_by_id(allowed_server_id)
285
+ if server is not None:
286
+ allowed_mcp_servers.append(server)
287
+
288
+ return allowed_mcp_servers
289
+
290
+ async def _get_tools_for_single_server(
291
+ server,
292
+ server_auth_header,
293
+ raw_headers: Optional[Dict[str, str]] = None,
294
+ user_api_key_auth: Optional[UserAPIKeyAuth] = None,
295
+ extra_headers: Optional[Dict[str, str]] = None,
296
+ ):
297
+ """Helper function to get tools for a single server."""
298
+ tools = await global_mcp_server_manager._get_tools_from_server(
299
+ server=server,
300
+ mcp_auth_header=server_auth_header,
301
+ extra_headers=extra_headers,
302
+ add_prefix=False,
303
+ raw_headers=raw_headers,
304
+ )
305
+
306
+ # Filter tools based on allowed_tools configuration
307
+ # Only filter if allowed_tools is explicitly configured (not None and not empty)
308
+ if server.allowed_tools is not None and len(server.allowed_tools) > 0:
309
+ tools = filter_tools_by_allowed_tools(tools, server)
310
+
311
+ # Filter tools based on user_api_key_auth.object_permission.mcp_tool_permissions
312
+ # This provides per-key/team/org control over which tools can be accessed
313
+ if (
314
+ user_api_key_auth
315
+ and user_api_key_auth.object_permission
316
+ and user_api_key_auth.object_permission.mcp_tool_permissions
317
+ ):
318
+ # Dict keys may be server_ids OR names/aliases; normalize so lookup
319
+ # by concrete server_id resolves name-keyed restrictions too.
320
+ allowed_tools_for_server = (
321
+ global_mcp_server_manager.expand_tool_permissions(
322
+ user_api_key_auth.object_permission.mcp_tool_permissions
323
+ ).get(server.server_id)
324
+ )
325
+ if (
326
+ allowed_tools_for_server is not None
327
+ and len(allowed_tools_for_server) > 0
328
+ ):
329
+ # Filter tools to only include those in the allowed list
330
+ tools = [
331
+ tool
332
+ for tool in tools
333
+ if _tool_name_matches(tool.name, allowed_tools_for_server)
334
+ ]
335
+
336
+ return _create_tool_response_objects(tools, server.mcp_info)
337
+
338
+ async def _resolve_allowed_mcp_servers_for_tool_call(
339
+ user_api_key_dict: UserAPIKeyAuth,
340
+ server_id: str,
341
+ ) -> List[MCPServer]:
342
+ """Resolve allowed MCP servers for the given user and validate server_id access."""
343
+ auth_contexts = await build_effective_auth_contexts(user_api_key_dict)
344
+ allowed_server_ids_set = set()
345
+ for auth_context in auth_contexts:
346
+ servers = await global_mcp_server_manager.get_allowed_mcp_servers(
347
+ user_api_key_auth=auth_context
348
+ )
349
+ allowed_server_ids_set.update(servers)
350
+ if server_id not in allowed_server_ids_set:
351
+ raise HTTPException(
352
+ status_code=403,
353
+ detail={
354
+ "error": "access_denied",
355
+ "message": f"The key is not allowed to access server {server_id}",
356
+ },
357
+ )
358
+ allowed_mcp_servers: List[MCPServer] = []
359
+ for allowed_server_id in allowed_server_ids_set:
360
+ server = global_mcp_server_manager.get_mcp_server_by_id(allowed_server_id)
361
+ if server is not None:
362
+ allowed_mcp_servers.append(server)
363
+ return allowed_mcp_servers
364
+
365
+ async def _list_tools_for_single_server(
366
+ server_id: str,
367
+ allowed_server_ids: List[str],
368
+ rest_client_ip: Optional[str],
369
+ mcp_server_auth_headers: dict,
370
+ mcp_auth_header: Optional[str],
371
+ raw_headers_from_request: dict,
372
+ user_api_key_dict: "UserAPIKeyAuth",
373
+ ) -> dict:
374
+ """
375
+ Resolve and fetch tools for a single specified MCP server.
376
+
377
+ Returns the full REST response dict (tools / error / message).
378
+ Raises HTTPException on access / IP-filter errors.
379
+ """
380
+ # Resolve a server name to its UUID if needed
381
+ _name_resolved = None
382
+ if server_id not in allowed_server_ids:
383
+ _name_resolved = global_mcp_server_manager.get_mcp_server_by_name(server_id)
384
+ if _name_resolved is not None and _name_resolved.server_id in set(
385
+ allowed_server_ids
386
+ ):
387
+ server_id = _name_resolved.server_id
388
+
389
+ if server_id not in allowed_server_ids:
390
+ _server = (
391
+ global_mcp_server_manager.get_mcp_server_by_id(server_id)
392
+ or _name_resolved
393
+ )
394
+ if (
395
+ _server is not None
396
+ and rest_client_ip is not None
397
+ and not global_mcp_server_manager._is_server_accessible_from_ip(
398
+ _server, rest_client_ip
399
+ )
400
+ ):
401
+ raise HTTPException(
402
+ status_code=403,
403
+ detail={
404
+ "error": "ip_filtering",
405
+ "message": (
406
+ f"MCP server '{server_id}' is not accessible from your IP address "
407
+ f"({rest_client_ip}). This server is restricted to internal "
408
+ "networks only. To make it externally accessible, set "
409
+ "'available_on_public_internet: true' in the server configuration."
410
+ ),
411
+ },
412
+ )
413
+ raise HTTPException(
414
+ status_code=403,
415
+ detail={
416
+ "error": "access_denied",
417
+ "message": f"The key is not allowed to access server {server_id}",
418
+ },
419
+ )
420
+
421
+ server = global_mcp_server_manager.get_mcp_server_by_id(server_id)
422
+ if server is None:
423
+ return {
424
+ "tools": [],
425
+ "error": "server_not_found",
426
+ "message": f"Server with id {server_id} not found",
427
+ }
428
+
429
+ server_auth_header = _get_server_auth_header(
430
+ server, mcp_server_auth_headers, mcp_auth_header
431
+ )
432
+ user_oauth_extra_headers = await _get_user_oauth_extra_headers(
433
+ server, user_api_key_dict
434
+ )
435
+
436
+ try:
437
+ tools = await _get_tools_for_single_server(
438
+ server,
439
+ server_auth_header,
440
+ raw_headers_from_request,
441
+ user_api_key_dict,
442
+ extra_headers=user_oauth_extra_headers,
443
+ )
444
+ except Exception as e:
445
+ verbose_logger.exception(f"Error getting tools from {server.name}: {e}")
446
+ return {
447
+ "tools": [],
448
+ "error": "server_error",
449
+ "message": f"Failed to get tools from server {server.name}: {str(e)}",
450
+ }
451
+
452
+ return {
453
+ "tools": tools,
454
+ "error": None,
455
+ "message": "Successfully retrieved tools",
456
+ }
457
+
458
+ ########################################################
459
+
460
+ async def _list_tools_for_single_server(
461
+ server_id: str,
462
+ allowed_server_ids: List[str],
463
+ rest_client_ip: Optional[str],
464
+ mcp_server_auth_headers: dict,
465
+ mcp_auth_header: Optional[str],
466
+ raw_headers_from_request: dict,
467
+ user_api_key_dict: UserAPIKeyAuth,
468
+ ) -> dict:
469
+ """Handle tool listing for a single server_id request."""
470
+ # Resolve a server name to its UUID if needed
471
+ _name_resolved = None
472
+ if server_id not in allowed_server_ids:
473
+ _name_resolved = global_mcp_server_manager.get_mcp_server_by_name(server_id)
474
+ if _name_resolved is not None and _name_resolved.server_id in set(
475
+ allowed_server_ids
476
+ ):
477
+ server_id = _name_resolved.server_id
478
+
479
+ if server_id not in allowed_server_ids:
480
+ _server = (
481
+ global_mcp_server_manager.get_mcp_server_by_id(server_id)
482
+ or _name_resolved
483
+ )
484
+ if (
485
+ _server is not None
486
+ and rest_client_ip is not None
487
+ and not global_mcp_server_manager._is_server_accessible_from_ip(
488
+ _server, rest_client_ip
489
+ )
490
+ ):
491
+ raise HTTPException(
492
+ status_code=403,
493
+ detail={
494
+ "error": "ip_filtering",
495
+ "message": (
496
+ f"MCP server '{server_id}' is not accessible from your IP address "
497
+ f"({rest_client_ip}). This server is restricted to internal "
498
+ "networks only. To make it externally accessible, set "
499
+ "'available_on_public_internet: true' in the server configuration."
500
+ ),
501
+ },
502
+ )
503
+ raise HTTPException(
504
+ status_code=403,
505
+ detail={
506
+ "error": "access_denied",
507
+ "message": f"The key is not allowed to access server {server_id}",
508
+ },
509
+ )
510
+ server = global_mcp_server_manager.get_mcp_server_by_id(server_id)
511
+ if server is None:
512
+ return {
513
+ "tools": [],
514
+ "error": "server_not_found",
515
+ "message": f"Server with id {server_id} not found",
516
+ }
517
+
518
+ server_auth_header = _get_server_auth_header(
519
+ server, mcp_server_auth_headers, mcp_auth_header
520
+ )
521
+ user_oauth_extra_headers = await _get_user_oauth_extra_headers(
522
+ server, user_api_key_dict
523
+ )
524
+
525
+ try:
526
+ list_tools_result = await _get_tools_for_single_server(
527
+ server,
528
+ server_auth_header,
529
+ raw_headers_from_request,
530
+ user_api_key_dict,
531
+ extra_headers=user_oauth_extra_headers,
532
+ )
533
+ except Exception as e:
534
+ verbose_logger.exception(f"Error getting tools from {server.name}: {e}")
535
+ return {
536
+ "tools": [],
537
+ "error": "server_error",
538
+ "message": f"Failed to get tools from server {server.name}: {str(e)}",
539
+ }
540
+ return {
541
+ "tools": list_tools_result,
542
+ "error": None,
543
+ "message": "Successfully retrieved tools",
544
+ }
545
+
546
+ @router.get("/tools/list", dependencies=[Depends(user_api_key_auth)])
547
+ async def list_tool_rest_api(
548
+ request: Request,
549
+ server_id: Optional[str] = Query(
550
+ None, description="The server id to list tools for"
551
+ ),
552
+ user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),
553
+ ) -> dict:
554
+ """
555
+ List all available tools with information about the server they belong to.
556
+
557
+ Example response:
558
+ {
559
+ "tools": [
560
+ {
561
+ "name": "create_zap",
562
+ "description": "Create a new zap",
563
+ "inputSchema": "tool_input_schema",
564
+ "mcp_info": {
565
+ "server_name": "zapier",
566
+ "logo_url": "https://www.zapier.com/logo.png",
567
+ }
568
+ }
569
+ ],
570
+ "error": null,
571
+ "message": "Successfully retrieved tools"
572
+ }
573
+ """
574
+ from litellm.proxy._experimental.mcp_server.auth.user_api_key_auth_mcp import (
575
+ MCPRequestHandler,
576
+ )
577
+
578
+ try:
579
+ # Extract auth headers from request
580
+ headers = request.headers
581
+ raw_headers_from_request = dict(headers)
582
+ mcp_auth_header = MCPRequestHandler._get_mcp_auth_header_from_headers(
583
+ headers
584
+ )
585
+ mcp_server_auth_headers = (
586
+ MCPRequestHandler._get_mcp_server_auth_headers_from_headers(headers)
587
+ )
588
+
589
+ auth_contexts = await build_effective_auth_contexts(user_api_key_dict)
590
+
591
+ _rest_client_ip = IPAddressUtils.get_mcp_client_ip(request)
592
+
593
+ allowed_server_ids_set = set()
594
+ for auth_context in auth_contexts:
595
+ servers = await global_mcp_server_manager.get_allowed_mcp_servers(
596
+ user_api_key_auth=auth_context,
597
+ )
598
+ allowed_server_ids_set.update(servers)
599
+
600
+ (
601
+ allowed_server_ids,
602
+ _ip_blocked_count,
603
+ ) = global_mcp_server_manager.filter_server_ids_by_ip_with_info(
604
+ list(allowed_server_ids_set), _rest_client_ip
605
+ )
606
+
607
+ list_tools_result = []
608
+ error_message = None
609
+
610
+ # If server_id is specified, only query that specific server
611
+ if server_id:
612
+ return await _list_tools_for_single_server(
613
+ server_id=server_id,
614
+ allowed_server_ids=allowed_server_ids,
615
+ rest_client_ip=_rest_client_ip,
616
+ mcp_server_auth_headers=mcp_server_auth_headers,
617
+ mcp_auth_header=mcp_auth_header,
618
+ raw_headers_from_request=raw_headers_from_request,
619
+ user_api_key_dict=user_api_key_dict,
620
+ )
621
+ else:
622
+ if not allowed_server_ids:
623
+ if _ip_blocked_count > 0:
624
+ raise HTTPException(
625
+ status_code=403,
626
+ detail={
627
+ "error": "ip_filtering",
628
+ "message": (
629
+ f"No MCP tools are available for your IP address ({_rest_client_ip}). "
630
+ f"{_ip_blocked_count} server(s) are restricted to internal networks only. "
631
+ "To make servers externally accessible, set "
632
+ "'available_on_public_internet: true' in the server configuration."
633
+ ),
634
+ },
635
+ )
636
+ raise HTTPException(
637
+ status_code=403,
638
+ detail={
639
+ "error": "access_denied",
640
+ "message": "The key is not allowed to access any MCP servers.",
641
+ },
642
+ )
643
+
644
+ # Pre-fetch OAuth credentials only when at least one allowed server uses OAuth2,
645
+ # to avoid an unnecessary DB round-trip on requests with no OAuth2 MCP servers.
646
+ prefetched_oauth_creds = (
647
+ await _prefetch_user_oauth_creds(user_api_key_dict)
648
+ if _get_oauth2_server_ids(allowed_server_ids)
649
+ else {}
650
+ )
651
+
652
+ # Query all servers the user has access to
653
+ errors = []
654
+ for allowed_server_id in allowed_server_ids:
655
+ server = global_mcp_server_manager.get_mcp_server_by_id(
656
+ allowed_server_id
657
+ )
658
+ if server is None:
659
+ continue
660
+
661
+ server_auth_header = _get_server_auth_header(
662
+ server, mcp_server_auth_headers, mcp_auth_header
663
+ )
664
+ user_oauth_extra_headers = await _get_user_oauth_extra_headers(
665
+ server,
666
+ user_api_key_dict,
667
+ prefetched_creds=prefetched_oauth_creds,
668
+ )
669
+
670
+ try:
671
+ tools_result = await _get_tools_for_single_server(
672
+ server,
673
+ server_auth_header,
674
+ raw_headers_from_request,
675
+ user_api_key_dict,
676
+ extra_headers=user_oauth_extra_headers,
677
+ )
678
+ list_tools_result.extend(tools_result)
679
+ except Exception as e:
680
+ verbose_logger.exception(
681
+ f"Error getting tools from {server.name}: {e}"
682
+ )
683
+ errors.append(f"{server.name}: {str(e)}")
684
+ continue
685
+
686
+ if errors and not list_tools_result:
687
+ error_message = "Failed to get tools from servers: " + "; ".join(
688
+ errors
689
+ )
690
+
691
+ return {
692
+ "tools": list_tools_result,
693
+ "error": "partial_failure" if error_message else None,
694
+ "message": (
695
+ error_message if error_message else "Successfully retrieved tools"
696
+ ),
697
+ }
698
+
699
+ except Exception as e:
700
+ verbose_logger.exception(
701
+ "Unexpected error in list_tool_rest_api: %s", str(e)
702
+ )
703
+ return {
704
+ "tools": [],
705
+ "error": "unexpected_error",
706
+ "message": f"An unexpected error occurred: {str(e)}",
707
+ }
708
+
709
+ @router.post("/tools/call", dependencies=[Depends(user_api_key_auth)])
710
+ async def call_tool_rest_api(
711
+ request: Request,
712
+ user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),
713
+ ):
714
+ """
715
+ REST API to call a specific MCP tool with the provided arguments
716
+ """
717
+ from fastapi import HTTPException
718
+
719
+ from litellm.exceptions import BlockedPiiEntityError, GuardrailRaisedException
720
+ from litellm.proxy._experimental.mcp_server.auth.user_api_key_auth_mcp import (
721
+ MCPRequestHandler,
722
+ )
723
+ from litellm.proxy.common_request_processing import (
724
+ ProxyBaseLLMRequestProcessing,
725
+ )
726
+ from litellm.proxy.proxy_server import (
727
+ general_settings,
728
+ proxy_config,
729
+ proxy_logging_obj,
730
+ )
731
+
732
+ try:
733
+ data = await request.json()
734
+
735
+ # Validate required parameters early
736
+ server_id = data.get("server_id")
737
+ if not server_id:
738
+ raise HTTPException(
739
+ status_code=400,
740
+ detail={
741
+ "error": "missing_parameter",
742
+ "message": "server_id is required in request body",
743
+ },
744
+ )
745
+
746
+ tool_name = data.get("name")
747
+ if not tool_name:
748
+ raise HTTPException(
749
+ status_code=400,
750
+ detail={
751
+ "error": "missing_parameter",
752
+ "message": "name is required in request body",
753
+ },
754
+ )
755
+
756
+ tool_arguments = data.get("arguments")
757
+
758
+ proxy_base_llm_response_processor = ProxyBaseLLMRequestProcessing(data=data)
759
+ (
760
+ data,
761
+ logging_obj,
762
+ ) = await proxy_base_llm_response_processor.common_processing_pre_call_logic(
763
+ request=request,
764
+ user_api_key_dict=user_api_key_dict,
765
+ proxy_config=proxy_config,
766
+ route_type=CallTypes.call_mcp_tool.value,
767
+ proxy_logging_obj=proxy_logging_obj,
768
+ general_settings=general_settings,
769
+ )
770
+
771
+ # Extract MCP auth headers from request and add to data dict
772
+ (
773
+ mcp_auth_header,
774
+ mcp_server_auth_headers,
775
+ raw_headers_from_request,
776
+ ) = _extract_mcp_headers_from_request(request, MCPRequestHandler)
777
+ if mcp_auth_header:
778
+ data["mcp_auth_header"] = mcp_auth_header
779
+ if mcp_server_auth_headers:
780
+ data["mcp_server_auth_headers"] = mcp_server_auth_headers
781
+ data["raw_headers"] = raw_headers_from_request
782
+
783
+ # Extract user_api_key_auth from metadata and add to top level
784
+ # call_mcp_tool expects user_api_key_auth as a top-level parameter
785
+ if "metadata" in data and "user_api_key_auth" in data["metadata"]:
786
+ data["user_api_key_auth"] = data["metadata"]["user_api_key_auth"]
787
+
788
+ # Resolve allowed MCP servers with IP filtering
789
+ allowed_mcp_servers = await _resolve_allowed_mcp_servers_with_ip_filter(
790
+ request, user_api_key_dict, server_id
791
+ )
792
+
793
+ # Look up per-user OAuth headers for this server (mirrors list_tool_rest_api).
794
+ user_oauth_extra_headers: Optional[Dict[str, str]] = None
795
+ target_server = next(
796
+ (s for s in allowed_mcp_servers if s.server_id == server_id), None
797
+ )
798
+ if target_server is not None:
799
+ user_oauth_extra_headers = await _get_user_oauth_extra_headers(
800
+ target_server, user_api_key_dict
801
+ )
802
+
803
+ # Call execute_mcp_tool directly (permission checks already done)
804
+ result = await execute_mcp_tool(
805
+ name=tool_name,
806
+ arguments=tool_arguments,
807
+ allowed_mcp_servers=allowed_mcp_servers,
808
+ start_time=datetime.now(),
809
+ user_api_key_auth=data.get("user_api_key_auth"),
810
+ mcp_auth_header=data.get("mcp_auth_header"),
811
+ mcp_server_auth_headers=data.get("mcp_server_auth_headers"),
812
+ oauth2_headers=user_oauth_extra_headers or data.get("oauth2_headers"),
813
+ raw_headers=data.get("raw_headers"),
814
+ litellm_logging_obj=data.get("litellm_logging_obj"),
815
+ )
816
+ return result
817
+ except BlockedPiiEntityError as e:
818
+ verbose_logger.error(f"BlockedPiiEntityError in MCP tool call: {str(e)}")
819
+ raise HTTPException(
820
+ status_code=400,
821
+ detail={
822
+ "error": "blocked_pii_entity",
823
+ "message": str(e),
824
+ "entity_type": getattr(e, "entity_type", None),
825
+ "guardrail_name": getattr(e, "guardrail_name", None),
826
+ },
827
+ )
828
+ except GuardrailRaisedException as e:
829
+ verbose_logger.error(f"GuardrailRaisedException in MCP tool call: {str(e)}")
830
+ raise HTTPException(
831
+ status_code=400,
832
+ detail={
833
+ "error": "guardrail_violation",
834
+ "message": str(e),
835
+ "guardrail_name": getattr(e, "guardrail_name", None),
836
+ },
837
+ )
838
+ except HTTPException as e:
839
+ # Re-raise HTTPException as-is to preserve status code and detail
840
+ verbose_logger.error(f"HTTPException in MCP tool call: {str(e)}")
841
+ raise e
842
+ except Exception as e:
843
+ verbose_logger.exception(f"Unexpected error in MCP tool call: {str(e)}")
844
+ raise HTTPException(
845
+ status_code=500,
846
+ detail={
847
+ "error": "internal_server_error",
848
+ "message": f"An unexpected error occurred: {str(e)}",
849
+ },
850
+ )
851
+
852
+ ########################################################
853
+ # MCP Connection testing routes
854
+ # /health -> Test if we can connect to the MCP server
855
+ # /health/tools/list -> List tools from MCP server
856
+ # For these routes users will dynamically pass the MCP connection params, they don't need to be on the MCP registry
857
+ ########################################################
858
+ from litellm.proxy.management_endpoints.mcp_management_endpoints import (
859
+ NewMCPServerRequest,
860
+ )
861
+
862
+ def _extract_credentials(
863
+ request: NewMCPServerRequest,
864
+ ) -> tuple:
865
+ """
866
+ Extract OAuth credentials from the nested ``request.credentials`` dict.
867
+
868
+ Returns:
869
+ (client_id, client_secret, scopes) — any value may be ``None``.
870
+ """
871
+ creds = request.credentials if isinstance(request.credentials, dict) else {}
872
+ client_id: Optional[str] = creds.get("client_id")
873
+ client_secret: Optional[str] = creds.get("client_secret")
874
+ scopes_raw = creds.get("scopes")
875
+ scopes: Optional[List[str]] = (
876
+ scopes_raw if isinstance(scopes_raw, list) else None
877
+ )
878
+ return client_id, client_secret, scopes
879
+
880
+ async def _execute_with_mcp_client(
881
+ request: NewMCPServerRequest,
882
+ operation: Callable[..., Awaitable[Any]],
883
+ mcp_auth_header: Optional[Union[str, Dict[str, str]]] = None,
884
+ oauth2_headers: Optional[Dict[str, str]] = None,
885
+ raw_headers: Optional[Dict[str, str]] = None,
886
+ ) -> dict:
887
+ """
888
+ Create a temporary MCP client from *request*, run *operation*, and return the result.
889
+
890
+ For M2M OAuth servers (those with ``client_id``, ``client_secret``, and
891
+ ``token_url``), the incoming ``oauth2_headers`` are dropped so that
892
+ ``resolve_mcp_auth`` can auto-fetch a token via ``client_credentials``.
893
+
894
+ Args:
895
+ request: MCP server configuration submitted by the UI.
896
+ operation: Async callable that receives the created client and returns a result dict.
897
+ mcp_auth_header: Pre-resolved credential header (API-key / bearer token).
898
+ oauth2_headers: Headers extracted from the incoming request (may contain the
899
+ litellm API key — must NOT be forwarded for M2M servers).
900
+ raw_headers: Raw request headers forwarded for stdio env construction.
901
+
902
+ Returns:
903
+ The dict returned by *operation*, or an error dict on failure.
904
+ """
905
+ try:
906
+ client_id, client_secret, scopes = _extract_credentials(request)
907
+
908
+ _oauth2_flow: Optional[
909
+ Literal["client_credentials", "authorization_code"]
910
+ ] = request.oauth2_flow or (
911
+ "client_credentials"
912
+ if client_id and client_secret and request.token_url
913
+ else None
914
+ )
915
+ # client_credentials requires token_url to fetch a token; without it the
916
+ # incoming auth header would be dropped with nothing to replace it.
917
+ if _oauth2_flow == "client_credentials" and not request.token_url:
918
+ _oauth2_flow = None
919
+
920
+ server_model = MCPServer(
921
+ server_id=request.server_id or "",
922
+ name=request.alias or request.server_name or "",
923
+ url=request.url,
924
+ transport=request.transport,
925
+ auth_type=request.auth_type,
926
+ mcp_info=request.mcp_info,
927
+ command=request.command,
928
+ args=request.args,
929
+ env=request.env,
930
+ static_headers=request.static_headers,
931
+ client_id=client_id,
932
+ client_secret=client_secret,
933
+ token_url=request.token_url,
934
+ scopes=scopes,
935
+ authorization_url=request.authorization_url,
936
+ registration_url=request.registration_url,
937
+ oauth2_flow=_oauth2_flow,
938
+ instructions=request.instructions,
939
+ )
940
+
941
+ stdio_env = global_mcp_server_manager._build_stdio_env(
942
+ server_model, raw_headers
943
+ )
944
+
945
+ # For M2M OAuth servers, drop the incoming Authorization header so that
946
+ # resolve_mcp_auth can auto-fetch a token via client_credentials.
947
+ effective_oauth2_headers = (
948
+ None if server_model.has_client_credentials else oauth2_headers
949
+ )
950
+
951
+ merged_headers = merge_mcp_headers(
952
+ extra_headers=effective_oauth2_headers,
953
+ static_headers=request.static_headers,
954
+ )
955
+
956
+ client = await global_mcp_server_manager._create_mcp_client(
957
+ server=server_model,
958
+ mcp_auth_header=mcp_auth_header,
959
+ extra_headers=merged_headers,
960
+ stdio_env=stdio_env,
961
+ )
962
+
963
+ return await operation(client)
964
+
965
+ except (KeyboardInterrupt, SystemExit):
966
+ raise
967
+ except BaseException as e:
968
+ verbose_logger.error("Error in MCP operation: %s", e, exc_info=True)
969
+ return {
970
+ "status": "error",
971
+ "error": True,
972
+ "message": "Failed to connect to MCP server. Check proxy logs for details.",
973
+ }
974
+
975
+ async def _preview_openapi_tools(spec_path: str) -> dict:
976
+ """Generate tool previews from an OpenAPI spec without creating a server."""
977
+ from litellm.proxy._experimental.mcp_server.openapi_to_mcp_generator import (
978
+ build_input_schema,
979
+ load_openapi_spec_async,
980
+ resolve_operation_params,
981
+ )
982
+
983
+ try:
984
+ spec = await load_openapi_spec_async(spec_path)
985
+ paths = spec.get("paths", {})
986
+ components = spec.get("components", {})
987
+ tools: List[dict] = []
988
+ for path, path_item in paths.items():
989
+ for method in ("get", "post", "put", "patch", "delete"):
990
+ operation = path_item.get(method)
991
+ if operation is None:
992
+ continue
993
+
994
+ resolved_op = resolve_operation_params(
995
+ operation, path_item, components
996
+ )
997
+
998
+ op_id = operation.get("operationId", f"{method}_{path}")
999
+ summary = operation.get("summary", "")
1000
+ description = operation.get("description", summary)
1001
+ input_schema = build_input_schema(resolved_op)
1002
+ tools.append(
1003
+ {
1004
+ "name": op_id,
1005
+ "description": description
1006
+ or summary
1007
+ or f"{method.upper()} {path}",
1008
+ "inputSchema": input_schema,
1009
+ }
1010
+ )
1011
+ return {
1012
+ "tools": tools,
1013
+ "error": None,
1014
+ "message": f"Found {len(tools)} tools from OpenAPI spec",
1015
+ }
1016
+ except Exception as e:
1017
+ verbose_logger.error("Error previewing OpenAPI tools: %s", e, exc_info=True)
1018
+ return {
1019
+ "tools": [],
1020
+ "error": True,
1021
+ "message": f"Failed to load OpenAPI spec: {e}",
1022
+ }
1023
+
1024
+ @router.post("/test/connection", dependencies=[Depends(user_api_key_auth)])
1025
+ async def test_connection(
1026
+ request: Request,
1027
+ new_mcp_server_request: NewMCPServerRequest,
1028
+ user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),
1029
+ ):
1030
+ """
1031
+ Test if we can connect to the provided MCP server before adding it
1032
+ """
1033
+ if LitellmUserRoles.PROXY_ADMIN != user_api_key_dict.user_role:
1034
+ raise HTTPException(
1035
+ status_code=status.HTTP_403_FORBIDDEN,
1036
+ detail={
1037
+ "error": "User does not have permission to test MCP server connections. Only PROXY_ADMIN users can perform this action."
1038
+ },
1039
+ )
1040
+
1041
+ async def _test_connection_operation(client):
1042
+ async def _noop(session):
1043
+ return "ok"
1044
+
1045
+ await client.run_with_session(_noop)
1046
+ return {"status": "ok"}
1047
+
1048
+ return await _execute_with_mcp_client(
1049
+ new_mcp_server_request,
1050
+ _test_connection_operation,
1051
+ raw_headers=_safe_get_request_headers(request),
1052
+ )
1053
+
1054
+ @router.post("/test/tools/list", dependencies=[Depends(user_api_key_auth)])
1055
+ async def test_tools_list(
1056
+ request: Request,
1057
+ new_mcp_server_request: NewMCPServerRequest,
1058
+ user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),
1059
+ ):
1060
+ """
1061
+ Preview tools available from MCP server before adding it
1062
+ """
1063
+ if LitellmUserRoles.PROXY_ADMIN != user_api_key_dict.user_role:
1064
+ raise HTTPException(
1065
+ status_code=status.HTTP_403_FORBIDDEN,
1066
+ detail={
1067
+ "error": "User does not have permission to test MCP server tools. Only PROXY_ADMIN users can perform this action."
1068
+ },
1069
+ )
1070
+
1071
+ # For OpenAPI spec servers, generate tools from the spec directly
1072
+ if new_mcp_server_request.spec_path:
1073
+ return await _preview_openapi_tools(new_mcp_server_request.spec_path)
1074
+
1075
+ from litellm.proxy._experimental.mcp_server.auth.user_api_key_auth_mcp import (
1076
+ MCPRequestHandler,
1077
+ )
1078
+
1079
+ headers = request.headers
1080
+
1081
+ mcp_auth_header: Optional[str] = None
1082
+ if new_mcp_server_request.auth_type in {
1083
+ MCPAuth.api_key,
1084
+ MCPAuth.bearer_token,
1085
+ MCPAuth.basic,
1086
+ MCPAuth.authorization,
1087
+ }:
1088
+ credentials = getattr(new_mcp_server_request, "credentials", None)
1089
+ if isinstance(credentials, dict):
1090
+ mcp_auth_header = credentials.get("auth_value")
1091
+
1092
+ oauth2_headers: Optional[Dict[str, str]] = None
1093
+ if new_mcp_server_request.auth_type == MCPAuth.oauth2:
1094
+ oauth2_headers = MCPRequestHandler._get_oauth2_headers_from_headers(headers)
1095
+
1096
+ async def _list_tools_operation(client):
1097
+ async def _list_tools_session_operation(session):
1098
+ return await session.list_tools()
1099
+
1100
+ list_tools_response = await client.run_with_session(
1101
+ _list_tools_session_operation
1102
+ )
1103
+ list_tools_result: List[MCPTool] = list_tools_response.tools
1104
+ model_dumped_tools: List[dict] = [
1105
+ tool.model_dump() for tool in list_tools_result
1106
+ ]
1107
+ return {
1108
+ "tools": model_dumped_tools,
1109
+ "error": None,
1110
+ "message": "Successfully retrieved tools",
1111
+ }
1112
+
1113
+ return await _execute_with_mcp_client(
1114
+ new_mcp_server_request,
1115
+ _list_tools_operation,
1116
+ mcp_auth_header=mcp_auth_header,
1117
+ oauth2_headers=oauth2_headers,
1118
+ raw_headers=_safe_get_request_headers(request),
1119
+ )
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/semantic_tool_filter.py ADDED
@@ -0,0 +1,327 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Semantic MCP Tool Filtering using semantic-router
3
+
4
+ Filters MCP tools semantically for /chat/completions and /responses endpoints.
5
+ """
6
+
7
+ from typing import TYPE_CHECKING, Any, Dict, List, Optional
8
+
9
+ from litellm._logging import verbose_logger
10
+ from litellm.proxy._experimental.mcp_server.utils import MCP_TOOL_PREFIX_SEPARATOR
11
+
12
+ if TYPE_CHECKING:
13
+ from semantic_router.routers import SemanticRouter
14
+
15
+ from litellm.router import Router
16
+
17
+
18
+ class SemanticMCPToolFilter:
19
+ """Filters MCP tools using semantic similarity to reduce context window size."""
20
+
21
+ def __init__(
22
+ self,
23
+ embedding_model: str,
24
+ litellm_router_instance: "Router",
25
+ top_k: int = 10,
26
+ similarity_threshold: float = 0.3,
27
+ enabled: bool = True,
28
+ ):
29
+ """
30
+ Initialize the semantic tool filter.
31
+
32
+ Args:
33
+ embedding_model: Model to use for embeddings (e.g., "text-embedding-3-small")
34
+ litellm_router_instance: Router instance for embedding generation
35
+ top_k: Maximum number of tools to return
36
+ similarity_threshold: Minimum similarity score for filtering
37
+ enabled: Whether filtering is enabled
38
+ """
39
+ self.enabled = enabled
40
+ self.top_k = top_k
41
+ self.similarity_threshold = similarity_threshold
42
+ self.embedding_model = embedding_model
43
+ self.router_instance = litellm_router_instance
44
+ self.tool_router: Optional["SemanticRouter"] = None
45
+ self._tool_map: Dict[str, Any] = {} # MCPTool objects or OpenAI function dicts
46
+
47
+ async def build_router_from_mcp_registry(self) -> None:
48
+ """Build semantic router from all MCP tools in the registry (no auth checks)."""
49
+ from litellm.proxy._experimental.mcp_server.mcp_server_manager import (
50
+ global_mcp_server_manager,
51
+ )
52
+
53
+ try:
54
+ # Get all servers from registry without auth checks
55
+ registry = global_mcp_server_manager.get_registry()
56
+ if not registry:
57
+ verbose_logger.warning("MCP registry is empty")
58
+ self.tool_router = None
59
+ return
60
+
61
+ # Fetch tools from all servers in parallel
62
+ all_tools = []
63
+ for server_id, server in registry.items():
64
+ try:
65
+ tools = await global_mcp_server_manager.get_tools_for_server(
66
+ server_id
67
+ )
68
+ all_tools.extend(tools)
69
+ except Exception as e:
70
+ verbose_logger.warning(
71
+ f"Failed to fetch tools from server {server_id}: {e}"
72
+ )
73
+ continue
74
+
75
+ if not all_tools:
76
+ verbose_logger.warning("No MCP tools found in registry")
77
+ self.tool_router = None
78
+ return
79
+
80
+ verbose_logger.info(
81
+ f"Fetched {len(all_tools)} tools from {len(registry)} MCP servers"
82
+ )
83
+ self._build_router(all_tools)
84
+
85
+ except Exception as e:
86
+ verbose_logger.error(f"Failed to build router from MCP registry: {e}")
87
+ self.tool_router = None
88
+ raise
89
+
90
+ def _extract_tool_info(self, tool) -> tuple[str, str]:
91
+ """Extract name and description from MCP tool or OpenAI function dict."""
92
+ name: str
93
+ description: str
94
+
95
+ if isinstance(tool, dict):
96
+ # OpenAI function format
97
+ name = tool.get("name", "")
98
+ description = tool.get("description", name)
99
+ else:
100
+ # MCPTool object
101
+ name = str(tool.name)
102
+ description = str(tool.description) if tool.description else str(tool.name)
103
+
104
+ return name, description
105
+
106
+ def _build_router(self, tools: List) -> None:
107
+ """Build semantic router with tools (MCPTool objects or OpenAI function dicts)."""
108
+ from semantic_router.routers import SemanticRouter
109
+ from semantic_router.routers.base import Route
110
+
111
+ from litellm.router_strategy.auto_router.litellm_encoder import (
112
+ LiteLLMRouterEncoder,
113
+ )
114
+
115
+ if not tools:
116
+ self.tool_router = None
117
+ return
118
+
119
+ try:
120
+ # Convert tools to routes
121
+ routes = []
122
+ self._tool_map = {}
123
+
124
+ for tool in tools:
125
+ name, description = self._extract_tool_info(tool)
126
+ self._tool_map[name] = tool
127
+
128
+ routes.append(
129
+ Route(
130
+ name=name,
131
+ description=description,
132
+ utterances=[description],
133
+ score_threshold=self.similarity_threshold,
134
+ )
135
+ )
136
+
137
+ self.tool_router = SemanticRouter(
138
+ routes=routes,
139
+ encoder=LiteLLMRouterEncoder(
140
+ litellm_router_instance=self.router_instance,
141
+ model_name=self.embedding_model,
142
+ score_threshold=self.similarity_threshold,
143
+ ),
144
+ auto_sync="local",
145
+ )
146
+
147
+ verbose_logger.info(f"Built semantic router with {len(routes)} tools")
148
+
149
+ except Exception as e:
150
+ verbose_logger.error(f"Failed to build semantic router: {e}")
151
+ self.tool_router = None
152
+ raise
153
+
154
+ async def filter_tools(
155
+ self,
156
+ query: str,
157
+ available_tools: List[Any],
158
+ top_k: Optional[int] = None,
159
+ ) -> List[Any]:
160
+ """
161
+ Filter tools semantically based on query.
162
+
163
+ Args:
164
+ query: User query to match against tools
165
+ available_tools: Full list of available MCP tools
166
+ top_k: Override default top_k (optional)
167
+
168
+ Returns:
169
+ Filtered and ordered list of tools (up to top_k)
170
+ """
171
+ # Early returns for cases where we can't/shouldn't filter
172
+ if not self.enabled:
173
+ return available_tools
174
+
175
+ if not available_tools:
176
+ return available_tools
177
+
178
+ if not query or not query.strip():
179
+ return available_tools
180
+
181
+ # Router should be built on startup - if not, something went wrong
182
+ if self.tool_router is None:
183
+ verbose_logger.warning(
184
+ "Router not initialized - was build_router_from_mcp_registry() called on startup?"
185
+ )
186
+ return available_tools
187
+
188
+ # Run semantic filtering
189
+ try:
190
+ limit = top_k or self.top_k
191
+ matches = self.tool_router(text=query, limit=limit)
192
+ matched_tool_names = self._extract_tool_names_from_matches(matches)
193
+
194
+ if not matched_tool_names:
195
+ return available_tools
196
+
197
+ return self._get_tools_by_names(matched_tool_names, available_tools)
198
+
199
+ except Exception as e:
200
+ verbose_logger.error(f"Semantic tool filter failed: {e}", exc_info=True)
201
+ return available_tools
202
+
203
+ def _extract_tool_names_from_matches(self, matches) -> List[str]:
204
+ """Extract tool names from semantic router match results."""
205
+ if not matches:
206
+ return []
207
+
208
+ # Handle single match
209
+ if hasattr(matches, "name") and matches.name:
210
+ return [matches.name]
211
+
212
+ # Handle list of matches
213
+ if isinstance(matches, list):
214
+ return [m.name for m in matches if hasattr(m, "name") and m.name]
215
+
216
+ return []
217
+
218
+ @staticmethod
219
+ def _name_matches_canonical(client_name: str, canonical: str) -> bool:
220
+ """
221
+ Return True if a client-side tool name refers to the given canonical
222
+ MCP tool name.
223
+
224
+ MCP clients (e.g. opencode) commonly wrap the proxy's canonical tool
225
+ name with an additive namespace prefix of their own
226
+ (``<client_alias><sep><canonical>``). The prefix can use either a
227
+ dash or an underscore as separator regardless of what
228
+ ``MCP_TOOL_PREFIX_SEPARATOR`` is set to on the proxy, because the
229
+ client doesn't know the proxy's separator.
230
+
231
+ The match is anchored: ``canonical`` must form the complete suffix
232
+ of ``client_name`` and be preceded by a separator character, so
233
+ ``rain_gear`` does not match canonical ``ear``.
234
+
235
+ Suffix matching is additionally gated on ``canonical`` itself
236
+ containing ``MCP_TOOL_PREFIX_SEPARATOR``. Server-registered MCP
237
+ tools are always emitted as
238
+ ``<server_name><MCP_TOOL_PREFIX_SEPARATOR><tool_name>`` (see
239
+ ``add_server_prefix_to_name``), so a canonical without the
240
+ separator is not a namespaced MCP tool and falling back to
241
+ suffix matching would spuriously collide with unrelated local
242
+ user functions whose names end in the same characters.
243
+ """
244
+ if client_name == canonical:
245
+ return True
246
+ if MCP_TOOL_PREFIX_SEPARATOR not in canonical:
247
+ return False
248
+ if len(client_name) <= len(canonical):
249
+ return False
250
+ if not client_name.endswith(canonical):
251
+ return False
252
+ separator = client_name[-len(canonical) - 1]
253
+ return separator in ("_", "-")
254
+
255
+ def _get_tools_by_names(
256
+ self, tool_names: List[str], available_tools: List[Any]
257
+ ) -> List[Any]:
258
+ """
259
+ Get tools from available_tools by their names, preserving the
260
+ semantic router's ordering.
261
+
262
+ Matching is tolerant of client-side namespace prefixes: if an
263
+ incoming tool arrived as ``<client_alias>_<canonical>`` while the
264
+ router returned ``<canonical>`` (see
265
+ ``_name_matches_canonical``), that tool is still selected. The
266
+ returned tool object is the original from ``available_tools``, so
267
+ the client-facing name is preserved for tool-call round-trips.
268
+ """
269
+ # Build an index of incoming tools by their client-facing name.
270
+ # Exact matches win over suffix matches when both are present, and
271
+ # each incoming tool is returned at most once even if two canonical
272
+ # names happen to be tail-compatible with the same incoming name.
273
+ available_by_name: Dict[str, Any] = {}
274
+ for tool in available_tools:
275
+ client_name, _ = self._extract_tool_info(tool)
276
+ if client_name and client_name not in available_by_name:
277
+ available_by_name[client_name] = tool
278
+
279
+ matched: List[Any] = []
280
+ used_ids: set = set()
281
+ for canonical in tool_names:
282
+ tool = available_by_name.get(canonical)
283
+ if tool is None:
284
+ # Prefer the shortest qualifying name. When several
285
+ # incoming tools suffix-match the same canonical (e.g.
286
+ # "my_search" and "my_tag_search" both end in "search"),
287
+ # the one closest in length to the canonical is the
288
+ # least-wrapped and most likely the intended target.
289
+ best_name: Optional[str] = None
290
+ for client_name in available_by_name:
291
+ if not self._name_matches_canonical(client_name, canonical):
292
+ continue
293
+ if best_name is None or len(client_name) < len(best_name):
294
+ best_name = client_name
295
+ if best_name is not None:
296
+ tool = available_by_name[best_name]
297
+ if tool is not None and id(tool) not in used_ids:
298
+ matched.append(tool)
299
+ used_ids.add(id(tool))
300
+ return matched
301
+
302
+ def extract_user_query(self, messages: List[Dict[str, Any]]) -> str:
303
+ """
304
+ Extract user query from messages for /chat/completions or /responses.
305
+
306
+ Args:
307
+ messages: List of message dictionaries (from 'messages' or 'input' field)
308
+
309
+ Returns:
310
+ Extracted query string
311
+ """
312
+ for msg in reversed(messages):
313
+ if msg.get("role") == "user":
314
+ content = msg.get("content", "")
315
+
316
+ if isinstance(content, str):
317
+ return content
318
+
319
+ if isinstance(content, list):
320
+ texts = [
321
+ block.get("text", "") if isinstance(block, dict) else str(block)
322
+ for block in content
323
+ if isinstance(block, (dict, str))
324
+ ]
325
+ return " ".join(texts)
326
+
327
+ return ""
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/server.py ADDED
The diff for this file is too large to render. See raw diff
 
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/sse_transport.py ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ This is a modification of code from: https://github.com/SecretiveShell/MCP-Bridge/blob/master/mcp_bridge/mcp_server/sse_transport.py
3
+
4
+ Credit to the maintainers of SecretiveShell for their SSE Transport implementation
5
+
6
+ """
7
+
8
+ from contextlib import asynccontextmanager
9
+ from typing import Any
10
+ from urllib.parse import quote
11
+ from uuid import UUID, uuid4
12
+
13
+ import anyio
14
+ import mcp.types as types
15
+ from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream
16
+ from fastapi.requests import Request
17
+ from fastapi.responses import Response
18
+ from pydantic import ValidationError
19
+ from sse_starlette import EventSourceResponse
20
+ from starlette.types import Receive, Scope, Send
21
+
22
+ from litellm._logging import verbose_logger
23
+
24
+
25
+ class SseServerTransport:
26
+ """
27
+ SSE server transport for MCP. This class provides _two_ ASGI applications,
28
+ suitable to be used with a framework like Starlette and a server like Hypercorn:
29
+
30
+ 1. connect_sse() is an ASGI application which receives incoming GET requests,
31
+ and sets up a new SSE stream to send server messages to the client.
32
+ 2. handle_post_message() is an ASGI application which receives incoming POST
33
+ requests, which should contain client messages that link to a
34
+ previously-established SSE session.
35
+ """
36
+
37
+ _endpoint: str
38
+ _read_stream_writers: dict[
39
+ UUID, MemoryObjectSendStream[types.JSONRPCMessage | Exception]
40
+ ]
41
+
42
+ def __init__(self, endpoint: str) -> None:
43
+ """
44
+ Creates a new SSE server transport, which will direct the client to POST
45
+ messages to the relative or absolute URL given.
46
+ """
47
+
48
+ super().__init__()
49
+ self._endpoint = endpoint
50
+ self._read_stream_writers = {}
51
+ verbose_logger.debug(
52
+ f"SseServerTransport initialized with endpoint: {endpoint}"
53
+ )
54
+
55
+ @asynccontextmanager
56
+ async def connect_sse(self, request: Request):
57
+ if request.scope["type"] != "http":
58
+ verbose_logger.error("connect_sse received non-HTTP request")
59
+ raise ValueError("connect_sse can only handle HTTP requests")
60
+
61
+ verbose_logger.debug("Setting up SSE connection")
62
+ read_stream: MemoryObjectReceiveStream[types.JSONRPCMessage | Exception]
63
+ read_stream_writer: MemoryObjectSendStream[types.JSONRPCMessage | Exception]
64
+
65
+ write_stream: MemoryObjectSendStream[types.JSONRPCMessage]
66
+ write_stream_reader: MemoryObjectReceiveStream[types.JSONRPCMessage]
67
+
68
+ read_stream_writer, read_stream = anyio.create_memory_object_stream(0)
69
+ write_stream, write_stream_reader = anyio.create_memory_object_stream(0)
70
+
71
+ session_id = uuid4()
72
+ session_uri = f"{quote(self._endpoint)}?session_id={session_id.hex}"
73
+ self._read_stream_writers[session_id] = read_stream_writer
74
+ verbose_logger.debug(f"Created new session with ID: {session_id}")
75
+
76
+ sse_stream_writer: MemoryObjectSendStream[dict[str, Any]]
77
+ sse_stream_reader: MemoryObjectReceiveStream[dict[str, Any]]
78
+ sse_stream_writer, sse_stream_reader = anyio.create_memory_object_stream(
79
+ 0, dict[str, Any]
80
+ )
81
+
82
+ async def sse_writer():
83
+ verbose_logger.debug("Starting SSE writer")
84
+ async with sse_stream_writer, write_stream_reader:
85
+ await sse_stream_writer.send({"event": "endpoint", "data": session_uri})
86
+ verbose_logger.debug(f"Sent endpoint event: {session_uri}")
87
+
88
+ async for message in write_stream_reader:
89
+ verbose_logger.debug(f"Sending message via SSE: {message}")
90
+ await sse_stream_writer.send(
91
+ {
92
+ "event": "message",
93
+ "data": message.model_dump_json(
94
+ by_alias=True, exclude_none=True
95
+ ),
96
+ }
97
+ )
98
+
99
+ async with anyio.create_task_group() as tg:
100
+ response = EventSourceResponse(
101
+ content=sse_stream_reader, data_sender_callable=sse_writer
102
+ )
103
+ verbose_logger.debug("Starting SSE response task")
104
+ tg.start_soon(response, request.scope, request.receive, request._send)
105
+
106
+ verbose_logger.debug("Yielding read and write streams")
107
+ yield (read_stream, write_stream)
108
+
109
+ async def handle_post_message(
110
+ self, scope: Scope, receive: Receive, send: Send
111
+ ) -> Response:
112
+ verbose_logger.debug("Handling POST message")
113
+ request = Request(scope, receive)
114
+
115
+ session_id_param = request.query_params.get("session_id")
116
+ if session_id_param is None:
117
+ verbose_logger.warning("Received request without session_id")
118
+ response = Response("session_id is required", status_code=400)
119
+ return response
120
+
121
+ try:
122
+ session_id = UUID(hex=session_id_param)
123
+ verbose_logger.debug(f"Parsed session ID: {session_id}")
124
+ except ValueError:
125
+ verbose_logger.warning(f"Received invalid session ID: {session_id_param}")
126
+ response = Response("Invalid session ID", status_code=400)
127
+ return response
128
+
129
+ writer = self._read_stream_writers.get(session_id)
130
+ if not writer:
131
+ verbose_logger.warning(f"Could not find session for ID: {session_id}")
132
+ response = Response("Could not find session", status_code=404)
133
+ return response
134
+
135
+ json = await request.json()
136
+ verbose_logger.debug(f"Received JSON: {json}")
137
+
138
+ try:
139
+ message = types.JSONRPCMessage.model_validate(json)
140
+ verbose_logger.debug(f"Validated client message: {message}")
141
+ except ValidationError as err:
142
+ verbose_logger.error(f"Failed to parse message: {err}")
143
+ response = Response("Could not parse message", status_code=400)
144
+ await writer.send(err)
145
+ return response
146
+
147
+ verbose_logger.debug(f"Sending message to writer: {message}")
148
+ response = Response("Accepted", status_code=202)
149
+ await writer.send(message)
150
+ return response
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/tool_registry.py ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional
3
+
4
+ from litellm._logging import verbose_logger
5
+ from litellm.proxy.types_utils.utils import get_instance_fn
6
+ from litellm.types.mcp_server.tool_registry import MCPTool
7
+
8
+ if TYPE_CHECKING:
9
+ from mcp.types import Tool as MCPToolSDKTool
10
+ else:
11
+ try:
12
+ from mcp.types import Tool as MCPToolSDKTool
13
+ except ImportError:
14
+ MCPToolSDKTool = None # type: ignore
15
+
16
+
17
+ class MCPToolRegistry:
18
+ """
19
+ A registry for managing MCP tools
20
+ """
21
+
22
+ def __init__(self):
23
+ # Registry to store all registered tools
24
+ self.tools: Dict[str, MCPTool] = {}
25
+
26
+ def register_tool(
27
+ self,
28
+ name: str,
29
+ description: str,
30
+ input_schema: Dict[str, Any],
31
+ handler: Callable,
32
+ ) -> None:
33
+ """
34
+ Register a new tool in the registry
35
+ """
36
+ self.tools[name] = MCPTool(
37
+ name=name,
38
+ description=description,
39
+ input_schema=input_schema,
40
+ handler=handler,
41
+ )
42
+ verbose_logger.debug(f"Registered tool: {name}")
43
+
44
+ def get_tool(self, name: str) -> Optional[MCPTool]:
45
+ """
46
+ Get a tool from the registry by name
47
+ """
48
+ return self.tools.get(name)
49
+
50
+ def list_tools(self, tool_prefix: Optional[str] = None) -> List[MCPTool]:
51
+ """
52
+ List all registered tools
53
+ """
54
+ if tool_prefix:
55
+ return [
56
+ tool
57
+ for tool in self.tools.values()
58
+ if tool.name.startswith(tool_prefix)
59
+ ]
60
+ return list(self.tools.values())
61
+
62
+ def convert_tools_to_mcp_sdk_tool_type(
63
+ self, tools: List[MCPTool]
64
+ ) -> List["MCPToolSDKTool"]:
65
+ if MCPToolSDKTool is None:
66
+ raise ImportError(
67
+ "MCP SDK is not installed. Please install it with: pip install 'litellm[proxy]'"
68
+ )
69
+ return [
70
+ MCPToolSDKTool(
71
+ name=tool.name,
72
+ description=tool.description,
73
+ inputSchema=tool.input_schema,
74
+ )
75
+ for tool in tools
76
+ ]
77
+
78
+ def load_tools_from_config(
79
+ self,
80
+ mcp_tools_config: Optional[Dict[str, Any]] = None,
81
+ config_file_path: Optional[str] = None,
82
+ ) -> None:
83
+ """
84
+ Load and register tools from the proxy config
85
+
86
+ Args:
87
+ mcp_tools_config: The mcp_tools config from the proxy config
88
+ config_file_path: Path to the operator's config.yaml. Threaded
89
+ through to ``get_instance_fn`` so an ``s3://``/``gcs://``
90
+ ``handler`` declared in the YAML resolves; callers from a
91
+ non-YAML path must leave this ``None`` so the runtime gate
92
+ fires.
93
+ """
94
+ if mcp_tools_config is None:
95
+ raise ValueError(
96
+ "mcp_tools_config is required, please set `mcp_tools` in your proxy config"
97
+ )
98
+
99
+ for tool_config in mcp_tools_config:
100
+ if not isinstance(tool_config, dict):
101
+ raise ValueError("mcp_tools_config must be a list of dictionaries")
102
+
103
+ name = tool_config.get("name")
104
+ description = tool_config.get("description")
105
+ input_schema = tool_config.get("input_schema", {})
106
+ handler_name = tool_config.get("handler")
107
+
108
+ if not all([name, description, handler_name]):
109
+ continue
110
+
111
+ # Try to resolve the handler
112
+ # First check if it's a module path (e.g., "module.submodule.function")
113
+ if handler_name is None:
114
+ raise ValueError(f"handler is required for tool {name}")
115
+ handler = get_instance_fn(handler_name, config_file_path)
116
+
117
+ if handler is None:
118
+ verbose_logger.warning(
119
+ f"Warning: Could not find handler {handler_name} for tool {name}"
120
+ )
121
+ continue
122
+
123
+ # Register the tool
124
+ if name is None:
125
+ raise ValueError(f"name is required for tool {name}")
126
+ if description is None:
127
+ raise ValueError(f"description is required for tool {name}")
128
+
129
+ self.register_tool(
130
+ name=name,
131
+ description=description,
132
+ input_schema=input_schema,
133
+ handler=handler,
134
+ )
135
+ verbose_logger.debug(
136
+ "all registered tools: %s", json.dumps(self.tools, indent=4, default=str)
137
+ )
138
+
139
+
140
+ global_mcp_tool_registry = MCPToolRegistry()
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/toolset_db.py ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ from typing import List, Optional
3
+
4
+ from litellm._logging import verbose_proxy_logger
5
+ from litellm._uuid import uuid
6
+ from litellm.proxy.utils import PrismaClient
7
+ from litellm.types.mcp_server.mcp_toolset import (
8
+ MCPToolset,
9
+ NewMCPToolsetRequest,
10
+ UpdateMCPToolsetRequest,
11
+ )
12
+
13
+
14
+ def _toolset_from_row(row) -> MCPToolset:
15
+ data = row.model_dump()
16
+ tools = data.get("tools") or []
17
+ if isinstance(tools, str):
18
+ tools = json.loads(tools)
19
+ data["tools"] = tools
20
+ return MCPToolset(**data)
21
+
22
+
23
+ async def create_mcp_toolset(
24
+ prisma_client: PrismaClient,
25
+ data: NewMCPToolsetRequest,
26
+ touched_by: str,
27
+ ) -> MCPToolset:
28
+ data_dict = data.model_dump(exclude_none=True)
29
+ data_dict["toolset_id"] = str(uuid.uuid4())
30
+ data_dict["tools"] = json.dumps(data_dict.get("tools", []))
31
+ data_dict["created_by"] = touched_by
32
+ data_dict["updated_by"] = touched_by
33
+ row = await prisma_client.db.litellm_mcptoolsettable.create(data=data_dict)
34
+ return _toolset_from_row(row)
35
+
36
+
37
+ async def get_mcp_toolset(
38
+ prisma_client: PrismaClient,
39
+ toolset_id: str,
40
+ ) -> Optional[MCPToolset]:
41
+ row = await prisma_client.db.litellm_mcptoolsettable.find_unique(
42
+ where={"toolset_id": toolset_id}
43
+ )
44
+ if row is None:
45
+ return None
46
+ return _toolset_from_row(row)
47
+
48
+
49
+ async def list_mcp_toolsets(
50
+ prisma_client: PrismaClient,
51
+ toolset_ids: Optional[List[str]] = None,
52
+ ) -> List[MCPToolset]:
53
+ try:
54
+ where = {}
55
+ if toolset_ids is not None:
56
+ where = {"toolset_id": {"in": toolset_ids}}
57
+ rows = await prisma_client.db.litellm_mcptoolsettable.find_many(where=where)
58
+ return [_toolset_from_row(r) for r in rows]
59
+ except Exception as e:
60
+ verbose_proxy_logger.warning(
61
+ "litellm.proxy._experimental.mcp_server.toolset_db::list_mcp_toolsets - {}".format(
62
+ str(e)
63
+ )
64
+ )
65
+ return []
66
+
67
+
68
+ async def get_mcp_toolset_by_name(
69
+ prisma_client: PrismaClient,
70
+ toolset_name: str,
71
+ ) -> Optional[MCPToolset]:
72
+ row = await prisma_client.db.litellm_mcptoolsettable.find_first(
73
+ where={"toolset_name": toolset_name}
74
+ )
75
+ if row is None:
76
+ return None
77
+ return _toolset_from_row(row)
78
+
79
+
80
+ async def update_mcp_toolset(
81
+ prisma_client: PrismaClient,
82
+ data: UpdateMCPToolsetRequest,
83
+ touched_by: str,
84
+ ) -> Optional[MCPToolset]:
85
+ data_dict = data.model_dump(exclude_none=True, exclude={"toolset_id"})
86
+ if "tools" in data_dict:
87
+ data_dict["tools"] = json.dumps(data_dict["tools"])
88
+ data_dict["updated_by"] = touched_by
89
+ try:
90
+ row = await prisma_client.db.litellm_mcptoolsettable.update(
91
+ where={"toolset_id": data.toolset_id},
92
+ data=data_dict,
93
+ )
94
+ except Exception as e:
95
+ from prisma.errors import RecordNotFoundError
96
+
97
+ if isinstance(e, RecordNotFoundError):
98
+ return None
99
+ raise
100
+ return _toolset_from_row(row)
101
+
102
+
103
+ async def delete_mcp_toolset(
104
+ prisma_client: PrismaClient,
105
+ toolset_id: str,
106
+ ) -> Optional[MCPToolset]:
107
+ try:
108
+ row = await prisma_client.db.litellm_mcptoolsettable.delete(
109
+ where={"toolset_id": toolset_id}
110
+ )
111
+ except Exception as e:
112
+ from prisma.errors import RecordNotFoundError
113
+
114
+ if isinstance(e, RecordNotFoundError):
115
+ return None
116
+ raise
117
+ return _toolset_from_row(row)
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/ui_session_utils.py ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Helpers to resolve real team contexts for UI session tokens."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import List
6
+
7
+ from litellm._logging import verbose_logger
8
+ from litellm.constants import UI_SESSION_TOKEN_TEAM_ID
9
+ from litellm.proxy._types import UserAPIKeyAuth
10
+
11
+
12
+ def clone_user_api_key_auth_with_team(
13
+ user_api_key_auth: UserAPIKeyAuth,
14
+ team_id: str,
15
+ ) -> UserAPIKeyAuth:
16
+ """Return a deep copy of the auth context with a different team id."""
17
+
18
+ try:
19
+ cloned_auth = user_api_key_auth.model_copy()
20
+ except AttributeError:
21
+ cloned_auth = user_api_key_auth.copy() # type: ignore[attr-defined]
22
+ cloned_auth.team_id = team_id
23
+ return cloned_auth
24
+
25
+
26
+ async def resolve_ui_session_team_ids(
27
+ user_api_key_auth: UserAPIKeyAuth,
28
+ ) -> List[str]:
29
+ """Resolve the real team ids backing a UI session token."""
30
+
31
+ if (
32
+ user_api_key_auth.team_id != UI_SESSION_TOKEN_TEAM_ID
33
+ or not user_api_key_auth.user_id
34
+ ):
35
+ return []
36
+
37
+ from litellm.proxy.auth.auth_checks import get_user_object
38
+ from litellm.proxy.proxy_server import (
39
+ prisma_client,
40
+ proxy_logging_obj,
41
+ user_api_key_cache,
42
+ )
43
+
44
+ if prisma_client is None:
45
+ verbose_logger.debug("Cannot resolve UI session team ids without DB access")
46
+ return []
47
+
48
+ try:
49
+ user_obj = await get_user_object(
50
+ user_id=user_api_key_auth.user_id,
51
+ prisma_client=prisma_client,
52
+ user_api_key_cache=user_api_key_cache,
53
+ user_id_upsert=False,
54
+ parent_otel_span=user_api_key_auth.parent_otel_span,
55
+ proxy_logging_obj=proxy_logging_obj,
56
+ )
57
+ except Exception as exc: # pragma: no cover - defensive logging
58
+ verbose_logger.warning(
59
+ "Failed to load teams for UI session token user.",
60
+ exc,
61
+ )
62
+ return []
63
+
64
+ if user_obj is None or not user_obj.teams:
65
+ return []
66
+
67
+ resolved_team_ids: List[str] = []
68
+ for team_id in user_obj.teams:
69
+ if team_id and team_id not in resolved_team_ids:
70
+ resolved_team_ids.append(team_id)
71
+ return resolved_team_ids
72
+
73
+
74
+ async def build_effective_auth_contexts(
75
+ user_api_key_auth: UserAPIKeyAuth,
76
+ ) -> List[UserAPIKeyAuth]:
77
+ """Return auth contexts that reflect the actual teams for UI session tokens."""
78
+
79
+ resolved_team_ids = await resolve_ui_session_team_ids(user_api_key_auth)
80
+ if resolved_team_ids:
81
+ return [
82
+ clone_user_api_key_auth_with_team(user_api_key_auth, team_id)
83
+ for team_id in resolved_team_ids
84
+ ]
85
+ return [user_api_key_auth]
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/mcp_server/utils.py ADDED
@@ -0,0 +1,322 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ MCP Server Utilities
3
+ """
4
+
5
+ from typing import Any, Dict, Iterator, Mapping, Optional, Tuple
6
+
7
+ import hashlib
8
+ import importlib
9
+ import os
10
+
11
+ # Constants
12
+ LITELLM_MCP_SERVER_NAME = "litellm-mcp-server"
13
+ LITELLM_MCP_SERVER_VERSION = "1.0.0"
14
+ LITELLM_MCP_SERVER_DESCRIPTION = "MCP Server for LiteLLM"
15
+ MCP_TOOL_PREFIX_SEPARATOR = os.environ.get("MCP_TOOL_PREFIX_SEPARATOR", "-")
16
+ MCP_TOOL_PREFIX_FORMAT = "{server_name}{separator}{tool_name}"
17
+
18
+ # ---------------------------------------------------------------------------
19
+ # Short-ID tool prefix (opt-in)
20
+ # ---------------------------------------------------------------------------
21
+ # When LITELLM_USE_SHORT_MCP_TOOL_PREFIX is truthy the prefix attached to MCP
22
+ # tool / prompt / resource / resource-template names switches from the
23
+ # (potentially long) human-readable server name to a deterministic three
24
+ # character ID derived from the server's ``server_id``.
25
+ #
26
+ # Why three characters?
27
+ # * The first character is restricted to 52 alphabetic characters
28
+ # ([A-Za-z]) and the remaining two characters use the full base62
29
+ # alphabet ([0-9A-Za-z]). That guarantees the prefix never starts
30
+ # with a digit so it remains a valid identifier for every model API
31
+ # (some providers historically required a leading alphabetic char).
32
+ # * 52 * 62 * 62 = 199_888 distinct IDs. The chance of a real local
33
+ # tool name happening to begin with the exact prefix LiteLLM assigned
34
+ # to a given MCP server is negligible in practice.
35
+ # * The IDs are short enough that prefixed tool names stay well under
36
+ # the 60-character upper bound enforced by some model APIs (Anthropic
37
+ # etc.) even for long upstream tool names.
38
+ # * The mapping is deterministic (SHA-256 of ``server_id`` → three
39
+ # characters drawn from the alphabets above), so the prefix is stable
40
+ # across processes, workers and restarts without any persistence
41
+ # layer. Two servers with different ``server_id`` values can in
42
+ # principle hash to the same three chars; that natural-hash collision
43
+ # IS a routing-correctness issue (the second registrant would otherwise
44
+ # have its tools misrouted to the first), so registration goes through
45
+ # ``MCPServerManager._assign_unique_short_prefix`` which rehashes with
46
+ # a deterministic attempt counter until it finds an unused prefix and
47
+ # caches the result on ``MCPServer.short_prefix``. A collision is
48
+ # logged at INFO when it happens.
49
+ #
50
+ # This flag is intentionally opt-in for the first release so customers can
51
+ # migrate. It will become the default in a future release.
52
+ SHORT_MCP_TOOL_PREFIX_LENGTH = 3
53
+ _BASE62_ALPHABET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
54
+ # Subset of _BASE62_ALPHABET used for the *first* character only, to
55
+ # guarantee the prefix never starts with a digit.
56
+ _BASE52_ALPHA_ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
57
+
58
+
59
+ def is_short_mcp_tool_prefix_enabled() -> bool:
60
+ """Return True when the short-ID tool prefix mode is enabled.
61
+
62
+ Read at call time (not import time) so tests and runtime config changes
63
+ take effect without reimporting the module.
64
+ """
65
+ raw = os.environ.get("LITELLM_USE_SHORT_MCP_TOOL_PREFIX", "")
66
+ return raw.strip().lower() in ("1", "true", "yes", "on")
67
+
68
+
69
+ def compute_short_server_prefix(server_id: str, attempt: int = 0) -> str:
70
+ """Derive the deterministic three-character prefix for a server.
71
+
72
+ Uses SHA-256 of ``f"{server_id}#{attempt}"`` and folds the first eight
73
+ bytes into a fixed-length string whose first character is drawn from
74
+ ``_BASE52_ALPHA_ALPHABET`` (so the prefix never starts with a digit)
75
+ and whose remaining characters are drawn from the full base62
76
+ alphabet. Pass ``attempt > 0`` to rehash to a different prefix when
77
+ the natural hash collides with a prefix already assigned to another
78
+ server (see ``MCPServerManager._assign_unique_short_prefix``). An
79
+ empty ``server_id`` raises ``ValueError`` — short prefixes require a
80
+ stable identifier to be deterministic.
81
+ """
82
+ if not server_id:
83
+ raise ValueError("compute_short_server_prefix requires a non-empty server_id")
84
+
85
+ seed = server_id if attempt == 0 else f"{server_id}#{attempt}"
86
+ digest = hashlib.sha256(seed.encode("utf-8")).digest()
87
+ value = int.from_bytes(digest[:8], "big")
88
+
89
+ # Build chars from least-significant to most-significant; we reverse
90
+ # at the end so the first emitted char comes from the high-order
91
+ # bits of the digest (which is the position we constrain to be
92
+ # alphabetic).
93
+ chars = []
94
+ for position in range(SHORT_MCP_TOOL_PREFIX_LENGTH):
95
+ is_first_char = position == SHORT_MCP_TOOL_PREFIX_LENGTH - 1
96
+ alphabet = _BASE52_ALPHA_ALPHABET if is_first_char else _BASE62_ALPHABET
97
+ value, idx = divmod(value, len(alphabet))
98
+ chars.append(alphabet[idx])
99
+ return "".join(reversed(chars))
100
+
101
+
102
+ def is_mcp_available() -> bool:
103
+ """
104
+ Returns True if the MCP module is available, False otherwise
105
+ """
106
+ try:
107
+ importlib.import_module("mcp")
108
+ return True
109
+ except ImportError:
110
+ return False
111
+
112
+
113
+ def normalize_server_name(server_name: str) -> str:
114
+ """
115
+ Normalize server name by replacing spaces with underscores
116
+ """
117
+ return server_name.replace(" ", "_")
118
+
119
+
120
+ def validate_and_normalize_mcp_server_payload(payload: Any) -> None:
121
+ """
122
+ Validate and normalize MCP server payload fields (server_name and alias).
123
+
124
+ This function:
125
+ 1. Validates that server_name and alias don't contain the MCP_TOOL_PREFIX_SEPARATOR
126
+ 2. Normalizes alias by replacing spaces with underscores
127
+ 3. Sets default alias if not provided (using server_name as base)
128
+
129
+ Args:
130
+ payload: The payload object containing server_name and alias fields
131
+
132
+ Raises:
133
+ HTTPException: If validation fails
134
+ """
135
+ # Server name validation: disallow '-'
136
+ if hasattr(payload, "server_name") and payload.server_name:
137
+ validate_mcp_server_name(payload.server_name, raise_http_exception=True)
138
+
139
+ # Alias validation: disallow '-'
140
+ if hasattr(payload, "alias") and payload.alias:
141
+ validate_mcp_server_name(payload.alias, raise_http_exception=True)
142
+
143
+ # Alias normalization and defaulting
144
+ alias = getattr(payload, "alias", None)
145
+ server_name = getattr(payload, "server_name", None)
146
+
147
+ if not alias and server_name:
148
+ alias = normalize_server_name(server_name)
149
+ elif alias:
150
+ alias = normalize_server_name(alias)
151
+
152
+ # Update the payload with normalized alias
153
+ if hasattr(payload, "alias"):
154
+ payload.alias = alias
155
+
156
+
157
+ def add_server_prefix_to_name(name: str, server_name: str) -> str:
158
+ """Add server name prefix to any MCP resource name."""
159
+ formatted_server_name = normalize_server_name(server_name)
160
+
161
+ return MCP_TOOL_PREFIX_FORMAT.format(
162
+ server_name=formatted_server_name,
163
+ separator=MCP_TOOL_PREFIX_SEPARATOR,
164
+ tool_name=name,
165
+ )
166
+
167
+
168
+ def get_server_prefix(server: Any) -> str:
169
+ """Return the prefix for a server.
170
+
171
+ When the short-prefix mode is enabled (``LITELLM_USE_SHORT_MCP_TOOL_PREFIX``)
172
+ a three-character base62 ID is returned. We prefer the cached
173
+ ``server.short_prefix`` value when set — that field is populated at
174
+ registration time by ``MCPServerManager._assign_unique_short_prefix``
175
+ and resolves natural-hash collisions deterministically — and only fall
176
+ back to the natural hash for ad-hoc / temp-server objects without a
177
+ cached value. In default mode the historical behaviour is preserved:
178
+ alias if present, else server_name, else server_id.
179
+ """
180
+ if is_short_mcp_tool_prefix_enabled():
181
+ cached = getattr(server, "short_prefix", None)
182
+ if cached:
183
+ return cached
184
+ server_id = getattr(server, "server_id", None)
185
+ if server_id:
186
+ return compute_short_server_prefix(server_id)
187
+
188
+ if hasattr(server, "alias") and server.alias:
189
+ return server.alias
190
+ if hasattr(server, "server_name") and server.server_name:
191
+ return server.server_name
192
+ if hasattr(server, "server_id"):
193
+ return server.server_id
194
+ return ""
195
+
196
+
197
+ def iter_known_server_prefixes(server: Any) -> Iterator[str]:
198
+ """Yield every prefix form that may appear in tool names for ``server``.
199
+
200
+ Always includes the *current* prefix returned by ``get_server_prefix``.
201
+ Additionally yields the historical (alias / server_name / server_id) and
202
+ short-ID forms so the routing layer can resolve tool names regardless of
203
+ which prefix mode was active when the client first observed them.
204
+ """
205
+ seen = set()
206
+
207
+ def _emit(value: Optional[str]) -> Iterator[str]:
208
+ if value and value not in seen:
209
+ seen.add(value)
210
+ yield value
211
+
212
+ yield from _emit(get_server_prefix(server))
213
+ yield from _emit(getattr(server, "short_prefix", None))
214
+
215
+ server_id = getattr(server, "server_id", None)
216
+ if server_id:
217
+ try:
218
+ yield from _emit(compute_short_server_prefix(server_id))
219
+ except ValueError:
220
+ pass
221
+
222
+ yield from _emit(getattr(server, "alias", None))
223
+ yield from _emit(getattr(server, "server_name", None))
224
+ yield from _emit(server_id)
225
+
226
+
227
+ def split_server_prefix_from_name(prefixed_name: str) -> Tuple[str, str]:
228
+ """Return the unprefixed name plus the server name used as prefix."""
229
+ if MCP_TOOL_PREFIX_SEPARATOR in prefixed_name:
230
+ parts = prefixed_name.split(MCP_TOOL_PREFIX_SEPARATOR, 1)
231
+ if len(parts) == 2:
232
+ return parts[1], parts[0]
233
+ return prefixed_name, ""
234
+
235
+
236
+ def is_tool_name_prefixed(
237
+ tool_name: str,
238
+ known_server_prefixes: Optional[set] = None,
239
+ ) -> bool:
240
+ """
241
+ Check if tool name has a known MCP server prefix.
242
+
243
+ When ``known_server_prefixes`` is provided the function verifies that the
244
+ substring before the first separator is an actual registered server
245
+ prefix. Without it the check falls back to the legacy heuristic
246
+ (separator present anywhere in the name), which can produce false
247
+ positives for non-MCP tools whose names contain hyphens
248
+ (e.g. ``text-to-speech``, ``code-review``).
249
+
250
+ Args:
251
+ tool_name: Tool name to check.
252
+ known_server_prefixes: Optional set of normalised server prefixes
253
+ currently registered in the MCP manager. Pass this whenever
254
+ the caller has access to the server registry so that the check
255
+ is accurate.
256
+
257
+ Returns:
258
+ True if tool name is prefixed, False otherwise.
259
+ """
260
+ if MCP_TOOL_PREFIX_SEPARATOR not in tool_name:
261
+ return False
262
+
263
+ if known_server_prefixes is not None:
264
+ candidate_prefix = tool_name.split(MCP_TOOL_PREFIX_SEPARATOR, 1)[0]
265
+ return normalize_server_name(candidate_prefix) in known_server_prefixes
266
+
267
+ # Legacy fallback – separator present somewhere in the name.
268
+ return True
269
+
270
+
271
+ def validate_mcp_server_name(
272
+ server_name: str, raise_http_exception: bool = False
273
+ ) -> None:
274
+ """
275
+ Validate that MCP server name does not contain 'MCP_TOOL_PREFIX_SEPARATOR'.
276
+
277
+ Args:
278
+ server_name: The server name to validate
279
+ raise_http_exception: If True, raises HTTPException instead of generic Exception
280
+
281
+ Raises:
282
+ Exception or HTTPException: If server name contains 'MCP_TOOL_PREFIX_SEPARATOR'
283
+ """
284
+ if server_name and MCP_TOOL_PREFIX_SEPARATOR in server_name:
285
+ error_message = f"Server name cannot contain '{MCP_TOOL_PREFIX_SEPARATOR}'. Use an alternative character instead Found: {server_name}"
286
+ if raise_http_exception:
287
+ from fastapi import HTTPException
288
+ from starlette import status
289
+
290
+ raise HTTPException(
291
+ status_code=status.HTTP_400_BAD_REQUEST, detail={"error": error_message}
292
+ )
293
+ else:
294
+ raise Exception(error_message)
295
+
296
+
297
+ def merge_mcp_headers(
298
+ *,
299
+ extra_headers: Optional[Mapping[str, str]] = None,
300
+ static_headers: Optional[Mapping[str, str]] = None,
301
+ ) -> Optional[Dict[str, str]]:
302
+ """Merge outbound HTTP headers for MCP calls.
303
+
304
+ This is used when calling out to external MCP servers (or OpenAPI-based MCP tools).
305
+
306
+ Merge rules:
307
+ - Start with `extra_headers` (typically OAuth2-derived headers)
308
+ - Overlay `static_headers` (user-configured per MCP server)
309
+
310
+ If both contain the same key, `static_headers` wins. This matches the existing
311
+ behavior in `MCPServerManager` where `server.static_headers` is applied after
312
+ any caller-provided headers.
313
+ """
314
+ merged: Dict[str, str] = {}
315
+
316
+ if extra_headers:
317
+ merged.update({str(k): str(v) for k, v in extra_headers.items()})
318
+
319
+ if static_headers:
320
+ merged.update({str(k): str(v) for k, v in static_headers.items()})
321
+
322
+ return merged or None
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/404.html ADDED
@@ -0,0 +1 @@
 
 
1
+ <!DOCTYPE html><!--L07LLek3NGtynjTxlCdLS--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css" data-precedence="next"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js"/><script src="/litellm-asset-prefix/_next/static/chunks/1300460219810c10.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/e96398764f77c728.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/726579f2940c2a2f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/turbopack-ddedb29a5eb0118f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>LiteLLM Dashboard</title><meta name="description" content="LiteLLM Proxy Admin UI"/><link rel="icon" href="/favicon.ico?favicon.1d32c690.ico" sizes="48x48" type="image/x-icon"/><link rel="icon" href="./favicon.ico"/><script src="/litellm-asset-prefix/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="inter_5972bc34-module__OU16Qa__className"><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[867271,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n3:I[71195,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n4:I[339756,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n5:I[837457,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n6:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"OutletBoundary\"]\n7:\"$Sreact.suspense\"\n9:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ViewportBoundary\"]\nb:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"MetadataBoundary\"]\nd:I[168027,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"L07LLek3NGtynjTxlCdLS\",\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"inter_5972bc34-module__OU16Qa__className\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$7\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@8\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L9\",null,{\"children\":\"$La\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"$7\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lc\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"e:I[27201,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"IconMark\"]\n8:null\nc:[[\"$\",\"title\",\"0\",{\"children\":\"LiteLLM Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"LiteLLM Proxy Admin UI\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.1d32c690.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"./favicon.ico\"}],[\"$\",\"$Le\",\"4\",{}]]\n"])</script></body></html>
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/__next.__PAGE__.txt ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1:"$Sreact.fragment"
2
+ 2:I[347257,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ClientPageRoot"]
3
+ 3:I[952683,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","/litellm-asset-prefix/_next/static/chunks/0493aafc4891dd29.js","/litellm-asset-prefix/_next/static/chunks/f7e1d08418645368.js","/litellm-asset-prefix/_next/static/chunks/b3d198d6c56a21b8.js","/litellm-asset-prefix/_next/static/chunks/403c4d96324c23a6.js","/litellm-asset-prefix/_next/static/chunks/37e77c06e99eb8ff.js","/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js","/litellm-asset-prefix/_next/static/chunks/0549bc9afa7d4888.js","/litellm-asset-prefix/_next/static/chunks/0b470ffc60999bf4.js","/litellm-asset-prefix/_next/static/chunks/c847ecdf8c790b0b.js","/litellm-asset-prefix/_next/static/chunks/baadbd26839e7b66.js","/litellm-asset-prefix/_next/static/chunks/ee5f9a39a526e423.js","/litellm-asset-prefix/_next/static/chunks/6eee262391715440.js","/litellm-asset-prefix/_next/static/chunks/4e17b625d75327a7.js","/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js","/litellm-asset-prefix/_next/static/chunks/a06cc76a774dd182.js","/litellm-asset-prefix/_next/static/chunks/264fd32eefec52b6.js","/litellm-asset-prefix/_next/static/chunks/86828bdbafb8b581.js","/litellm-asset-prefix/_next/static/chunks/10dc4591ef08a91f.js","/litellm-asset-prefix/_next/static/chunks/e099566e8bd4ee4e.js","/litellm-asset-prefix/_next/static/chunks/fbe12a36d22e9554.js","/litellm-asset-prefix/_next/static/chunks/2971c4658f1bcd7d.js","/litellm-asset-prefix/_next/static/chunks/134f728fa7099e3e.js","/litellm-asset-prefix/_next/static/chunks/679dbd657c8b5aef.js","/litellm-asset-prefix/_next/static/chunks/94f7208f5087e27c.js","/litellm-asset-prefix/_next/static/chunks/43f6fc3c2ab9cf23.js","/litellm-asset-prefix/_next/static/chunks/4e06277331e725da.js","/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js","/litellm-asset-prefix/_next/static/chunks/ac3cf77acb5bf234.js","/litellm-asset-prefix/_next/static/chunks/fb125648f2dae104.js","/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js","/litellm-asset-prefix/_next/static/chunks/a09028cd611c08ef.js","/litellm-asset-prefix/_next/static/chunks/6967a3b4ecbd3785.js","/litellm-asset-prefix/_next/static/chunks/3e917c79aadd945b.js","/litellm-asset-prefix/_next/static/chunks/9bbebdeb3f1cb03f.js","/litellm-asset-prefix/_next/static/chunks/0a65da2cd24e2ab6.js","/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js","/litellm-asset-prefix/_next/static/chunks/5f2d62a75803a3f7.js","/litellm-asset-prefix/_next/static/chunks/ca5fbafaf3826374.js","/litellm-asset-prefix/_next/static/chunks/d3ac82723ec9e30d.js","/litellm-asset-prefix/_next/static/chunks/9b0ee76cbdef1a2a.js","/litellm-asset-prefix/_next/static/chunks/1bc2898be56acd1b.js","/litellm-asset-prefix/_next/static/chunks/fcdf7322b0aa3e2e.js","/litellm-asset-prefix/_next/static/chunks/878832edb30e99a4.js","/litellm-asset-prefix/_next/static/chunks/496b84010c33cf69.js","/litellm-asset-prefix/_next/static/chunks/8e3d0ce9505a304f.js","/litellm-asset-prefix/_next/static/chunks/e1f23fd814ac3500.js","/litellm-asset-prefix/_next/static/chunks/88c74f8b4b20d25a.js","/litellm-asset-prefix/_next/static/chunks/99cf9cf99df5ccfc.js","/litellm-asset-prefix/_next/static/chunks/4980372eaa37b78b.js","/litellm-asset-prefix/_next/static/chunks/0cdfadbcf4b8c9e4.js","/litellm-asset-prefix/_next/static/chunks/8f3bf592254c6c3b.js","/litellm-asset-prefix/_next/static/chunks/8c17e934bd227606.js","/litellm-asset-prefix/_next/static/chunks/b98447395b5d37ef.js"],"default"]
4
+ 1a:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"OutletBoundary"]
5
+ 1b:"$Sreact.suspense"
6
+ :HL["/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css","style"]
7
+ 0:{"buildId":"L07LLek3NGtynjTxlCdLS","rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css","precedence":"next"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/0493aafc4891dd29.js","async":true}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/f7e1d08418645368.js","async":true}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/b3d198d6c56a21b8.js","async":true}],["$","script","script-3",{"src":"/litellm-asset-prefix/_next/static/chunks/403c4d96324c23a6.js","async":true}],["$","script","script-4",{"src":"/litellm-asset-prefix/_next/static/chunks/37e77c06e99eb8ff.js","async":true}],["$","script","script-5",{"src":"/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js","async":true}],["$","script","script-6",{"src":"/litellm-asset-prefix/_next/static/chunks/0549bc9afa7d4888.js","async":true}],["$","script","script-7",{"src":"/litellm-asset-prefix/_next/static/chunks/0b470ffc60999bf4.js","async":true}],["$","script","script-8",{"src":"/litellm-asset-prefix/_next/static/chunks/c847ecdf8c790b0b.js","async":true}],["$","script","script-9",{"src":"/litellm-asset-prefix/_next/static/chunks/baadbd26839e7b66.js","async":true}],["$","script","script-10",{"src":"/litellm-asset-prefix/_next/static/chunks/ee5f9a39a526e423.js","async":true}],["$","script","script-11",{"src":"/litellm-asset-prefix/_next/static/chunks/6eee262391715440.js","async":true}],["$","script","script-12",{"src":"/litellm-asset-prefix/_next/static/chunks/4e17b625d75327a7.js","async":true}],["$","script","script-13",{"src":"/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js","async":true}],["$","script","script-14",{"src":"/litellm-asset-prefix/_next/static/chunks/a06cc76a774dd182.js","async":true}],["$","script","script-15",{"src":"/litellm-asset-prefix/_next/static/chunks/264fd32eefec52b6.js","async":true}],["$","script","script-16",{"src":"/litellm-asset-prefix/_next/static/chunks/86828bdbafb8b581.js","async":true}],["$","script","script-17",{"src":"/litellm-asset-prefix/_next/static/chunks/10dc4591ef08a91f.js","async":true}],["$","script","script-18",{"src":"/litellm-asset-prefix/_next/static/chunks/e099566e8bd4ee4e.js","async":true}],["$","script","script-19",{"src":"/litellm-asset-prefix/_next/static/chunks/fbe12a36d22e9554.js","async":true}],["$","script","script-20",{"src":"/litellm-asset-prefix/_next/static/chunks/2971c4658f1bcd7d.js","async":true}],["$","script","script-21",{"src":"/litellm-asset-prefix/_next/static/chunks/134f728fa7099e3e.js","async":true}],["$","script","script-22",{"src":"/litellm-asset-prefix/_next/static/chunks/679dbd657c8b5aef.js","async":true}],["$","script","script-23",{"src":"/litellm-asset-prefix/_next/static/chunks/94f7208f5087e27c.js","async":true}],["$","script","script-24",{"src":"/litellm-asset-prefix/_next/static/chunks/43f6fc3c2ab9cf23.js","async":true}],["$","script","script-25",{"src":"/litellm-asset-prefix/_next/static/chunks/4e06277331e725da.js","async":true}],["$","script","script-26",{"src":"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js","async":true}],["$","script","script-27",{"src":"/litellm-asset-prefix/_next/static/chunks/ac3cf77acb5bf234.js","async":true}],["$","script","script-28",{"src":"/litellm-asset-prefix/_next/static/chunks/fb125648f2dae104.js","async":true}],["$","script","script-29",{"src":"/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js","async":true}],["$","script","script-30",{"src":"/litellm-asset-prefix/_next/static/chunks/a09028cd611c08ef.js","async":true}],["$","script","script-31",{"src":"/litellm-asset-prefix/_next/static/chunks/6967a3b4ecbd3785.js","async":true}],["$","script","script-32",{"src":"/litellm-asset-prefix/_next/static/chunks/3e917c79aadd945b.js","async":true}],["$","script","script-33",{"src":"/litellm-asset-prefix/_next/static/chunks/9bbebdeb3f1cb03f.js","async":true}],"$L6","$L7","$L8","$L9","$La","$Lb","$Lc","$Ld","$Le","$Lf","$L10","$L11","$L12","$L13","$L14","$L15","$L16","$L17","$L18"],"$L19"]}],"loading":null,"isPartial":false}
8
+ 4:{}
9
+ 5:"$0:rsc:props:children:0:props:serverProvidedParams:params"
10
+ 6:["$","script","script-34",{"src":"/litellm-asset-prefix/_next/static/chunks/0a65da2cd24e2ab6.js","async":true}]
11
+ 7:["$","script","script-35",{"src":"/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js","async":true}]
12
+ 8:["$","script","script-36",{"src":"/litellm-asset-prefix/_next/static/chunks/5f2d62a75803a3f7.js","async":true}]
13
+ 9:["$","script","script-37",{"src":"/litellm-asset-prefix/_next/static/chunks/ca5fbafaf3826374.js","async":true}]
14
+ a:["$","script","script-38",{"src":"/litellm-asset-prefix/_next/static/chunks/d3ac82723ec9e30d.js","async":true}]
15
+ b:["$","script","script-39",{"src":"/litellm-asset-prefix/_next/static/chunks/9b0ee76cbdef1a2a.js","async":true}]
16
+ c:["$","script","script-40",{"src":"/litellm-asset-prefix/_next/static/chunks/1bc2898be56acd1b.js","async":true}]
17
+ d:["$","script","script-41",{"src":"/litellm-asset-prefix/_next/static/chunks/fcdf7322b0aa3e2e.js","async":true}]
18
+ e:["$","script","script-42",{"src":"/litellm-asset-prefix/_next/static/chunks/878832edb30e99a4.js","async":true}]
19
+ f:["$","script","script-43",{"src":"/litellm-asset-prefix/_next/static/chunks/496b84010c33cf69.js","async":true}]
20
+ 10:["$","script","script-44",{"src":"/litellm-asset-prefix/_next/static/chunks/8e3d0ce9505a304f.js","async":true}]
21
+ 11:["$","script","script-45",{"src":"/litellm-asset-prefix/_next/static/chunks/e1f23fd814ac3500.js","async":true}]
22
+ 12:["$","script","script-46",{"src":"/litellm-asset-prefix/_next/static/chunks/88c74f8b4b20d25a.js","async":true}]
23
+ 13:["$","script","script-47",{"src":"/litellm-asset-prefix/_next/static/chunks/99cf9cf99df5ccfc.js","async":true}]
24
+ 14:["$","script","script-48",{"src":"/litellm-asset-prefix/_next/static/chunks/4980372eaa37b78b.js","async":true}]
25
+ 15:["$","script","script-49",{"src":"/litellm-asset-prefix/_next/static/chunks/0cdfadbcf4b8c9e4.js","async":true}]
26
+ 16:["$","script","script-50",{"src":"/litellm-asset-prefix/_next/static/chunks/8f3bf592254c6c3b.js","async":true}]
27
+ 17:["$","script","script-51",{"src":"/litellm-asset-prefix/_next/static/chunks/8c17e934bd227606.js","async":true}]
28
+ 18:["$","script","script-52",{"src":"/litellm-asset-prefix/_next/static/chunks/b98447395b5d37ef.js","async":true}]
29
+ 19:["$","$L1a",null,{"children":["$","$1b",null,{"name":"Next.MetadataOutlet","children":"$@1c"}]}]
30
+ 1c:null
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/__next._full.txt ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1:"$Sreact.fragment"
2
+ 2:I[867271,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
3
+ 3:I[71195,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
4
+ 4:I[339756,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
5
+ 5:I[837457,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
6
+ 6:I[347257,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ClientPageRoot"]
7
+ 7:I[952683,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","/litellm-asset-prefix/_next/static/chunks/0493aafc4891dd29.js","/litellm-asset-prefix/_next/static/chunks/f7e1d08418645368.js","/litellm-asset-prefix/_next/static/chunks/b3d198d6c56a21b8.js","/litellm-asset-prefix/_next/static/chunks/403c4d96324c23a6.js","/litellm-asset-prefix/_next/static/chunks/37e77c06e99eb8ff.js","/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js","/litellm-asset-prefix/_next/static/chunks/0549bc9afa7d4888.js","/litellm-asset-prefix/_next/static/chunks/0b470ffc60999bf4.js","/litellm-asset-prefix/_next/static/chunks/c847ecdf8c790b0b.js","/litellm-asset-prefix/_next/static/chunks/baadbd26839e7b66.js","/litellm-asset-prefix/_next/static/chunks/ee5f9a39a526e423.js","/litellm-asset-prefix/_next/static/chunks/6eee262391715440.js","/litellm-asset-prefix/_next/static/chunks/4e17b625d75327a7.js","/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js","/litellm-asset-prefix/_next/static/chunks/a06cc76a774dd182.js","/litellm-asset-prefix/_next/static/chunks/264fd32eefec52b6.js","/litellm-asset-prefix/_next/static/chunks/86828bdbafb8b581.js","/litellm-asset-prefix/_next/static/chunks/10dc4591ef08a91f.js","/litellm-asset-prefix/_next/static/chunks/e099566e8bd4ee4e.js","/litellm-asset-prefix/_next/static/chunks/fbe12a36d22e9554.js","/litellm-asset-prefix/_next/static/chunks/2971c4658f1bcd7d.js","/litellm-asset-prefix/_next/static/chunks/134f728fa7099e3e.js","/litellm-asset-prefix/_next/static/chunks/679dbd657c8b5aef.js","/litellm-asset-prefix/_next/static/chunks/94f7208f5087e27c.js","/litellm-asset-prefix/_next/static/chunks/43f6fc3c2ab9cf23.js","/litellm-asset-prefix/_next/static/chunks/4e06277331e725da.js","/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js","/litellm-asset-prefix/_next/static/chunks/ac3cf77acb5bf234.js","/litellm-asset-prefix/_next/static/chunks/fb125648f2dae104.js","/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js","/litellm-asset-prefix/_next/static/chunks/a09028cd611c08ef.js","/litellm-asset-prefix/_next/static/chunks/6967a3b4ecbd3785.js","/litellm-asset-prefix/_next/static/chunks/3e917c79aadd945b.js","/litellm-asset-prefix/_next/static/chunks/9bbebdeb3f1cb03f.js","/litellm-asset-prefix/_next/static/chunks/0a65da2cd24e2ab6.js","/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js","/litellm-asset-prefix/_next/static/chunks/5f2d62a75803a3f7.js","/litellm-asset-prefix/_next/static/chunks/ca5fbafaf3826374.js","/litellm-asset-prefix/_next/static/chunks/d3ac82723ec9e30d.js","/litellm-asset-prefix/_next/static/chunks/9b0ee76cbdef1a2a.js","/litellm-asset-prefix/_next/static/chunks/1bc2898be56acd1b.js","/litellm-asset-prefix/_next/static/chunks/fcdf7322b0aa3e2e.js","/litellm-asset-prefix/_next/static/chunks/878832edb30e99a4.js","/litellm-asset-prefix/_next/static/chunks/496b84010c33cf69.js","/litellm-asset-prefix/_next/static/chunks/8e3d0ce9505a304f.js","/litellm-asset-prefix/_next/static/chunks/e1f23fd814ac3500.js","/litellm-asset-prefix/_next/static/chunks/88c74f8b4b20d25a.js","/litellm-asset-prefix/_next/static/chunks/99cf9cf99df5ccfc.js","/litellm-asset-prefix/_next/static/chunks/4980372eaa37b78b.js","/litellm-asset-prefix/_next/static/chunks/0cdfadbcf4b8c9e4.js","/litellm-asset-prefix/_next/static/chunks/8f3bf592254c6c3b.js","/litellm-asset-prefix/_next/static/chunks/8c17e934bd227606.js","/litellm-asset-prefix/_next/static/chunks/b98447395b5d37ef.js"],"default"]
8
+ 31:I[168027,[],"default"]
9
+ :HL["/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","style"]
10
+ :HL["/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","style"]
11
+ :HL["/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
12
+ :HL["/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css","style"]
13
+ 0:{"P":null,"b":"L07LLek3NGtynjTxlCdLS","c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_5972bc34-module__OU16Qa__className","children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L6",null,{"Component":"$7","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@8","$@9"]}}],[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/0493aafc4891dd29.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/f7e1d08418645368.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/b3d198d6c56a21b8.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/litellm-asset-prefix/_next/static/chunks/403c4d96324c23a6.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/litellm-asset-prefix/_next/static/chunks/37e77c06e99eb8ff.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/litellm-asset-prefix/_next/static/chunks/0549bc9afa7d4888.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/litellm-asset-prefix/_next/static/chunks/0b470ffc60999bf4.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/litellm-asset-prefix/_next/static/chunks/c847ecdf8c790b0b.js","async":true,"nonce":"$undefined"}],["$","script","script-9",{"src":"/litellm-asset-prefix/_next/static/chunks/baadbd26839e7b66.js","async":true,"nonce":"$undefined"}],["$","script","script-10",{"src":"/litellm-asset-prefix/_next/static/chunks/ee5f9a39a526e423.js","async":true,"nonce":"$undefined"}],["$","script","script-11",{"src":"/litellm-asset-prefix/_next/static/chunks/6eee262391715440.js","async":true,"nonce":"$undefined"}],["$","script","script-12",{"src":"/litellm-asset-prefix/_next/static/chunks/4e17b625d75327a7.js","async":true,"nonce":"$undefined"}],["$","script","script-13",{"src":"/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js","async":true,"nonce":"$undefined"}],["$","script","script-14",{"src":"/litellm-asset-prefix/_next/static/chunks/a06cc76a774dd182.js","async":true,"nonce":"$undefined"}],["$","script","script-15",{"src":"/litellm-asset-prefix/_next/static/chunks/264fd32eefec52b6.js","async":true,"nonce":"$undefined"}],"$La","$Lb","$Lc","$Ld","$Le","$Lf","$L10","$L11","$L12","$L13","$L14","$L15","$L16","$L17","$L18","$L19","$L1a","$L1b","$L1c","$L1d","$L1e","$L1f","$L20","$L21","$L22","$L23","$L24","$L25","$L26","$L27","$L28","$L29","$L2a","$L2b","$L2c","$L2d","$L2e"],"$L2f"]}],{},null,false,false]},null,false,false],"$L30",false]],"m":"$undefined","G":["$31",[]],"S":true}
14
+ 32:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"OutletBoundary"]
15
+ 33:"$Sreact.suspense"
16
+ 35:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ViewportBoundary"]
17
+ 37:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"MetadataBoundary"]
18
+ a:["$","script","script-16",{"src":"/litellm-asset-prefix/_next/static/chunks/86828bdbafb8b581.js","async":true,"nonce":"$undefined"}]
19
+ b:["$","script","script-17",{"src":"/litellm-asset-prefix/_next/static/chunks/10dc4591ef08a91f.js","async":true,"nonce":"$undefined"}]
20
+ c:["$","script","script-18",{"src":"/litellm-asset-prefix/_next/static/chunks/e099566e8bd4ee4e.js","async":true,"nonce":"$undefined"}]
21
+ d:["$","script","script-19",{"src":"/litellm-asset-prefix/_next/static/chunks/fbe12a36d22e9554.js","async":true,"nonce":"$undefined"}]
22
+ e:["$","script","script-20",{"src":"/litellm-asset-prefix/_next/static/chunks/2971c4658f1bcd7d.js","async":true,"nonce":"$undefined"}]
23
+ f:["$","script","script-21",{"src":"/litellm-asset-prefix/_next/static/chunks/134f728fa7099e3e.js","async":true,"nonce":"$undefined"}]
24
+ 10:["$","script","script-22",{"src":"/litellm-asset-prefix/_next/static/chunks/679dbd657c8b5aef.js","async":true,"nonce":"$undefined"}]
25
+ 11:["$","script","script-23",{"src":"/litellm-asset-prefix/_next/static/chunks/94f7208f5087e27c.js","async":true,"nonce":"$undefined"}]
26
+ 12:["$","script","script-24",{"src":"/litellm-asset-prefix/_next/static/chunks/43f6fc3c2ab9cf23.js","async":true,"nonce":"$undefined"}]
27
+ 13:["$","script","script-25",{"src":"/litellm-asset-prefix/_next/static/chunks/4e06277331e725da.js","async":true,"nonce":"$undefined"}]
28
+ 14:["$","script","script-26",{"src":"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js","async":true,"nonce":"$undefined"}]
29
+ 15:["$","script","script-27",{"src":"/litellm-asset-prefix/_next/static/chunks/ac3cf77acb5bf234.js","async":true,"nonce":"$undefined"}]
30
+ 16:["$","script","script-28",{"src":"/litellm-asset-prefix/_next/static/chunks/fb125648f2dae104.js","async":true,"nonce":"$undefined"}]
31
+ 17:["$","script","script-29",{"src":"/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js","async":true,"nonce":"$undefined"}]
32
+ 18:["$","script","script-30",{"src":"/litellm-asset-prefix/_next/static/chunks/a09028cd611c08ef.js","async":true,"nonce":"$undefined"}]
33
+ 19:["$","script","script-31",{"src":"/litellm-asset-prefix/_next/static/chunks/6967a3b4ecbd3785.js","async":true,"nonce":"$undefined"}]
34
+ 1a:["$","script","script-32",{"src":"/litellm-asset-prefix/_next/static/chunks/3e917c79aadd945b.js","async":true,"nonce":"$undefined"}]
35
+ 1b:["$","script","script-33",{"src":"/litellm-asset-prefix/_next/static/chunks/9bbebdeb3f1cb03f.js","async":true,"nonce":"$undefined"}]
36
+ 1c:["$","script","script-34",{"src":"/litellm-asset-prefix/_next/static/chunks/0a65da2cd24e2ab6.js","async":true,"nonce":"$undefined"}]
37
+ 1d:["$","script","script-35",{"src":"/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js","async":true,"nonce":"$undefined"}]
38
+ 1e:["$","script","script-36",{"src":"/litellm-asset-prefix/_next/static/chunks/5f2d62a75803a3f7.js","async":true,"nonce":"$undefined"}]
39
+ 1f:["$","script","script-37",{"src":"/litellm-asset-prefix/_next/static/chunks/ca5fbafaf3826374.js","async":true,"nonce":"$undefined"}]
40
+ 20:["$","script","script-38",{"src":"/litellm-asset-prefix/_next/static/chunks/d3ac82723ec9e30d.js","async":true,"nonce":"$undefined"}]
41
+ 21:["$","script","script-39",{"src":"/litellm-asset-prefix/_next/static/chunks/9b0ee76cbdef1a2a.js","async":true,"nonce":"$undefined"}]
42
+ 22:["$","script","script-40",{"src":"/litellm-asset-prefix/_next/static/chunks/1bc2898be56acd1b.js","async":true,"nonce":"$undefined"}]
43
+ 23:["$","script","script-41",{"src":"/litellm-asset-prefix/_next/static/chunks/fcdf7322b0aa3e2e.js","async":true,"nonce":"$undefined"}]
44
+ 24:["$","script","script-42",{"src":"/litellm-asset-prefix/_next/static/chunks/878832edb30e99a4.js","async":true,"nonce":"$undefined"}]
45
+ 25:["$","script","script-43",{"src":"/litellm-asset-prefix/_next/static/chunks/496b84010c33cf69.js","async":true,"nonce":"$undefined"}]
46
+ 26:["$","script","script-44",{"src":"/litellm-asset-prefix/_next/static/chunks/8e3d0ce9505a304f.js","async":true,"nonce":"$undefined"}]
47
+ 27:["$","script","script-45",{"src":"/litellm-asset-prefix/_next/static/chunks/e1f23fd814ac3500.js","async":true,"nonce":"$undefined"}]
48
+ 28:["$","script","script-46",{"src":"/litellm-asset-prefix/_next/static/chunks/88c74f8b4b20d25a.js","async":true,"nonce":"$undefined"}]
49
+ 29:["$","script","script-47",{"src":"/litellm-asset-prefix/_next/static/chunks/99cf9cf99df5ccfc.js","async":true,"nonce":"$undefined"}]
50
+ 2a:["$","script","script-48",{"src":"/litellm-asset-prefix/_next/static/chunks/4980372eaa37b78b.js","async":true,"nonce":"$undefined"}]
51
+ 2b:["$","script","script-49",{"src":"/litellm-asset-prefix/_next/static/chunks/0cdfadbcf4b8c9e4.js","async":true,"nonce":"$undefined"}]
52
+ 2c:["$","script","script-50",{"src":"/litellm-asset-prefix/_next/static/chunks/8f3bf592254c6c3b.js","async":true,"nonce":"$undefined"}]
53
+ 2d:["$","script","script-51",{"src":"/litellm-asset-prefix/_next/static/chunks/8c17e934bd227606.js","async":true,"nonce":"$undefined"}]
54
+ 2e:["$","script","script-52",{"src":"/litellm-asset-prefix/_next/static/chunks/b98447395b5d37ef.js","async":true,"nonce":"$undefined"}]
55
+ 2f:["$","$L32",null,{"children":["$","$33",null,{"name":"Next.MetadataOutlet","children":"$@34"}]}]
56
+ 30:["$","$1","h",{"children":[null,["$","$L35",null,{"children":"$L36"}],["$","div",null,{"hidden":true,"children":["$","$L37",null,{"children":["$","$33",null,{"name":"Next.Metadata","children":"$L38"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}]
57
+ 8:{}
58
+ 9:"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params"
59
+ 36:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
60
+ 39:I[27201,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"IconMark"]
61
+ 34:null
62
+ 38:[["$","title","0",{"children":"LiteLLM Dashboard"}],["$","meta","1",{"name":"description","content":"LiteLLM Proxy Admin UI"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.1d32c690.ico","sizes":"48x48","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"./favicon.ico"}],["$","$L39","4",{}]]
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/__next._head.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ 1:"$Sreact.fragment"
2
+ 2:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ViewportBoundary"]
3
+ 3:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"MetadataBoundary"]
4
+ 4:"$Sreact.suspense"
5
+ 5:I[27201,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"IconMark"]
6
+ 0:{"buildId":"L07LLek3NGtynjTxlCdLS","rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"LiteLLM Dashboard"}],["$","meta","1",{"name":"description","content":"LiteLLM Proxy Admin UI"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.1d32c690.ico","sizes":"48x48","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"./favicon.ico"}],["$","$L5","4",{}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"loading":null,"isPartial":false}
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/__next._index.txt ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ 1:"$Sreact.fragment"
2
+ 2:I[867271,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
3
+ 3:I[71195,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
4
+ 4:I[339756,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
5
+ 5:I[837457,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
6
+ :HL["/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","style"]
7
+ :HL["/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","style"]
8
+ 0:{"buildId":"L07LLek3NGtynjTxlCdLS","rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","precedence":"next"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","async":true}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","async":true}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_5972bc34-module__OU16Qa__className","children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","template":["$","$L5",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}]}]}]}]]}],"loading":null,"isPartial":false}
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/__next._tree.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ :HL["/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","style"]
2
+ :HL["/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","style"]
3
+ :HL["/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
4
+ :HL["/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css","style"]
5
+ 0:{"buildId":"L07LLek3NGtynjTxlCdLS","tree":{"name":"","paramType":null,"paramKey":"","hasRuntimePrefetch":false,"slots":{"children":{"name":"__PAGE__","paramType":null,"paramKey":"__PAGE__","hasRuntimePrefetch":false,"slots":null,"isRootLayout":false}},"isRootLayout":true},"staleTime":300}
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/_not-found.html ADDED
@@ -0,0 +1 @@
 
 
1
+ <!DOCTYPE html><!--L07LLek3NGtynjTxlCdLS--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css" data-precedence="next"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js"/><script src="/litellm-asset-prefix/_next/static/chunks/1300460219810c10.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/e96398764f77c728.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/726579f2940c2a2f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/turbopack-ddedb29a5eb0118f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>LiteLLM Dashboard</title><meta name="description" content="LiteLLM Proxy Admin UI"/><link rel="icon" href="/favicon.ico?favicon.1d32c690.ico" sizes="48x48" type="image/x-icon"/><link rel="icon" href="./favicon.ico"/><script src="/litellm-asset-prefix/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="inter_5972bc34-module__OU16Qa__className"><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[867271,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n3:I[71195,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n4:I[339756,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n5:I[837457,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n6:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"OutletBoundary\"]\n7:\"$Sreact.suspense\"\n9:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ViewportBoundary\"]\nb:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"MetadataBoundary\"]\nd:I[168027,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"L07LLek3NGtynjTxlCdLS\",\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"inter_5972bc34-module__OU16Qa__className\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$7\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@8\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L9\",null,{\"children\":\"$La\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"$7\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lc\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"e:I[27201,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"IconMark\"]\n8:null\nc:[[\"$\",\"title\",\"0\",{\"children\":\"LiteLLM Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"LiteLLM Proxy Admin UI\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.1d32c690.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"./favicon.ico\"}],[\"$\",\"$Le\",\"4\",{}]]\n"])</script></body></html>
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/_not-found.txt ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1:"$Sreact.fragment"
2
+ 2:I[867271,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
3
+ 3:I[71195,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
4
+ 4:I[339756,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
5
+ 5:I[837457,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
6
+ 6:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"OutletBoundary"]
7
+ 7:"$Sreact.suspense"
8
+ 9:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ViewportBoundary"]
9
+ b:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"MetadataBoundary"]
10
+ d:I[168027,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
11
+ :HL["/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","style"]
12
+ :HL["/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","style"]
13
+ 0:{"P":null,"b":"L07LLek3NGtynjTxlCdLS","c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_5972bc34-module__OU16Qa__className","children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L9",null,{"children":"$La"}],["$","div",null,{"hidden":true,"children":["$","$Lb",null,{"children":["$","$7",null,{"name":"Next.Metadata","children":"$Lc"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$d","$undefined"],"S":true}
14
+ a:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
15
+ e:I[27201,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"IconMark"]
16
+ 8:null
17
+ c:[["$","title","0",{"children":"LiteLLM Dashboard"}],["$","meta","1",{"name":"description","content":"LiteLLM Proxy Admin UI"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.1d32c690.ico","sizes":"48x48","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"./favicon.ico"}],["$","$Le","4",{}]]
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/api-reference.html ADDED
@@ -0,0 +1 @@
 
 
1
+ <!DOCTYPE html><!--L07LLek3NGtynjTxlCdLS--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css" data-precedence="next"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js"/><script src="/litellm-asset-prefix/_next/static/chunks/1300460219810c10.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/e96398764f77c728.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/726579f2940c2a2f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/turbopack-ddedb29a5eb0118f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/2a5f4a7388e54210.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/6c4c97f1ea6e7d77.js" async=""></script><meta name="next-size-adjust" content=""/><title>LiteLLM Dashboard</title><meta name="description" content="LiteLLM Proxy Admin UI"/><link rel="icon" href="/favicon.ico?favicon.1d32c690.ico" sizes="48x48" type="image/x-icon"/><link rel="icon" href="./favicon.ico"/><script src="/litellm-asset-prefix/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="inter_5972bc34-module__OU16Qa__className"><div hidden=""><!--$--><!--/$--></div><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><div class="flex items-center justify-center min-h-screen">Loading...</div><!--/$--><script src="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[867271,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n3:I[71195,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n4:I[339756,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n5:I[837457,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n6:I[92825,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ClientSegmentRoot\"]\n7:I[216370,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js\",\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js\",\"/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js\",\"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js\",\"/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js\",\"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js\",\"/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js\",\"/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js\"],\"default\"]\nc:I[168027,[],\"default\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"L07LLek3NGtynjTxlCdLS\",\"c\":[\"\",\"api-reference\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"(dashboard)\",{\"children\":[\"api-reference\",{\"children\":[\"__PAGE__\",{}]}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"inter_5972bc34-module__OU16Qa__className\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-6\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-7\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-8\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L6\",null,{\"Component\":\"$7\",\"slots\":{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]},\"serverProvidedParams\":{\"params\":{},\"promises\":[\"$@8\"]}}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":\"$L9\",\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"$La\",{},null,false,false]},null,false,false]},null,false,false]},null,false,false],\"$Lb\",false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"d:I[347257,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ClientPageRoot\"]\ne:I[191905,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js\",\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js\",\"/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js\",\"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js\",\"/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js\",\"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js\",\"/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js\",\"/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js\",\"/litellm-asset-prefix/_next/static/chunks/2a5f4a7388e54210.js\",\"/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js\",\"/litellm-asset-prefix/_next/static/chunks/6c4c97f1ea6e7d77.js\"],\"default\"]\n11:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"OutletBoundary\"]\n12:\"$Sreact.suspense\"\n14:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ViewportBoundary\"]\n16:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"MetadataBoundary\"]\n9:[\"$\",\"$L5\",null,{}]\na:[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$Ld\",null,{\"Component\":\"$e\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":\"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params\",\"promises\":[\"$@f\",\"$@10\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/2a5f4a7388e54210.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/6c4c97f1ea6e7d77.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L11\",null,{\"children\":[\"$\",\"$12\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@13\"}]}]]}]\nb:[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L14\",null,{\"children\":\"$L15\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L16\",null,{\"children\":[\"$\",\"$12\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L17\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}]\n8:\"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"f:{}\n10:\"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"15:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"18:I[27201,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"IconMark\"]\n13:null\n17:[[\"$\",\"title\",\"0\",{\"children\":\"LiteLLM Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"LiteLLM Proxy Admin UI\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.1d32c690.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"./favicon.ico\"}],[\"$\",\"$L18\",\"4\",{}]]\n"])</script></body></html>
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/api-reference.txt ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1:"$Sreact.fragment"
2
+ 2:I[867271,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
3
+ 3:I[71195,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
4
+ 4:I[339756,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
5
+ 5:I[837457,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
6
+ 6:I[92825,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ClientSegmentRoot"]
7
+ 7:I[216370,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js","/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js","/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js","/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js","/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js","/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js","/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js","/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js","/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js"],"default"]
8
+ c:I[168027,[],"default"]
9
+ :HL["/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","style"]
10
+ :HL["/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","style"]
11
+ :HL["/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
12
+ 0:{"P":null,"b":"L07LLek3NGtynjTxlCdLS","c":["","api-reference"],"q":"","i":false,"f":[[["",{"children":["(dashboard)",{"children":["api-reference",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_5972bc34-module__OU16Qa__className","children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[[["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js","async":true,"nonce":"$undefined"}]],["$","$L6",null,{"Component":"$7","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"serverProvidedParams":{"params":{},"promises":["$@8"]}}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":"$L9","templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["$La",{},null,false,false]},null,false,false]},null,false,false]},null,false,false],"$Lb",false]],"m":"$undefined","G":["$c",[]],"S":true}
13
+ d:I[347257,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ClientPageRoot"]
14
+ e:I[191905,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js","/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js","/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js","/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js","/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js","/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js","/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js","/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js","/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js","/litellm-asset-prefix/_next/static/chunks/2a5f4a7388e54210.js","/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js","/litellm-asset-prefix/_next/static/chunks/6c4c97f1ea6e7d77.js"],"default"]
15
+ 11:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"OutletBoundary"]
16
+ 12:"$Sreact.suspense"
17
+ 14:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ViewportBoundary"]
18
+ 16:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"MetadataBoundary"]
19
+ 9:["$","$L5",null,{}]
20
+ a:["$","$1","c",{"children":[["$","$Ld",null,{"Component":"$e","serverProvidedParams":{"searchParams":{},"params":"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params","promises":["$@f","$@10"]}}],[["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/2a5f4a7388e54210.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/6c4c97f1ea6e7d77.js","async":true,"nonce":"$undefined"}]],["$","$L11",null,{"children":["$","$12",null,{"name":"Next.MetadataOutlet","children":"$@13"}]}]]}]
21
+ b:["$","$1","h",{"children":[null,["$","$L14",null,{"children":"$L15"}],["$","div",null,{"hidden":true,"children":["$","$L16",null,{"children":["$","$12",null,{"name":"Next.Metadata","children":"$L17"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}]
22
+ 8:"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params"
23
+ f:{}
24
+ 10:"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params"
25
+ 15:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
26
+ 18:I[27201,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"IconMark"]
27
+ 13:null
28
+ 17:[["$","title","0",{"children":"LiteLLM Dashboard"}],["$","meta","1",{"name":"description","content":"LiteLLM Proxy Admin UI"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.1d32c690.ico","sizes":"48x48","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"./favicon.ico"}],["$","$L18","4",{}]]
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/chat.html ADDED
@@ -0,0 +1 @@
 
 
1
+ <!DOCTYPE html><!--L07LLek3NGtynjTxlCdLS--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css" data-precedence="next"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js"/><script src="/litellm-asset-prefix/_next/static/chunks/1300460219810c10.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/e96398764f77c728.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/726579f2940c2a2f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/turbopack-ddedb29a5eb0118f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/6ec1a92c34e842cb.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/8b6eb21a51b719e1.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/4980372eaa37b78b.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/119ecee91f911bc8.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/ac3cf77acb5bf234.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/fcdf7322b0aa3e2e.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/088fea506f07e1cd.js" async=""></script><meta name="next-size-adjust" content=""/><title>LiteLLM Dashboard</title><meta name="description" content="LiteLLM Proxy Admin UI"/><link rel="icon" href="/favicon.ico?favicon.1d32c690.ico" sizes="48x48" type="image/x-icon"/><link rel="icon" href="./favicon.ico"/><script src="/litellm-asset-prefix/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="inter_5972bc34-module__OU16Qa__className"><div hidden=""><!--$--><!--/$--></div><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><!--$--><!--/$--><script src="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[867271,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n3:I[71195,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n4:I[339756,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n5:I[837457,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n6:I[347257,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ClientPageRoot\"]\n7:I[321443,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"/litellm-asset-prefix/_next/static/chunks/6ec1a92c34e842cb.js\",\"/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js\",\"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js\",\"/litellm-asset-prefix/_next/static/chunks/8b6eb21a51b719e1.js\",\"/litellm-asset-prefix/_next/static/chunks/4980372eaa37b78b.js\",\"/litellm-asset-prefix/_next/static/chunks/119ecee91f911bc8.js\",\"/litellm-asset-prefix/_next/static/chunks/ac3cf77acb5bf234.js\",\"/litellm-asset-prefix/_next/static/chunks/fcdf7322b0aa3e2e.js\",\"/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js\",\"/litellm-asset-prefix/_next/static/chunks/088fea506f07e1cd.js\"],\"default\"]\na:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"OutletBoundary\"]\nb:\"$Sreact.suspense\"\nd:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ViewportBoundary\"]\nf:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"MetadataBoundary\"]\n11:I[168027,[],\"default\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"L07LLek3NGtynjTxlCdLS\",\"c\":[\"\",\"chat\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"chat\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"inter_5972bc34-module__OU16Qa__className\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L6\",null,{\"Component\":\"$7\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{},\"promises\":[\"$@8\",\"$@9\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/6ec1a92c34e842cb.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/8b6eb21a51b719e1.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/4980372eaa37b78b.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-6\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/119ecee91f911bc8.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-7\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/ac3cf77acb5bf234.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-8\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/fcdf7322b0aa3e2e.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-9\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-10\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/088fea506f07e1cd.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$La\",null,{\"children\":[\"$\",\"$b\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@c\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Ld\",null,{\"children\":\"$Le\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lf\",null,{\"children\":[\"$\",\"$b\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L10\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$11\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:{}\n9:\"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"e:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"12:I[27201,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"IconMark\"]\nc:null\n10:[[\"$\",\"title\",\"0\",{\"children\":\"LiteLLM Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"LiteLLM Proxy Admin UI\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.1d32c690.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"./favicon.ico\"}],[\"$\",\"$L12\",\"4\",{}]]\n"])</script></body></html>
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/chat.txt ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1:"$Sreact.fragment"
2
+ 2:I[867271,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
3
+ 3:I[71195,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
4
+ 4:I[339756,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
5
+ 5:I[837457,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
6
+ 6:I[347257,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ClientPageRoot"]
7
+ 7:I[321443,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js","/litellm-asset-prefix/_next/static/chunks/6ec1a92c34e842cb.js","/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js","/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js","/litellm-asset-prefix/_next/static/chunks/8b6eb21a51b719e1.js","/litellm-asset-prefix/_next/static/chunks/4980372eaa37b78b.js","/litellm-asset-prefix/_next/static/chunks/119ecee91f911bc8.js","/litellm-asset-prefix/_next/static/chunks/ac3cf77acb5bf234.js","/litellm-asset-prefix/_next/static/chunks/fcdf7322b0aa3e2e.js","/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js","/litellm-asset-prefix/_next/static/chunks/088fea506f07e1cd.js"],"default"]
8
+ a:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"OutletBoundary"]
9
+ b:"$Sreact.suspense"
10
+ d:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ViewportBoundary"]
11
+ f:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"MetadataBoundary"]
12
+ 11:I[168027,[],"default"]
13
+ :HL["/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","style"]
14
+ :HL["/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","style"]
15
+ :HL["/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
16
+ 0:{"P":null,"b":"L07LLek3NGtynjTxlCdLS","c":["","chat"],"q":"","i":false,"f":[[["",{"children":["chat",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_5972bc34-module__OU16Qa__className","children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","$L6",null,{"Component":"$7","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@8","$@9"]}}],[["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/6ec1a92c34e842cb.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/litellm-asset-prefix/_next/static/chunks/8b6eb21a51b719e1.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/litellm-asset-prefix/_next/static/chunks/4980372eaa37b78b.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/litellm-asset-prefix/_next/static/chunks/119ecee91f911bc8.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/litellm-asset-prefix/_next/static/chunks/ac3cf77acb5bf234.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/litellm-asset-prefix/_next/static/chunks/fcdf7322b0aa3e2e.js","async":true,"nonce":"$undefined"}],["$","script","script-9",{"src":"/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js","async":true,"nonce":"$undefined"}],["$","script","script-10",{"src":"/litellm-asset-prefix/_next/static/chunks/088fea506f07e1cd.js","async":true,"nonce":"$undefined"}]],["$","$La",null,{"children":["$","$b",null,{"name":"Next.MetadataOutlet","children":"$@c"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Ld",null,{"children":"$Le"}],["$","div",null,{"hidden":true,"children":["$","$Lf",null,{"children":["$","$b",null,{"name":"Next.Metadata","children":"$L10"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$11",[]],"S":true}
17
+ 8:{}
18
+ 9:"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params"
19
+ e:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
20
+ 12:I[27201,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"IconMark"]
21
+ c:null
22
+ 10:[["$","title","0",{"children":"LiteLLM Dashboard"}],["$","meta","1",{"name":"description","content":"LiteLLM Proxy Admin UI"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.1d32c690.ico","sizes":"48x48","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"./favicon.ico"}],["$","$L12","4",{}]]
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/favicon.ico ADDED
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/guardrails.html ADDED
@@ -0,0 +1 @@
 
 
1
+ <!DOCTYPE html><!--L07LLek3NGtynjTxlCdLS--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css" data-precedence="next"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js"/><script src="/litellm-asset-prefix/_next/static/chunks/1300460219810c10.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/e96398764f77c728.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/726579f2940c2a2f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/turbopack-ddedb29a5eb0118f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/cbfd53da3104be2a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/92cf5d832080641f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/bde2340071127430.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/95b1023fa868f012.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/54da342a06baf122.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/171a03c36a999407.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/6c4c97f1ea6e7d77.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/e2e17b99dc4f7bfa.js" async=""></script><meta name="next-size-adjust" content=""/><title>LiteLLM Dashboard</title><meta name="description" content="LiteLLM Proxy Admin UI"/><link rel="icon" href="/favicon.ico?favicon.1d32c690.ico" sizes="48x48" type="image/x-icon"/><link rel="icon" href="./favicon.ico"/><script src="/litellm-asset-prefix/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="inter_5972bc34-module__OU16Qa__className"><div hidden=""><!--$--><!--/$--></div><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><div class="flex items-center justify-center min-h-screen">Loading...</div><!--/$--><script src="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[867271,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n3:I[71195,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n4:I[339756,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n5:I[837457,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n6:I[92825,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ClientSegmentRoot\"]\n7:I[216370,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js\",\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js\",\"/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js\",\"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js\",\"/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js\",\"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js\",\"/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js\",\"/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js\"],\"default\"]\nb:I[168027,[],\"default\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"L07LLek3NGtynjTxlCdLS\",\"c\":[\"\",\"guardrails\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"(dashboard)\",{\"children\":[\"guardrails\",{\"children\":[\"__PAGE__\",{}]}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"inter_5972bc34-module__OU16Qa__className\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-6\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-7\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-8\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L6\",null,{\"Component\":\"$7\",\"slots\":{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]},\"serverProvidedParams\":{\"params\":{},\"promises\":[\"$@8\"]}}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"$L9\",{},null,false,false]},null,false,false]},null,false,false]},null,false,false],\"$La\",false]],\"m\":\"$undefined\",\"G\":[\"$b\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"c:I[347257,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ClientPageRoot\"]\n"])</script><script>self.__next_f.push([1,"d:I[509345,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js\",\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js\",\"/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js\",\"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js\",\"/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js\",\"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js\",\"/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js\",\"/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js\",\"/litellm-asset-prefix/_next/static/chunks/cbfd53da3104be2a.js\",\"/litellm-asset-prefix/_next/static/chunks/92cf5d832080641f.js\",\"/litellm-asset-prefix/_next/static/chunks/bde2340071127430.js\",\"/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js\",\"/litellm-asset-prefix/_next/static/chunks/95b1023fa868f012.js\",\"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js\",\"/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js\",\"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js\",\"/litellm-asset-prefix/_next/static/chunks/54da342a06baf122.js\",\"/litellm-asset-prefix/_next/static/chunks/171a03c36a999407.js\",\"/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js\",\"/litellm-asset-prefix/_next/static/chunks/6c4c97f1ea6e7d77.js\",\"/litellm-asset-prefix/_next/static/chunks/e2e17b99dc4f7bfa.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"10:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"OutletBoundary\"]\n11:\"$Sreact.suspense\"\n13:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ViewportBoundary\"]\n15:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"MetadataBoundary\"]\n"])</script><script>self.__next_f.push([1,"9:[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$Lc\",null,{\"Component\":\"$d\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":\"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params\",\"promises\":[\"$@e\",\"$@f\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/cbfd53da3104be2a.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/92cf5d832080641f.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/bde2340071127430.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/95b1023fa868f012.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-6\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-7\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-8\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/54da342a06baf122.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-9\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/171a03c36a999407.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-10\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-11\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/6c4c97f1ea6e7d77.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-12\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/e2e17b99dc4f7bfa.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L10\",null,{\"children\":[\"$\",\"$11\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@12\"}]}]]}]\n"])</script><script>self.__next_f.push([1,"a:[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L13\",null,{\"children\":\"$L14\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L15\",null,{\"children\":[\"$\",\"$11\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L16\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}]\n8:\"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"e:{}\nf:\"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"14:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"17:I[27201,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"IconMark\"]\n12:null\n16:[[\"$\",\"title\",\"0\",{\"children\":\"LiteLLM Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"LiteLLM Proxy Admin UI\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.1d32c690.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"./favicon.ico\"}],[\"$\",\"$L17\",\"4\",{}]]\n"])</script></body></html>
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/guardrails.txt ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1:"$Sreact.fragment"
2
+ 2:I[867271,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
3
+ 3:I[71195,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
4
+ 4:I[339756,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
5
+ 5:I[837457,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
6
+ 6:I[92825,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ClientSegmentRoot"]
7
+ 7:I[216370,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js","/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js","/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js","/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js","/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js","/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js","/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js","/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js","/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js"],"default"]
8
+ b:I[168027,[],"default"]
9
+ :HL["/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","style"]
10
+ :HL["/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","style"]
11
+ :HL["/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
12
+ 0:{"P":null,"b":"L07LLek3NGtynjTxlCdLS","c":["","guardrails"],"q":"","i":false,"f":[[["",{"children":["(dashboard)",{"children":["guardrails",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_5972bc34-module__OU16Qa__className","children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[[["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js","async":true,"nonce":"$undefined"}]],["$","$L6",null,{"Component":"$7","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"serverProvidedParams":{"params":{},"promises":["$@8"]}}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["$L9",{},null,false,false]},null,false,false]},null,false,false]},null,false,false],"$La",false]],"m":"$undefined","G":["$b",[]],"S":true}
13
+ c:I[347257,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ClientPageRoot"]
14
+ d:I[509345,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js","/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js","/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js","/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js","/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js","/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js","/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js","/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js","/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js","/litellm-asset-prefix/_next/static/chunks/cbfd53da3104be2a.js","/litellm-asset-prefix/_next/static/chunks/92cf5d832080641f.js","/litellm-asset-prefix/_next/static/chunks/bde2340071127430.js","/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js","/litellm-asset-prefix/_next/static/chunks/95b1023fa868f012.js","/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js","/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js","/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js","/litellm-asset-prefix/_next/static/chunks/54da342a06baf122.js","/litellm-asset-prefix/_next/static/chunks/171a03c36a999407.js","/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js","/litellm-asset-prefix/_next/static/chunks/6c4c97f1ea6e7d77.js","/litellm-asset-prefix/_next/static/chunks/e2e17b99dc4f7bfa.js"],"default"]
15
+ 10:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"OutletBoundary"]
16
+ 11:"$Sreact.suspense"
17
+ 13:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ViewportBoundary"]
18
+ 15:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"MetadataBoundary"]
19
+ 9:["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","serverProvidedParams":{"searchParams":{},"params":"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params","promises":["$@e","$@f"]}}],[["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/cbfd53da3104be2a.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/92cf5d832080641f.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/bde2340071127430.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/litellm-asset-prefix/_next/static/chunks/95b1023fa868f012.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/litellm-asset-prefix/_next/static/chunks/54da342a06baf122.js","async":true,"nonce":"$undefined"}],["$","script","script-9",{"src":"/litellm-asset-prefix/_next/static/chunks/171a03c36a999407.js","async":true,"nonce":"$undefined"}],["$","script","script-10",{"src":"/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js","async":true,"nonce":"$undefined"}],["$","script","script-11",{"src":"/litellm-asset-prefix/_next/static/chunks/6c4c97f1ea6e7d77.js","async":true,"nonce":"$undefined"}],["$","script","script-12",{"src":"/litellm-asset-prefix/_next/static/chunks/e2e17b99dc4f7bfa.js","async":true,"nonce":"$undefined"}]],["$","$L10",null,{"children":["$","$11",null,{"name":"Next.MetadataOutlet","children":"$@12"}]}]]}]
20
+ a:["$","$1","h",{"children":[null,["$","$L13",null,{"children":"$L14"}],["$","div",null,{"hidden":true,"children":["$","$L15",null,{"children":["$","$11",null,{"name":"Next.Metadata","children":"$L16"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}]
21
+ 8:"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params"
22
+ e:{}
23
+ f:"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params"
24
+ 14:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
25
+ 17:I[27201,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"IconMark"]
26
+ 12:null
27
+ 16:[["$","title","0",{"children":"LiteLLM Dashboard"}],["$","meta","1",{"name":"description","content":"LiteLLM Proxy Admin UI"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.1d32c690.ico","sizes":"48x48","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"./favicon.ico"}],["$","$L17","4",{}]]
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/index.html ADDED
@@ -0,0 +1 @@
 
 
1
+ <!DOCTYPE html><!--L07LLek3NGtynjTxlCdLS--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css" data-precedence="next"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css" data-precedence="next"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js"/><script src="/litellm-asset-prefix/_next/static/chunks/1300460219810c10.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/e96398764f77c728.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/726579f2940c2a2f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/turbopack-ddedb29a5eb0118f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/0493aafc4891dd29.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/f7e1d08418645368.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/b3d198d6c56a21b8.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/403c4d96324c23a6.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/37e77c06e99eb8ff.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/0549bc9afa7d4888.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/0b470ffc60999bf4.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/c847ecdf8c790b0b.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/baadbd26839e7b66.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/ee5f9a39a526e423.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/6eee262391715440.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/4e17b625d75327a7.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/a06cc76a774dd182.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/264fd32eefec52b6.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/86828bdbafb8b581.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/10dc4591ef08a91f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/e099566e8bd4ee4e.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/fbe12a36d22e9554.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/2971c4658f1bcd7d.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/134f728fa7099e3e.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/679dbd657c8b5aef.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/94f7208f5087e27c.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/43f6fc3c2ab9cf23.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/4e06277331e725da.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/ac3cf77acb5bf234.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/fb125648f2dae104.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/a09028cd611c08ef.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/6967a3b4ecbd3785.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/3e917c79aadd945b.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/9bbebdeb3f1cb03f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/0a65da2cd24e2ab6.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/5f2d62a75803a3f7.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/ca5fbafaf3826374.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/d3ac82723ec9e30d.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/9b0ee76cbdef1a2a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/1bc2898be56acd1b.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/fcdf7322b0aa3e2e.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/878832edb30e99a4.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/496b84010c33cf69.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/8e3d0ce9505a304f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/e1f23fd814ac3500.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/88c74f8b4b20d25a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/99cf9cf99df5ccfc.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/4980372eaa37b78b.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/0cdfadbcf4b8c9e4.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/8f3bf592254c6c3b.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/8c17e934bd227606.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/b98447395b5d37ef.js" async=""></script><meta name="next-size-adjust" content=""/><title>LiteLLM Dashboard</title><meta name="description" content="LiteLLM Proxy Admin UI"/><link rel="icon" href="/favicon.ico?favicon.1d32c690.ico" sizes="48x48" type="image/x-icon"/><link rel="icon" href="./favicon.ico"/><script src="/litellm-asset-prefix/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="inter_5972bc34-module__OU16Qa__className"><div hidden=""><!--$--><!--/$--></div><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><div class="h-screen flex items-center justify-center gap-4"><div class="text-lg font-medium py-2 pr-4 border-r border-r-gray-200">🚅 LiteLLM</div><div class="flex items-center justify-center gap-2"><svg data-spinner-id="_R_pbvb_" class="pointer-events-none animate-spin text-current size-4" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg><span class="text-gray-600 text-sm">Loading...</span></div></div><!--/$--><!--$--><!--/$--><script src="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[867271,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n3:I[71195,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n4:I[339756,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n5:I[837457,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n6:I[347257,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ClientPageRoot\"]\n"])</script><script>self.__next_f.push([1,"7:I[952683,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"/litellm-asset-prefix/_next/static/chunks/0493aafc4891dd29.js\",\"/litellm-asset-prefix/_next/static/chunks/f7e1d08418645368.js\",\"/litellm-asset-prefix/_next/static/chunks/b3d198d6c56a21b8.js\",\"/litellm-asset-prefix/_next/static/chunks/403c4d96324c23a6.js\",\"/litellm-asset-prefix/_next/static/chunks/37e77c06e99eb8ff.js\",\"/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js\",\"/litellm-asset-prefix/_next/static/chunks/0549bc9afa7d4888.js\",\"/litellm-asset-prefix/_next/static/chunks/0b470ffc60999bf4.js\",\"/litellm-asset-prefix/_next/static/chunks/c847ecdf8c790b0b.js\",\"/litellm-asset-prefix/_next/static/chunks/baadbd26839e7b66.js\",\"/litellm-asset-prefix/_next/static/chunks/ee5f9a39a526e423.js\",\"/litellm-asset-prefix/_next/static/chunks/6eee262391715440.js\",\"/litellm-asset-prefix/_next/static/chunks/4e17b625d75327a7.js\",\"/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js\",\"/litellm-asset-prefix/_next/static/chunks/a06cc76a774dd182.js\",\"/litellm-asset-prefix/_next/static/chunks/264fd32eefec52b6.js\",\"/litellm-asset-prefix/_next/static/chunks/86828bdbafb8b581.js\",\"/litellm-asset-prefix/_next/static/chunks/10dc4591ef08a91f.js\",\"/litellm-asset-prefix/_next/static/chunks/e099566e8bd4ee4e.js\",\"/litellm-asset-prefix/_next/static/chunks/fbe12a36d22e9554.js\",\"/litellm-asset-prefix/_next/static/chunks/2971c4658f1bcd7d.js\",\"/litellm-asset-prefix/_next/static/chunks/134f728fa7099e3e.js\",\"/litellm-asset-prefix/_next/static/chunks/679dbd657c8b5aef.js\",\"/litellm-asset-prefix/_next/static/chunks/94f7208f5087e27c.js\",\"/litellm-asset-prefix/_next/static/chunks/43f6fc3c2ab9cf23.js\",\"/litellm-asset-prefix/_next/static/chunks/4e06277331e725da.js\",\"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js\",\"/litellm-asset-prefix/_next/static/chunks/ac3cf77acb5bf234.js\",\"/litellm-asset-prefix/_next/static/chunks/fb125648f2dae104.js\",\"/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js\",\"/litellm-asset-prefix/_next/static/chunks/a09028cd611c08ef.js\",\"/litellm-asset-prefix/_next/static/chunks/6967a3b4ecbd3785.js\",\"/litellm-asset-prefix/_next/static/chunks/3e917c79aadd945b.js\",\"/litellm-asset-prefix/_next/static/chunks/9bbebdeb3f1cb03f.js\",\"/litellm-asset-prefix/_next/static/chunks/0a65da2cd24e2ab6.js\",\"/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js\",\"/litellm-asset-prefix/_next/static/chunks/5f2d62a75803a3f7.js\",\"/litellm-asset-prefix/_next/static/chunks/ca5fbafaf3826374.js\",\"/litellm-asset-prefix/_next/static/chunks/d3ac82723ec9e30d.js\",\"/litellm-asset-prefix/_next/static/chunks/9b0ee76cbdef1a2a.js\",\"/litellm-asset-prefix/_next/static/chunks/1bc2898be56acd1b.js\",\"/litellm-asset-prefix/_next/static/chunks/fcdf7322b0aa3e2e.js\",\"/litellm-asset-prefix/_next/static/chunks/878832edb30e99a4.js\",\"/litellm-asset-prefix/_next/static/chunks/496b84010c33cf69.js\",\"/litellm-asset-prefix/_next/static/chunks/8e3d0ce9505a304f.js\",\"/litellm-asset-prefix/_next/static/chunks/e1f23fd814ac3500.js\",\"/litellm-asset-prefix/_next/static/chunks/88c74f8b4b20d25a.js\",\"/litellm-asset-prefix/_next/static/chunks/99cf9cf99df5ccfc.js\",\"/litellm-asset-prefix/_next/static/chunks/4980372eaa37b78b.js\",\"/litellm-asset-prefix/_next/static/chunks/0cdfadbcf4b8c9e4.js\",\"/litellm-asset-prefix/_next/static/chunks/8f3bf592254c6c3b.js\",\"/litellm-asset-prefix/_next/static/chunks/8c17e934bd227606.js\",\"/litellm-asset-prefix/_next/static/chunks/b98447395b5d37ef.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"31:I[168027,[],\"default\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"L07LLek3NGtynjTxlCdLS\",\"c\":[\"\",\"\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"inter_5972bc34-module__OU16Qa__className\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L6\",null,{\"Component\":\"$7\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{},\"promises\":[\"$@8\",\"$@9\"]}}],[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/0493aafc4891dd29.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/f7e1d08418645368.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/b3d198d6c56a21b8.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/403c4d96324c23a6.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/37e77c06e99eb8ff.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-6\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/0549bc9afa7d4888.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-7\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/0b470ffc60999bf4.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-8\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/c847ecdf8c790b0b.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-9\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/baadbd26839e7b66.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-10\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/ee5f9a39a526e423.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-11\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/6eee262391715440.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-12\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/4e17b625d75327a7.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-13\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-14\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/a06cc76a774dd182.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-15\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/264fd32eefec52b6.js\",\"async\":true,\"nonce\":\"$undefined\"}],\"$La\",\"$Lb\",\"$Lc\",\"$Ld\",\"$Le\",\"$Lf\",\"$L10\",\"$L11\",\"$L12\",\"$L13\",\"$L14\",\"$L15\",\"$L16\",\"$L17\",\"$L18\",\"$L19\",\"$L1a\",\"$L1b\",\"$L1c\",\"$L1d\",\"$L1e\",\"$L1f\",\"$L20\",\"$L21\",\"$L22\",\"$L23\",\"$L24\",\"$L25\",\"$L26\",\"$L27\",\"$L28\",\"$L29\",\"$L2a\",\"$L2b\",\"$L2c\",\"$L2d\",\"$L2e\"],\"$L2f\"]}],{},null,false,false]},null,false,false],\"$L30\",false]],\"m\":\"$undefined\",\"G\":[\"$31\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"32:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"OutletBoundary\"]\n33:\"$Sreact.suspense\"\n35:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ViewportBoundary\"]\n37:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"MetadataBoundary\"]\na:[\"$\",\"script\",\"script-16\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/86828bdbafb8b581.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nb:[\"$\",\"script\",\"script-17\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/10dc4591ef08a91f.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nc:[\"$\",\"script\",\"script-18\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/e099566e8bd4ee4e.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nd:[\"$\",\"script\",\"script-19\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/fbe12a36d22e9554.js\",\"async\":true,\"nonce\":\"$undefined\"}]\ne:[\"$\",\"script\",\"script-20\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/2971c4658f1bcd7d.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nf:[\"$\",\"script\",\"script-21\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/134f728fa7099e3e.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n10:[\"$\",\"script\",\"script-22\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/679dbd657c8b5aef.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n11:[\"$\",\"script\",\"script-23\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/94f7208f5087e27c.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n12:[\"$\",\"script\",\"script-24\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/43f6fc3c2ab9cf23.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n13:[\"$\",\"script\",\"script-25\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/4e06277331e725da.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n14:[\"$\",\"script\",\"script-26\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n15:[\"$\",\"script\",\"script-27\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/ac3cf77acb5bf234.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n16:[\"$\",\"script\",\"script-28\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/fb125648f2dae104.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n17:[\"$\",\"script\",\"script-29\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n18:[\"$\",\"script\",\"script-30\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/a09028cd611c08ef.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n19:[\"$\",\"script\",\"script-31\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/6967a3b4ecbd3785.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n1a:[\"$\",\"script\",\"script-32\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/3e917c79aadd945b.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n1b:[\"$\",\"script\",\"script-33\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/9bbebdeb3f1cb03f.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n1c:[\"$\",\"script\",\"script-34\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/0a65da2cd24e2ab6.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n1d:[\"$\",\"script\",\"script-35\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n1e:[\"$\",\"script\",\"script-36\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/5f2d62a75803a3f7.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n1f:[\"$\",\"script\",\"script-37\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/ca5fbafaf3826374.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n20:[\"$\",\"script\",\"script-38\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/d3ac82723ec9e30d.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n21:[\"$\",\"script\",\"script-39\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/9b0ee76cbdef1a2a.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n22:[\"$\",\"script\",\"script-40\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/1bc2898be56acd1b.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n23:[\"$\",\"script\",\"script-41\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/fcdf7322b0aa3e2e.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n24:[\"$\",\"script\",\"script-42\",{\"src\":\"/litellm-asset-prefix/_"])</script><script>self.__next_f.push([1,"next/static/chunks/878832edb30e99a4.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n25:[\"$\",\"script\",\"script-43\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/496b84010c33cf69.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n26:[\"$\",\"script\",\"script-44\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/8e3d0ce9505a304f.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n27:[\"$\",\"script\",\"script-45\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/e1f23fd814ac3500.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n28:[\"$\",\"script\",\"script-46\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/88c74f8b4b20d25a.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n29:[\"$\",\"script\",\"script-47\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/99cf9cf99df5ccfc.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n2a:[\"$\",\"script\",\"script-48\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/4980372eaa37b78b.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n2b:[\"$\",\"script\",\"script-49\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/0cdfadbcf4b8c9e4.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n2c:[\"$\",\"script\",\"script-50\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/8f3bf592254c6c3b.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n2d:[\"$\",\"script\",\"script-51\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/8c17e934bd227606.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n2e:[\"$\",\"script\",\"script-52\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/b98447395b5d37ef.js\",\"async\":true,\"nonce\":\"$undefined\"}]\n2f:[\"$\",\"$L32\",null,{\"children\":[\"$\",\"$33\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@34\"}]}]\n30:[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L35\",null,{\"children\":\"$L36\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L37\",null,{\"children\":[\"$\",\"$33\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L38\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}]\n8:{}\n9:\"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"36:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"39:I[27201,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"IconMark\"]\n34:null\n38:[[\"$\",\"title\",\"0\",{\"children\":\"LiteLLM Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"LiteLLM Proxy Admin UI\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.1d32c690.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"./favicon.ico\"}],[\"$\",\"$L39\",\"4\",{}]]\n"])</script></body></html>
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/index.txt ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1:"$Sreact.fragment"
2
+ 2:I[867271,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
3
+ 3:I[71195,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
4
+ 4:I[339756,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
5
+ 5:I[837457,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
6
+ 6:I[347257,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ClientPageRoot"]
7
+ 7:I[952683,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","/litellm-asset-prefix/_next/static/chunks/0493aafc4891dd29.js","/litellm-asset-prefix/_next/static/chunks/f7e1d08418645368.js","/litellm-asset-prefix/_next/static/chunks/b3d198d6c56a21b8.js","/litellm-asset-prefix/_next/static/chunks/403c4d96324c23a6.js","/litellm-asset-prefix/_next/static/chunks/37e77c06e99eb8ff.js","/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js","/litellm-asset-prefix/_next/static/chunks/0549bc9afa7d4888.js","/litellm-asset-prefix/_next/static/chunks/0b470ffc60999bf4.js","/litellm-asset-prefix/_next/static/chunks/c847ecdf8c790b0b.js","/litellm-asset-prefix/_next/static/chunks/baadbd26839e7b66.js","/litellm-asset-prefix/_next/static/chunks/ee5f9a39a526e423.js","/litellm-asset-prefix/_next/static/chunks/6eee262391715440.js","/litellm-asset-prefix/_next/static/chunks/4e17b625d75327a7.js","/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js","/litellm-asset-prefix/_next/static/chunks/a06cc76a774dd182.js","/litellm-asset-prefix/_next/static/chunks/264fd32eefec52b6.js","/litellm-asset-prefix/_next/static/chunks/86828bdbafb8b581.js","/litellm-asset-prefix/_next/static/chunks/10dc4591ef08a91f.js","/litellm-asset-prefix/_next/static/chunks/e099566e8bd4ee4e.js","/litellm-asset-prefix/_next/static/chunks/fbe12a36d22e9554.js","/litellm-asset-prefix/_next/static/chunks/2971c4658f1bcd7d.js","/litellm-asset-prefix/_next/static/chunks/134f728fa7099e3e.js","/litellm-asset-prefix/_next/static/chunks/679dbd657c8b5aef.js","/litellm-asset-prefix/_next/static/chunks/94f7208f5087e27c.js","/litellm-asset-prefix/_next/static/chunks/43f6fc3c2ab9cf23.js","/litellm-asset-prefix/_next/static/chunks/4e06277331e725da.js","/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js","/litellm-asset-prefix/_next/static/chunks/ac3cf77acb5bf234.js","/litellm-asset-prefix/_next/static/chunks/fb125648f2dae104.js","/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js","/litellm-asset-prefix/_next/static/chunks/a09028cd611c08ef.js","/litellm-asset-prefix/_next/static/chunks/6967a3b4ecbd3785.js","/litellm-asset-prefix/_next/static/chunks/3e917c79aadd945b.js","/litellm-asset-prefix/_next/static/chunks/9bbebdeb3f1cb03f.js","/litellm-asset-prefix/_next/static/chunks/0a65da2cd24e2ab6.js","/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js","/litellm-asset-prefix/_next/static/chunks/5f2d62a75803a3f7.js","/litellm-asset-prefix/_next/static/chunks/ca5fbafaf3826374.js","/litellm-asset-prefix/_next/static/chunks/d3ac82723ec9e30d.js","/litellm-asset-prefix/_next/static/chunks/9b0ee76cbdef1a2a.js","/litellm-asset-prefix/_next/static/chunks/1bc2898be56acd1b.js","/litellm-asset-prefix/_next/static/chunks/fcdf7322b0aa3e2e.js","/litellm-asset-prefix/_next/static/chunks/878832edb30e99a4.js","/litellm-asset-prefix/_next/static/chunks/496b84010c33cf69.js","/litellm-asset-prefix/_next/static/chunks/8e3d0ce9505a304f.js","/litellm-asset-prefix/_next/static/chunks/e1f23fd814ac3500.js","/litellm-asset-prefix/_next/static/chunks/88c74f8b4b20d25a.js","/litellm-asset-prefix/_next/static/chunks/99cf9cf99df5ccfc.js","/litellm-asset-prefix/_next/static/chunks/4980372eaa37b78b.js","/litellm-asset-prefix/_next/static/chunks/0cdfadbcf4b8c9e4.js","/litellm-asset-prefix/_next/static/chunks/8f3bf592254c6c3b.js","/litellm-asset-prefix/_next/static/chunks/8c17e934bd227606.js","/litellm-asset-prefix/_next/static/chunks/b98447395b5d37ef.js"],"default"]
8
+ 31:I[168027,[],"default"]
9
+ :HL["/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","style"]
10
+ :HL["/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","style"]
11
+ :HL["/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
12
+ :HL["/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css","style"]
13
+ 0:{"P":null,"b":"L07LLek3NGtynjTxlCdLS","c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_5972bc34-module__OU16Qa__className","children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L6",null,{"Component":"$7","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@8","$@9"]}}],[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/0493aafc4891dd29.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/f7e1d08418645368.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/b3d198d6c56a21b8.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/litellm-asset-prefix/_next/static/chunks/403c4d96324c23a6.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/litellm-asset-prefix/_next/static/chunks/37e77c06e99eb8ff.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/litellm-asset-prefix/_next/static/chunks/0549bc9afa7d4888.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/litellm-asset-prefix/_next/static/chunks/0b470ffc60999bf4.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/litellm-asset-prefix/_next/static/chunks/c847ecdf8c790b0b.js","async":true,"nonce":"$undefined"}],["$","script","script-9",{"src":"/litellm-asset-prefix/_next/static/chunks/baadbd26839e7b66.js","async":true,"nonce":"$undefined"}],["$","script","script-10",{"src":"/litellm-asset-prefix/_next/static/chunks/ee5f9a39a526e423.js","async":true,"nonce":"$undefined"}],["$","script","script-11",{"src":"/litellm-asset-prefix/_next/static/chunks/6eee262391715440.js","async":true,"nonce":"$undefined"}],["$","script","script-12",{"src":"/litellm-asset-prefix/_next/static/chunks/4e17b625d75327a7.js","async":true,"nonce":"$undefined"}],["$","script","script-13",{"src":"/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js","async":true,"nonce":"$undefined"}],["$","script","script-14",{"src":"/litellm-asset-prefix/_next/static/chunks/a06cc76a774dd182.js","async":true,"nonce":"$undefined"}],["$","script","script-15",{"src":"/litellm-asset-prefix/_next/static/chunks/264fd32eefec52b6.js","async":true,"nonce":"$undefined"}],"$La","$Lb","$Lc","$Ld","$Le","$Lf","$L10","$L11","$L12","$L13","$L14","$L15","$L16","$L17","$L18","$L19","$L1a","$L1b","$L1c","$L1d","$L1e","$L1f","$L20","$L21","$L22","$L23","$L24","$L25","$L26","$L27","$L28","$L29","$L2a","$L2b","$L2c","$L2d","$L2e"],"$L2f"]}],{},null,false,false]},null,false,false],"$L30",false]],"m":"$undefined","G":["$31",[]],"S":true}
14
+ 32:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"OutletBoundary"]
15
+ 33:"$Sreact.suspense"
16
+ 35:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ViewportBoundary"]
17
+ 37:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"MetadataBoundary"]
18
+ a:["$","script","script-16",{"src":"/litellm-asset-prefix/_next/static/chunks/86828bdbafb8b581.js","async":true,"nonce":"$undefined"}]
19
+ b:["$","script","script-17",{"src":"/litellm-asset-prefix/_next/static/chunks/10dc4591ef08a91f.js","async":true,"nonce":"$undefined"}]
20
+ c:["$","script","script-18",{"src":"/litellm-asset-prefix/_next/static/chunks/e099566e8bd4ee4e.js","async":true,"nonce":"$undefined"}]
21
+ d:["$","script","script-19",{"src":"/litellm-asset-prefix/_next/static/chunks/fbe12a36d22e9554.js","async":true,"nonce":"$undefined"}]
22
+ e:["$","script","script-20",{"src":"/litellm-asset-prefix/_next/static/chunks/2971c4658f1bcd7d.js","async":true,"nonce":"$undefined"}]
23
+ f:["$","script","script-21",{"src":"/litellm-asset-prefix/_next/static/chunks/134f728fa7099e3e.js","async":true,"nonce":"$undefined"}]
24
+ 10:["$","script","script-22",{"src":"/litellm-asset-prefix/_next/static/chunks/679dbd657c8b5aef.js","async":true,"nonce":"$undefined"}]
25
+ 11:["$","script","script-23",{"src":"/litellm-asset-prefix/_next/static/chunks/94f7208f5087e27c.js","async":true,"nonce":"$undefined"}]
26
+ 12:["$","script","script-24",{"src":"/litellm-asset-prefix/_next/static/chunks/43f6fc3c2ab9cf23.js","async":true,"nonce":"$undefined"}]
27
+ 13:["$","script","script-25",{"src":"/litellm-asset-prefix/_next/static/chunks/4e06277331e725da.js","async":true,"nonce":"$undefined"}]
28
+ 14:["$","script","script-26",{"src":"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js","async":true,"nonce":"$undefined"}]
29
+ 15:["$","script","script-27",{"src":"/litellm-asset-prefix/_next/static/chunks/ac3cf77acb5bf234.js","async":true,"nonce":"$undefined"}]
30
+ 16:["$","script","script-28",{"src":"/litellm-asset-prefix/_next/static/chunks/fb125648f2dae104.js","async":true,"nonce":"$undefined"}]
31
+ 17:["$","script","script-29",{"src":"/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js","async":true,"nonce":"$undefined"}]
32
+ 18:["$","script","script-30",{"src":"/litellm-asset-prefix/_next/static/chunks/a09028cd611c08ef.js","async":true,"nonce":"$undefined"}]
33
+ 19:["$","script","script-31",{"src":"/litellm-asset-prefix/_next/static/chunks/6967a3b4ecbd3785.js","async":true,"nonce":"$undefined"}]
34
+ 1a:["$","script","script-32",{"src":"/litellm-asset-prefix/_next/static/chunks/3e917c79aadd945b.js","async":true,"nonce":"$undefined"}]
35
+ 1b:["$","script","script-33",{"src":"/litellm-asset-prefix/_next/static/chunks/9bbebdeb3f1cb03f.js","async":true,"nonce":"$undefined"}]
36
+ 1c:["$","script","script-34",{"src":"/litellm-asset-prefix/_next/static/chunks/0a65da2cd24e2ab6.js","async":true,"nonce":"$undefined"}]
37
+ 1d:["$","script","script-35",{"src":"/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js","async":true,"nonce":"$undefined"}]
38
+ 1e:["$","script","script-36",{"src":"/litellm-asset-prefix/_next/static/chunks/5f2d62a75803a3f7.js","async":true,"nonce":"$undefined"}]
39
+ 1f:["$","script","script-37",{"src":"/litellm-asset-prefix/_next/static/chunks/ca5fbafaf3826374.js","async":true,"nonce":"$undefined"}]
40
+ 20:["$","script","script-38",{"src":"/litellm-asset-prefix/_next/static/chunks/d3ac82723ec9e30d.js","async":true,"nonce":"$undefined"}]
41
+ 21:["$","script","script-39",{"src":"/litellm-asset-prefix/_next/static/chunks/9b0ee76cbdef1a2a.js","async":true,"nonce":"$undefined"}]
42
+ 22:["$","script","script-40",{"src":"/litellm-asset-prefix/_next/static/chunks/1bc2898be56acd1b.js","async":true,"nonce":"$undefined"}]
43
+ 23:["$","script","script-41",{"src":"/litellm-asset-prefix/_next/static/chunks/fcdf7322b0aa3e2e.js","async":true,"nonce":"$undefined"}]
44
+ 24:["$","script","script-42",{"src":"/litellm-asset-prefix/_next/static/chunks/878832edb30e99a4.js","async":true,"nonce":"$undefined"}]
45
+ 25:["$","script","script-43",{"src":"/litellm-asset-prefix/_next/static/chunks/496b84010c33cf69.js","async":true,"nonce":"$undefined"}]
46
+ 26:["$","script","script-44",{"src":"/litellm-asset-prefix/_next/static/chunks/8e3d0ce9505a304f.js","async":true,"nonce":"$undefined"}]
47
+ 27:["$","script","script-45",{"src":"/litellm-asset-prefix/_next/static/chunks/e1f23fd814ac3500.js","async":true,"nonce":"$undefined"}]
48
+ 28:["$","script","script-46",{"src":"/litellm-asset-prefix/_next/static/chunks/88c74f8b4b20d25a.js","async":true,"nonce":"$undefined"}]
49
+ 29:["$","script","script-47",{"src":"/litellm-asset-prefix/_next/static/chunks/99cf9cf99df5ccfc.js","async":true,"nonce":"$undefined"}]
50
+ 2a:["$","script","script-48",{"src":"/litellm-asset-prefix/_next/static/chunks/4980372eaa37b78b.js","async":true,"nonce":"$undefined"}]
51
+ 2b:["$","script","script-49",{"src":"/litellm-asset-prefix/_next/static/chunks/0cdfadbcf4b8c9e4.js","async":true,"nonce":"$undefined"}]
52
+ 2c:["$","script","script-50",{"src":"/litellm-asset-prefix/_next/static/chunks/8f3bf592254c6c3b.js","async":true,"nonce":"$undefined"}]
53
+ 2d:["$","script","script-51",{"src":"/litellm-asset-prefix/_next/static/chunks/8c17e934bd227606.js","async":true,"nonce":"$undefined"}]
54
+ 2e:["$","script","script-52",{"src":"/litellm-asset-prefix/_next/static/chunks/b98447395b5d37ef.js","async":true,"nonce":"$undefined"}]
55
+ 2f:["$","$L32",null,{"children":["$","$33",null,{"name":"Next.MetadataOutlet","children":"$@34"}]}]
56
+ 30:["$","$1","h",{"children":[null,["$","$L35",null,{"children":"$L36"}],["$","div",null,{"hidden":true,"children":["$","$L37",null,{"children":["$","$33",null,{"name":"Next.Metadata","children":"$L38"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}]
57
+ 8:{}
58
+ 9:"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params"
59
+ 36:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
60
+ 39:I[27201,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"IconMark"]
61
+ 34:null
62
+ 38:[["$","title","0",{"children":"LiteLLM Dashboard"}],["$","meta","1",{"name":"description","content":"LiteLLM Proxy Admin UI"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.1d32c690.ico","sizes":"48x48","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"./favicon.ico"}],["$","$L39","4",{}]]
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/login.html ADDED
@@ -0,0 +1 @@
 
 
1
+ <!DOCTYPE html><!--L07LLek3NGtynjTxlCdLS--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css" data-precedence="next"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js"/><script src="/litellm-asset-prefix/_next/static/chunks/1300460219810c10.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/e96398764f77c728.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/726579f2940c2a2f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/turbopack-ddedb29a5eb0118f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/570d770996d98e0f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/22f83f649bef2adf.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/570b2e10aa856e54.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/fcad393dcc862a21.js" async=""></script><meta name="next-size-adjust" content=""/><title>LiteLLM Dashboard</title><meta name="description" content="LiteLLM Proxy Admin UI"/><link rel="icon" href="/favicon.ico?favicon.1d32c690.ico" sizes="48x48" type="image/x-icon"/><link rel="icon" href="./favicon.ico"/><script src="/litellm-asset-prefix/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="inter_5972bc34-module__OU16Qa__className"><div hidden=""><!--$--><!--/$--></div><div class="h-screen flex items-center justify-center gap-4"><div class="text-lg font-medium py-2 pr-4 border-r border-r-gray-200">🚅 LiteLLM</div><div class="flex items-center justify-center gap-2"><svg data-spinner-id="_R_clubvb_" class="pointer-events-none animate-spin text-current size-4" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg><span class="text-gray-600 text-sm">Loading...</span></div></div><!--$--><!--/$--><script src="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[867271,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n3:I[71195,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n4:I[339756,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n5:I[837457,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n6:I[347257,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ClientPageRoot\"]\n7:I[594542,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"/litellm-asset-prefix/_next/static/chunks/570d770996d98e0f.js\",\"/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js\",\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js\",\"/litellm-asset-prefix/_next/static/chunks/22f83f649bef2adf.js\",\"/litellm-asset-prefix/_next/static/chunks/570b2e10aa856e54.js\",\"/litellm-asset-prefix/_next/static/chunks/fcad393dcc862a21.js\"],\"default\"]\na:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"OutletBoundary\"]\nb:\"$Sreact.suspense\"\nd:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ViewportBoundary\"]\nf:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"MetadataBoundary\"]\n11:I[168027,[],\"default\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"L07LLek3NGtynjTxlCdLS\",\"c\":[\"\",\"login\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"login\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"inter_5972bc34-module__OU16Qa__className\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L6\",null,{\"Component\":\"$7\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{},\"promises\":[\"$@8\",\"$@9\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/570d770996d98e0f.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/22f83f649bef2adf.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/570b2e10aa856e54.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-6\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/fcad393dcc862a21.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$La\",null,{\"children\":[\"$\",\"$b\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@c\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Ld\",null,{\"children\":\"$Le\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lf\",null,{\"children\":[\"$\",\"$b\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L10\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$11\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:{}\n9:\"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"e:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"12:I[27201,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"IconMark\"]\nc:null\n10:[[\"$\",\"title\",\"0\",{\"children\":\"LiteLLM Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"LiteLLM Proxy Admin UI\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.1d32c690.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"./favicon.ico\"}],[\"$\",\"$L12\",\"4\",{}]]\n"])</script></body></html>
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/login.txt ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1:"$Sreact.fragment"
2
+ 2:I[867271,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
3
+ 3:I[71195,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
4
+ 4:I[339756,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
5
+ 5:I[837457,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
6
+ 6:I[347257,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ClientPageRoot"]
7
+ 7:I[594542,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","/litellm-asset-prefix/_next/static/chunks/570d770996d98e0f.js","/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js","/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js","/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js","/litellm-asset-prefix/_next/static/chunks/22f83f649bef2adf.js","/litellm-asset-prefix/_next/static/chunks/570b2e10aa856e54.js","/litellm-asset-prefix/_next/static/chunks/fcad393dcc862a21.js"],"default"]
8
+ a:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"OutletBoundary"]
9
+ b:"$Sreact.suspense"
10
+ d:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ViewportBoundary"]
11
+ f:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"MetadataBoundary"]
12
+ 11:I[168027,[],"default"]
13
+ :HL["/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","style"]
14
+ :HL["/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","style"]
15
+ :HL["/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
16
+ 0:{"P":null,"b":"L07LLek3NGtynjTxlCdLS","c":["","login"],"q":"","i":false,"f":[[["",{"children":["login",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_5972bc34-module__OU16Qa__className","children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","$L6",null,{"Component":"$7","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@8","$@9"]}}],[["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/570d770996d98e0f.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/litellm-asset-prefix/_next/static/chunks/22f83f649bef2adf.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/litellm-asset-prefix/_next/static/chunks/570b2e10aa856e54.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/litellm-asset-prefix/_next/static/chunks/fcad393dcc862a21.js","async":true,"nonce":"$undefined"}]],["$","$La",null,{"children":["$","$b",null,{"name":"Next.MetadataOutlet","children":"$@c"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Ld",null,{"children":"$Le"}],["$","div",null,{"hidden":true,"children":["$","$Lf",null,{"children":["$","$b",null,{"name":"Next.Metadata","children":"$L10"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$11",[]],"S":true}
17
+ 8:{}
18
+ 9:"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params"
19
+ e:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
20
+ 12:I[27201,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"IconMark"]
21
+ c:null
22
+ 10:[["$","title","0",{"children":"LiteLLM Dashboard"}],["$","meta","1",{"name":"description","content":"LiteLLM Proxy Admin UI"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.1d32c690.ico","sizes":"48x48","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"./favicon.ico"}],["$","$L12","4",{}]]
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/logs.html ADDED
@@ -0,0 +1 @@
 
 
1
+ <!DOCTYPE html><!--L07LLek3NGtynjTxlCdLS--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css" data-precedence="next"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js"/><script src="/litellm-asset-prefix/_next/static/chunks/1300460219810c10.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/e96398764f77c728.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/726579f2940c2a2f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/turbopack-ddedb29a5eb0118f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/2d8285e144d4452a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/cbfd53da3104be2a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/92cf5d832080641f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/bde2340071127430.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/b368552eef8c1611.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/f48aa7c7bdc85371.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/975f380f5d2c2b7d.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/a766b162f45f2229.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/17816faaae727f81.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/c058ac3e89dc33df.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/673491d4036a0cfe.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/95b1023fa868f012.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/5583bc893837fdf8.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/d84d93ec5e05aece.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/99cf9cf99df5ccfc.js" async=""></script><link rel="preload" href="/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css" as="style"/><meta name="next-size-adjust" content=""/><title>LiteLLM Dashboard</title><meta name="description" content="LiteLLM Proxy Admin UI"/><link rel="icon" href="/favicon.ico?favicon.1d32c690.ico" sizes="48x48" type="image/x-icon"/><link rel="icon" href="./favicon.ico"/><script src="/litellm-asset-prefix/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="inter_5972bc34-module__OU16Qa__className"><div hidden=""><!--$--><!--/$--></div><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><div class="flex items-center justify-center min-h-screen">Loading...</div><!--/$--><script src="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[867271,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n3:I[71195,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n4:I[339756,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n5:I[837457,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n6:I[92825,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ClientSegmentRoot\"]\n7:I[216370,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js\",\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js\",\"/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js\",\"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js\",\"/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js\",\"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js\",\"/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js\",\"/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js\"],\"default\"]\nb:I[168027,[],\"default\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"L07LLek3NGtynjTxlCdLS\",\"c\":[\"\",\"logs\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"(dashboard)\",{\"children\":[\"logs\",{\"children\":[\"__PAGE__\",{}]}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"inter_5972bc34-module__OU16Qa__className\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-6\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-7\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-8\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L6\",null,{\"Component\":\"$7\",\"slots\":{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]},\"serverProvidedParams\":{\"params\":{},\"promises\":[\"$@8\"]}}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"$L9\",{},null,false,false]},null,false,false]},null,false,false]},null,false,false],\"$La\",false]],\"m\":\"$undefined\",\"G\":[\"$b\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"c:I[347257,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ClientPageRoot\"]\n"])</script><script>self.__next_f.push([1,"d:I[799062,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js\",\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js\",\"/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js\",\"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js\",\"/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js\",\"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js\",\"/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js\",\"/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js\",\"/litellm-asset-prefix/_next/static/chunks/2d8285e144d4452a.js\",\"/litellm-asset-prefix/_next/static/chunks/cbfd53da3104be2a.js\",\"/litellm-asset-prefix/_next/static/chunks/92cf5d832080641f.js\",\"/litellm-asset-prefix/_next/static/chunks/bde2340071127430.js\",\"/litellm-asset-prefix/_next/static/chunks/b368552eef8c1611.js\",\"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js\",\"/litellm-asset-prefix/_next/static/chunks/f48aa7c7bdc85371.js\",\"/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js\",\"/litellm-asset-prefix/_next/static/chunks/975f380f5d2c2b7d.js\",\"/litellm-asset-prefix/_next/static/chunks/a766b162f45f2229.js\",\"/litellm-asset-prefix/_next/static/chunks/17816faaae727f81.js\",\"/litellm-asset-prefix/_next/static/chunks/c058ac3e89dc33df.js\",\"/litellm-asset-prefix/_next/static/chunks/673491d4036a0cfe.js\",\"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js\",\"/litellm-asset-prefix/_next/static/chunks/95b1023fa868f012.js\",\"/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js\",\"/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js\",\"/litellm-asset-prefix/_next/static/chunks/5583bc893837fdf8.js\",\"/litellm-asset-prefix/_next/static/chunks/d84d93ec5e05aece.js\",\"/litellm-asset-prefix/_next/static/chunks/99cf9cf99df5ccfc.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"10:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"OutletBoundary\"]\n11:\"$Sreact.suspense\"\n13:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ViewportBoundary\"]\n15:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"MetadataBoundary\"]\n"])</script><script>self.__next_f.push([1,"9:[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$Lc\",null,{\"Component\":\"$d\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":\"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params\",\"promises\":[\"$@e\",\"$@f\"]}}],[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/2d8285e144d4452a.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/cbfd53da3104be2a.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/92cf5d832080641f.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/bde2340071127430.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/b368552eef8c1611.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-6\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/f48aa7c7bdc85371.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-7\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-8\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/975f380f5d2c2b7d.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-9\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/a766b162f45f2229.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-10\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/17816faaae727f81.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-11\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/c058ac3e89dc33df.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-12\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/673491d4036a0cfe.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-13\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-14\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/95b1023fa868f012.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-15\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-16\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-17\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/5583bc893837fdf8.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-18\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/d84d93ec5e05aece.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-19\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/99cf9cf99df5ccfc.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L10\",null,{\"children\":[\"$\",\"$11\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@12\"}]}]]}]\n"])</script><script>self.__next_f.push([1,"a:[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L13\",null,{\"children\":\"$L14\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L15\",null,{\"children\":[\"$\",\"$11\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L16\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}]\n8:\"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"e:{}\nf:\"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"14:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"17:I[27201,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"IconMark\"]\n12:null\n16:[[\"$\",\"title\",\"0\",{\"children\":\"LiteLLM Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"LiteLLM Proxy Admin UI\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.1d32c690.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"./favicon.ico\"}],[\"$\",\"$L17\",\"4\",{}]]\n"])</script></body></html>
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/logs.txt ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1:"$Sreact.fragment"
2
+ 2:I[867271,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
3
+ 3:I[71195,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
4
+ 4:I[339756,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
5
+ 5:I[837457,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
6
+ 6:I[92825,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ClientSegmentRoot"]
7
+ 7:I[216370,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js","/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js","/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js","/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js","/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js","/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js","/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js","/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js","/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js"],"default"]
8
+ b:I[168027,[],"default"]
9
+ :HL["/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","style"]
10
+ :HL["/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","style"]
11
+ :HL["/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
12
+ :HL["/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css","style"]
13
+ 0:{"P":null,"b":"L07LLek3NGtynjTxlCdLS","c":["","logs"],"q":"","i":false,"f":[[["",{"children":["(dashboard)",{"children":["logs",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_5972bc34-module__OU16Qa__className","children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[[["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js","async":true,"nonce":"$undefined"}]],["$","$L6",null,{"Component":"$7","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"serverProvidedParams":{"params":{},"promises":["$@8"]}}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["$L9",{},null,false,false]},null,false,false]},null,false,false]},null,false,false],"$La",false]],"m":"$undefined","G":["$b",[]],"S":true}
14
+ c:I[347257,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ClientPageRoot"]
15
+ d:I[799062,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js","/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js","/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js","/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js","/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js","/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js","/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js","/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js","/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js","/litellm-asset-prefix/_next/static/chunks/2d8285e144d4452a.js","/litellm-asset-prefix/_next/static/chunks/cbfd53da3104be2a.js","/litellm-asset-prefix/_next/static/chunks/92cf5d832080641f.js","/litellm-asset-prefix/_next/static/chunks/bde2340071127430.js","/litellm-asset-prefix/_next/static/chunks/b368552eef8c1611.js","/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js","/litellm-asset-prefix/_next/static/chunks/f48aa7c7bdc85371.js","/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js","/litellm-asset-prefix/_next/static/chunks/975f380f5d2c2b7d.js","/litellm-asset-prefix/_next/static/chunks/a766b162f45f2229.js","/litellm-asset-prefix/_next/static/chunks/17816faaae727f81.js","/litellm-asset-prefix/_next/static/chunks/c058ac3e89dc33df.js","/litellm-asset-prefix/_next/static/chunks/673491d4036a0cfe.js","/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js","/litellm-asset-prefix/_next/static/chunks/95b1023fa868f012.js","/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js","/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js","/litellm-asset-prefix/_next/static/chunks/5583bc893837fdf8.js","/litellm-asset-prefix/_next/static/chunks/d84d93ec5e05aece.js","/litellm-asset-prefix/_next/static/chunks/99cf9cf99df5ccfc.js"],"default"]
16
+ 10:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"OutletBoundary"]
17
+ 11:"$Sreact.suspense"
18
+ 13:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ViewportBoundary"]
19
+ 15:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"MetadataBoundary"]
20
+ 9:["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","serverProvidedParams":{"searchParams":{},"params":"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params","promises":["$@e","$@f"]}}],[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/2d8285e144d4452a.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/cbfd53da3104be2a.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/92cf5d832080641f.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/litellm-asset-prefix/_next/static/chunks/bde2340071127430.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/litellm-asset-prefix/_next/static/chunks/b368552eef8c1611.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/litellm-asset-prefix/_next/static/chunks/f48aa7c7bdc85371.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/litellm-asset-prefix/_next/static/chunks/975f380f5d2c2b7d.js","async":true,"nonce":"$undefined"}],["$","script","script-9",{"src":"/litellm-asset-prefix/_next/static/chunks/a766b162f45f2229.js","async":true,"nonce":"$undefined"}],["$","script","script-10",{"src":"/litellm-asset-prefix/_next/static/chunks/17816faaae727f81.js","async":true,"nonce":"$undefined"}],["$","script","script-11",{"src":"/litellm-asset-prefix/_next/static/chunks/c058ac3e89dc33df.js","async":true,"nonce":"$undefined"}],["$","script","script-12",{"src":"/litellm-asset-prefix/_next/static/chunks/673491d4036a0cfe.js","async":true,"nonce":"$undefined"}],["$","script","script-13",{"src":"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js","async":true,"nonce":"$undefined"}],["$","script","script-14",{"src":"/litellm-asset-prefix/_next/static/chunks/95b1023fa868f012.js","async":true,"nonce":"$undefined"}],["$","script","script-15",{"src":"/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js","async":true,"nonce":"$undefined"}],["$","script","script-16",{"src":"/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js","async":true,"nonce":"$undefined"}],["$","script","script-17",{"src":"/litellm-asset-prefix/_next/static/chunks/5583bc893837fdf8.js","async":true,"nonce":"$undefined"}],["$","script","script-18",{"src":"/litellm-asset-prefix/_next/static/chunks/d84d93ec5e05aece.js","async":true,"nonce":"$undefined"}],["$","script","script-19",{"src":"/litellm-asset-prefix/_next/static/chunks/99cf9cf99df5ccfc.js","async":true,"nonce":"$undefined"}]],["$","$L10",null,{"children":["$","$11",null,{"name":"Next.MetadataOutlet","children":"$@12"}]}]]}]
21
+ a:["$","$1","h",{"children":[null,["$","$L13",null,{"children":"$L14"}],["$","div",null,{"hidden":true,"children":["$","$L15",null,{"children":["$","$11",null,{"name":"Next.Metadata","children":"$L16"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}]
22
+ 8:"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params"
23
+ e:{}
24
+ f:"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params"
25
+ 14:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
26
+ 17:I[27201,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"IconMark"]
27
+ 12:null
28
+ 16:[["$","title","0",{"children":"LiteLLM Dashboard"}],["$","meta","1",{"name":"description","content":"LiteLLM Proxy Admin UI"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.1d32c690.ico","sizes":"48x48","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"./favicon.ico"}],["$","$L17","4",{}]]
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/model-hub.html ADDED
@@ -0,0 +1 @@
 
 
1
+ <!DOCTYPE html><!--L07LLek3NGtynjTxlCdLS--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css" data-precedence="next"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js"/><script src="/litellm-asset-prefix/_next/static/chunks/1300460219810c10.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/e96398764f77c728.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/726579f2940c2a2f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/turbopack-ddedb29a5eb0118f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7c552f88245cdd96.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/95b1023fa868f012.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/0606c92ecd600e0c.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/6c4c97f1ea6e7d77.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/0c3e8651e0e97232.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/46d42331373d9805.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js" async=""></script><meta name="next-size-adjust" content=""/><title>LiteLLM Dashboard</title><meta name="description" content="LiteLLM Proxy Admin UI"/><link rel="icon" href="/favicon.ico?favicon.1d32c690.ico" sizes="48x48" type="image/x-icon"/><link rel="icon" href="./favicon.ico"/><script src="/litellm-asset-prefix/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="inter_5972bc34-module__OU16Qa__className"><div hidden=""><!--$--><!--/$--></div><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><div class="flex items-center justify-center min-h-screen">Loading...</div><!--/$--><script src="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[867271,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n3:I[71195,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n4:I[339756,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n5:I[837457,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n6:I[92825,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ClientSegmentRoot\"]\n7:I[216370,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js\",\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js\",\"/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js\",\"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js\",\"/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js\",\"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js\",\"/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js\",\"/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js\"],\"default\"]\nb:I[168027,[],\"default\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"L07LLek3NGtynjTxlCdLS\",\"c\":[\"\",\"model-hub\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"(dashboard)\",{\"children\":[\"model-hub\",{\"children\":[\"__PAGE__\",{}]}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"inter_5972bc34-module__OU16Qa__className\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-6\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-7\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-8\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L6\",null,{\"Component\":\"$7\",\"slots\":{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]},\"serverProvidedParams\":{\"params\":{},\"promises\":[\"$@8\"]}}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"$L9\",{},null,false,false]},null,false,false]},null,false,false]},null,false,false],\"$La\",false]],\"m\":\"$undefined\",\"G\":[\"$b\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"c:I[347257,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ClientPageRoot\"]\n"])</script><script>self.__next_f.push([1,"d:I[195529,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js\",\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js\",\"/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js\",\"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js\",\"/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js\",\"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js\",\"/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js\",\"/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js\",\"/litellm-asset-prefix/_next/static/chunks/7c552f88245cdd96.js\",\"/litellm-asset-prefix/_next/static/chunks/95b1023fa868f012.js\",\"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js\",\"/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js\",\"/litellm-asset-prefix/_next/static/chunks/0606c92ecd600e0c.js\",\"/litellm-asset-prefix/_next/static/chunks/6c4c97f1ea6e7d77.js\",\"/litellm-asset-prefix/_next/static/chunks/0c3e8651e0e97232.js\",\"/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js\",\"/litellm-asset-prefix/_next/static/chunks/46d42331373d9805.js\",\"/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js\",\"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"10:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"OutletBoundary\"]\n11:\"$Sreact.suspense\"\n13:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ViewportBoundary\"]\n15:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"MetadataBoundary\"]\n"])</script><script>self.__next_f.push([1,"9:[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$Lc\",null,{\"Component\":\"$d\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":\"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params\",\"promises\":[\"$@e\",\"$@f\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7c552f88245cdd96.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/95b1023fa868f012.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/0606c92ecd600e0c.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/6c4c97f1ea6e7d77.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-6\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/0c3e8651e0e97232.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-7\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-8\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/46d42331373d9805.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-9\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-10\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L10\",null,{\"children\":[\"$\",\"$11\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@12\"}]}]]}]\n"])</script><script>self.__next_f.push([1,"a:[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L13\",null,{\"children\":\"$L14\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L15\",null,{\"children\":[\"$\",\"$11\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L16\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}]\n8:\"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"e:{}\nf:\"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"14:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"17:I[27201,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"IconMark\"]\n12:null\n16:[[\"$\",\"title\",\"0\",{\"children\":\"LiteLLM Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"LiteLLM Proxy Admin UI\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.1d32c690.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"./favicon.ico\"}],[\"$\",\"$L17\",\"4\",{}]]\n"])</script></body></html>
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/model-hub.txt ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1:"$Sreact.fragment"
2
+ 2:I[867271,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
3
+ 3:I[71195,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
4
+ 4:I[339756,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
5
+ 5:I[837457,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
6
+ 6:I[92825,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ClientSegmentRoot"]
7
+ 7:I[216370,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js","/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js","/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js","/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js","/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js","/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js","/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js","/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js","/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js"],"default"]
8
+ b:I[168027,[],"default"]
9
+ :HL["/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","style"]
10
+ :HL["/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","style"]
11
+ :HL["/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
12
+ 0:{"P":null,"b":"L07LLek3NGtynjTxlCdLS","c":["","model-hub"],"q":"","i":false,"f":[[["",{"children":["(dashboard)",{"children":["model-hub",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_5972bc34-module__OU16Qa__className","children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[[["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js","async":true,"nonce":"$undefined"}]],["$","$L6",null,{"Component":"$7","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"serverProvidedParams":{"params":{},"promises":["$@8"]}}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["$L9",{},null,false,false]},null,false,false]},null,false,false]},null,false,false],"$La",false]],"m":"$undefined","G":["$b",[]],"S":true}
13
+ c:I[347257,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ClientPageRoot"]
14
+ d:I[195529,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js","/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js","/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js","/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js","/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js","/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js","/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js","/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js","/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js","/litellm-asset-prefix/_next/static/chunks/7c552f88245cdd96.js","/litellm-asset-prefix/_next/static/chunks/95b1023fa868f012.js","/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js","/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js","/litellm-asset-prefix/_next/static/chunks/0606c92ecd600e0c.js","/litellm-asset-prefix/_next/static/chunks/6c4c97f1ea6e7d77.js","/litellm-asset-prefix/_next/static/chunks/0c3e8651e0e97232.js","/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js","/litellm-asset-prefix/_next/static/chunks/46d42331373d9805.js","/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js","/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js"],"default"]
15
+ 10:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"OutletBoundary"]
16
+ 11:"$Sreact.suspense"
17
+ 13:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ViewportBoundary"]
18
+ 15:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"MetadataBoundary"]
19
+ 9:["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","serverProvidedParams":{"searchParams":{},"params":"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params","promises":["$@e","$@f"]}}],[["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/7c552f88245cdd96.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/95b1023fa868f012.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/litellm-asset-prefix/_next/static/chunks/0606c92ecd600e0c.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/litellm-asset-prefix/_next/static/chunks/6c4c97f1ea6e7d77.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/litellm-asset-prefix/_next/static/chunks/0c3e8651e0e97232.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/litellm-asset-prefix/_next/static/chunks/46d42331373d9805.js","async":true,"nonce":"$undefined"}],["$","script","script-9",{"src":"/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js","async":true,"nonce":"$undefined"}],["$","script","script-10",{"src":"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js","async":true,"nonce":"$undefined"}]],["$","$L10",null,{"children":["$","$11",null,{"name":"Next.MetadataOutlet","children":"$@12"}]}]]}]
20
+ a:["$","$1","h",{"children":[null,["$","$L13",null,{"children":"$L14"}],["$","div",null,{"hidden":true,"children":["$","$L15",null,{"children":["$","$11",null,{"name":"Next.Metadata","children":"$L16"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}]
21
+ 8:"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params"
22
+ e:{}
23
+ f:"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params"
24
+ 14:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
25
+ 17:I[27201,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"IconMark"]
26
+ 12:null
27
+ 16:[["$","title","0",{"children":"LiteLLM Dashboard"}],["$","meta","1",{"name":"description","content":"LiteLLM Proxy Admin UI"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.1d32c690.ico","sizes":"48x48","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"./favicon.ico"}],["$","$L17","4",{}]]
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/model_hub.html ADDED
@@ -0,0 +1 @@
 
 
1
+ <!DOCTYPE html><!--L07LLek3NGtynjTxlCdLS--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css" data-precedence="next"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js"/><script src="/litellm-asset-prefix/_next/static/chunks/1300460219810c10.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/e96398764f77c728.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/726579f2940c2a2f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/turbopack-ddedb29a5eb0118f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/5282ed7355826608.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/43a9809839de4e6f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/92516c9f878f0819.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/c1efd92d6b02ddc9.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/570b2e10aa856e54.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/5e34b4b8074089e6.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js" async=""></script><meta name="next-size-adjust" content=""/><title>LiteLLM Dashboard</title><meta name="description" content="LiteLLM Proxy Admin UI"/><link rel="icon" href="/favicon.ico?favicon.1d32c690.ico" sizes="48x48" type="image/x-icon"/><link rel="icon" href="./favicon.ico"/><script src="/litellm-asset-prefix/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="inter_5972bc34-module__OU16Qa__className"><div hidden=""><!--$--><!--/$--></div><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><div class="flex items-center justify-center min-h-screen">Loading...</div><!--/$--><!--$--><!--/$--><script src="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[867271,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n3:I[71195,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n4:I[339756,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n5:I[837457,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n6:I[347257,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ClientPageRoot\"]\n7:I[560280,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"/litellm-asset-prefix/_next/static/chunks/5282ed7355826608.js\",\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js\",\"/litellm-asset-prefix/_next/static/chunks/43a9809839de4e6f.js\",\"/litellm-asset-prefix/_next/static/chunks/92516c9f878f0819.js\",\"/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js\",\"/litellm-asset-prefix/_next/static/chunks/c1efd92d6b02ddc9.js\",\"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js\",\"/litellm-asset-prefix/_next/static/chunks/570b2e10aa856e54.js\",\"/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js\",\"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js\",\"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js\",\"/litellm-asset-prefix/_next/static/chunks/5e34b4b8074089e6.js\",\"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js\"],\"default\"]\na:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"OutletBoundary\"]\nb:\"$Sreact.suspense\"\nd:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ViewportBoundary\"]\n11:I[168027,[],\"default\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"L07LLek3NGtynjTxlCdLS\",\"c\":[\"\",\"model_hub\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"model_hub\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"inter_5972bc34-module__OU16Qa__className\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L6\",null,{\"Component\":\"$7\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{},\"promises\":[\"$@8\",\"$@9\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/5282ed7355826608.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/43a9809839de4e6f.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/92516c9f878f0819.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-6\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/c1efd92d6b02ddc9.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-7\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-8\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/570b2e10aa856e54.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-9\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-10\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-11\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-12\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/5e34b4b8074089e6.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-13\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$La\",null,{\"children\":[\"$\",\"$b\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@c\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Ld\",null,{\"children\":\"$Le\"}],\"$Lf\",\"$L10\"]}],false]],\"m\":\"$undefined\",\"G\":[\"$11\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"12:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"MetadataBoundary\"]\nf:[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L12\",null,{\"children\":[\"$\",\"$b\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L13\"}]}]}]\n10:[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]\n8:{}\n9:\"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"e:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"14:I[27201,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"IconMark\"]\nc:null\n13:[[\"$\",\"title\",\"0\",{\"children\":\"LiteLLM Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"LiteLLM Proxy Admin UI\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.1d32c690.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"./favicon.ico\"}],[\"$\",\"$L14\",\"4\",{}]]\n"])</script></body></html>
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/model_hub.txt ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1:"$Sreact.fragment"
2
+ 2:I[867271,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
3
+ 3:I[71195,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
4
+ 4:I[339756,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
5
+ 5:I[837457,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
6
+ 6:I[347257,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ClientPageRoot"]
7
+ 7:I[560280,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","/litellm-asset-prefix/_next/static/chunks/5282ed7355826608.js","/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js","/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js","/litellm-asset-prefix/_next/static/chunks/43a9809839de4e6f.js","/litellm-asset-prefix/_next/static/chunks/92516c9f878f0819.js","/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js","/litellm-asset-prefix/_next/static/chunks/c1efd92d6b02ddc9.js","/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js","/litellm-asset-prefix/_next/static/chunks/570b2e10aa856e54.js","/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js","/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js","/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js","/litellm-asset-prefix/_next/static/chunks/5e34b4b8074089e6.js","/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js"],"default"]
8
+ a:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"OutletBoundary"]
9
+ b:"$Sreact.suspense"
10
+ d:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ViewportBoundary"]
11
+ 11:I[168027,[],"default"]
12
+ :HL["/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","style"]
13
+ :HL["/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","style"]
14
+ :HL["/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
15
+ 0:{"P":null,"b":"L07LLek3NGtynjTxlCdLS","c":["","model_hub"],"q":"","i":false,"f":[[["",{"children":["model_hub",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_5972bc34-module__OU16Qa__className","children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","$L6",null,{"Component":"$7","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@8","$@9"]}}],[["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/5282ed7355826608.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/litellm-asset-prefix/_next/static/chunks/43a9809839de4e6f.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/litellm-asset-prefix/_next/static/chunks/92516c9f878f0819.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/litellm-asset-prefix/_next/static/chunks/c1efd92d6b02ddc9.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/litellm-asset-prefix/_next/static/chunks/570b2e10aa856e54.js","async":true,"nonce":"$undefined"}],["$","script","script-9",{"src":"/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js","async":true,"nonce":"$undefined"}],["$","script","script-10",{"src":"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js","async":true,"nonce":"$undefined"}],["$","script","script-11",{"src":"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js","async":true,"nonce":"$undefined"}],["$","script","script-12",{"src":"/litellm-asset-prefix/_next/static/chunks/5e34b4b8074089e6.js","async":true,"nonce":"$undefined"}],["$","script","script-13",{"src":"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js","async":true,"nonce":"$undefined"}]],["$","$La",null,{"children":["$","$b",null,{"name":"Next.MetadataOutlet","children":"$@c"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Ld",null,{"children":"$Le"}],"$Lf","$L10"]}],false]],"m":"$undefined","G":["$11",[]],"S":true}
16
+ 12:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"MetadataBoundary"]
17
+ f:["$","div",null,{"hidden":true,"children":["$","$L12",null,{"children":["$","$b",null,{"name":"Next.Metadata","children":"$L13"}]}]}]
18
+ 10:["$","meta",null,{"name":"next-size-adjust","content":""}]
19
+ 8:{}
20
+ 9:"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params"
21
+ e:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
22
+ 14:I[27201,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"IconMark"]
23
+ c:null
24
+ 13:[["$","title","0",{"children":"LiteLLM Dashboard"}],["$","meta","1",{"name":"description","content":"LiteLLM Proxy Admin UI"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.1d32c690.ico","sizes":"48x48","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"./favicon.ico"}],["$","$L14","4",{}]]
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/model_hub_table.html ADDED
@@ -0,0 +1 @@
 
 
1
+ <!DOCTYPE html><!--L07LLek3NGtynjTxlCdLS--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css" data-precedence="next"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js"/><script src="/litellm-asset-prefix/_next/static/chunks/1300460219810c10.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/e96398764f77c728.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/726579f2940c2a2f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/turbopack-ddedb29a5eb0118f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7cb344c72a271ca2.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/18a9536fce05dc33.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/9fbdf10b9cf445d9.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/570b2e10aa856e54.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/3ba782adb71e77d0.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/9bb2d8f2de5a0c01.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/6c4c97f1ea6e7d77.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/0c3e8651e0e97232.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/46d42331373d9805.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/84f351822ff5289f.js" async=""></script><meta name="next-size-adjust" content=""/><title>LiteLLM Dashboard</title><meta name="description" content="LiteLLM Proxy Admin UI"/><link rel="icon" href="/favicon.ico?favicon.1d32c690.ico" sizes="48x48" type="image/x-icon"/><link rel="icon" href="./favicon.ico"/><script src="/litellm-asset-prefix/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="inter_5972bc34-module__OU16Qa__className"><div hidden=""><!--$--><!--/$--></div><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><div class="flex items-center justify-center min-h-screen">Loading...</div><!--/$--><!--$--><!--/$--><script src="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[867271,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n3:I[71195,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n4:I[339756,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n5:I[837457,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n6:I[347257,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ClientPageRoot\"]\n"])</script><script>self.__next_f.push([1,"7:I[86408,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"/litellm-asset-prefix/_next/static/chunks/7cb344c72a271ca2.js\",\"/litellm-asset-prefix/_next/static/chunks/18a9536fce05dc33.js\",\"/litellm-asset-prefix/_next/static/chunks/9fbdf10b9cf445d9.js\",\"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js\",\"/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js\",\"/litellm-asset-prefix/_next/static/chunks/570b2e10aa856e54.js\",\"/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js\",\"/litellm-asset-prefix/_next/static/chunks/3ba782adb71e77d0.js\",\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js\",\"/litellm-asset-prefix/_next/static/chunks/9bb2d8f2de5a0c01.js\",\"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js\",\"/litellm-asset-prefix/_next/static/chunks/6c4c97f1ea6e7d77.js\",\"/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js\",\"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js\",\"/litellm-asset-prefix/_next/static/chunks/0c3e8651e0e97232.js\",\"/litellm-asset-prefix/_next/static/chunks/46d42331373d9805.js\",\"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js\",\"/litellm-asset-prefix/_next/static/chunks/84f351822ff5289f.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"10:I[168027,[],\"default\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"L07LLek3NGtynjTxlCdLS\",\"c\":[\"\",\"model_hub_table\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"model_hub_table\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"inter_5972bc34-module__OU16Qa__className\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L6\",null,{\"Component\":\"$7\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{},\"promises\":[\"$@8\",\"$@9\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7cb344c72a271ca2.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/18a9536fce05dc33.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/9fbdf10b9cf445d9.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/570b2e10aa856e54.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-6\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-7\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/3ba782adb71e77d0.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-8\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-9\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-10\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/9bb2d8f2de5a0c01.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-11\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-12\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/6c4c97f1ea6e7d77.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-13\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-14\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js\",\"async\":true,\"nonce\":\"$undefined\"}],\"$La\",\"$Lb\",\"$Lc\",\"$Ld\"],\"$Le\"]}],{},null,false,false]},null,false,false]},null,false,false],\"$Lf\",false]],\"m\":\"$undefined\",\"G\":[\"$10\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"11:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"OutletBoundary\"]\n12:\"$Sreact.suspense\"\n14:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ViewportBoundary\"]\n16:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"MetadataBoundary\"]\na:[\"$\",\"script\",\"script-15\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/0c3e8651e0e97232.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nb:[\"$\",\"script\",\"script-16\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/46d42331373d9805.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nc:[\"$\",\"script\",\"script-17\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nd:[\"$\",\"script\",\"script-18\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/84f351822ff5289f.js\",\"async\":true,\"nonce\":\"$undefined\"}]\ne:[\"$\",\"$L11\",null,{\"children\":[\"$\",\"$12\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@13\"}]}]\nf:[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L14\",null,{\"children\":\"$L15\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L16\",null,{\"children\":[\"$\",\"$12\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L17\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}]\n8:{}\n9:\"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"15:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"18:I[27201,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"IconMark\"]\n13:null\n17:[[\"$\",\"title\",\"0\",{\"children\":\"LiteLLM Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"LiteLLM Proxy Admin UI\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.1d32c690.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"./favicon.ico\"}],[\"$\",\"$L18\",\"4\",{}]]\n"])</script></body></html>
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/model_hub_table.txt ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1:"$Sreact.fragment"
2
+ 2:I[867271,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
3
+ 3:I[71195,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
4
+ 4:I[339756,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
5
+ 5:I[837457,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
6
+ 6:I[347257,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ClientPageRoot"]
7
+ 7:I[86408,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","/litellm-asset-prefix/_next/static/chunks/7cb344c72a271ca2.js","/litellm-asset-prefix/_next/static/chunks/18a9536fce05dc33.js","/litellm-asset-prefix/_next/static/chunks/9fbdf10b9cf445d9.js","/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js","/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js","/litellm-asset-prefix/_next/static/chunks/570b2e10aa856e54.js","/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js","/litellm-asset-prefix/_next/static/chunks/3ba782adb71e77d0.js","/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js","/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js","/litellm-asset-prefix/_next/static/chunks/9bb2d8f2de5a0c01.js","/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js","/litellm-asset-prefix/_next/static/chunks/6c4c97f1ea6e7d77.js","/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js","/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js","/litellm-asset-prefix/_next/static/chunks/0c3e8651e0e97232.js","/litellm-asset-prefix/_next/static/chunks/46d42331373d9805.js","/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js","/litellm-asset-prefix/_next/static/chunks/84f351822ff5289f.js"],"default"]
8
+ 10:I[168027,[],"default"]
9
+ :HL["/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","style"]
10
+ :HL["/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","style"]
11
+ :HL["/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
12
+ 0:{"P":null,"b":"L07LLek3NGtynjTxlCdLS","c":["","model_hub_table"],"q":"","i":false,"f":[[["",{"children":["model_hub_table",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_5972bc34-module__OU16Qa__className","children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","$L6",null,{"Component":"$7","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@8","$@9"]}}],[["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/7cb344c72a271ca2.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/18a9536fce05dc33.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/9fbdf10b9cf445d9.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/litellm-asset-prefix/_next/static/chunks/570b2e10aa856e54.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/litellm-asset-prefix/_next/static/chunks/3ba782adb71e77d0.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js","async":true,"nonce":"$undefined"}],["$","script","script-9",{"src":"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js","async":true,"nonce":"$undefined"}],["$","script","script-10",{"src":"/litellm-asset-prefix/_next/static/chunks/9bb2d8f2de5a0c01.js","async":true,"nonce":"$undefined"}],["$","script","script-11",{"src":"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js","async":true,"nonce":"$undefined"}],["$","script","script-12",{"src":"/litellm-asset-prefix/_next/static/chunks/6c4c97f1ea6e7d77.js","async":true,"nonce":"$undefined"}],["$","script","script-13",{"src":"/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js","async":true,"nonce":"$undefined"}],["$","script","script-14",{"src":"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js","async":true,"nonce":"$undefined"}],"$La","$Lb","$Lc","$Ld"],"$Le"]}],{},null,false,false]},null,false,false]},null,false,false],"$Lf",false]],"m":"$undefined","G":["$10",[]],"S":true}
13
+ 11:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"OutletBoundary"]
14
+ 12:"$Sreact.suspense"
15
+ 14:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ViewportBoundary"]
16
+ 16:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"MetadataBoundary"]
17
+ a:["$","script","script-15",{"src":"/litellm-asset-prefix/_next/static/chunks/0c3e8651e0e97232.js","async":true,"nonce":"$undefined"}]
18
+ b:["$","script","script-16",{"src":"/litellm-asset-prefix/_next/static/chunks/46d42331373d9805.js","async":true,"nonce":"$undefined"}]
19
+ c:["$","script","script-17",{"src":"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js","async":true,"nonce":"$undefined"}]
20
+ d:["$","script","script-18",{"src":"/litellm-asset-prefix/_next/static/chunks/84f351822ff5289f.js","async":true,"nonce":"$undefined"}]
21
+ e:["$","$L11",null,{"children":["$","$12",null,{"name":"Next.MetadataOutlet","children":"$@13"}]}]
22
+ f:["$","$1","h",{"children":[null,["$","$L14",null,{"children":"$L15"}],["$","div",null,{"hidden":true,"children":["$","$L16",null,{"children":["$","$12",null,{"name":"Next.Metadata","children":"$L17"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}]
23
+ 8:{}
24
+ 9:"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params"
25
+ 15:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
26
+ 18:I[27201,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"IconMark"]
27
+ 13:null
28
+ 17:[["$","title","0",{"children":"LiteLLM Dashboard"}],["$","meta","1",{"name":"description","content":"LiteLLM Proxy Admin UI"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.1d32c690.ico","sizes":"48x48","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"./favicon.ico"}],["$","$L18","4",{}]]
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/models-and-endpoints.html ADDED
@@ -0,0 +1 @@
 
 
1
+ <!DOCTYPE html><!--L07LLek3NGtynjTxlCdLS--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css" data-precedence="next"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js"/><script src="/litellm-asset-prefix/_next/static/chunks/1300460219810c10.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/e96398764f77c728.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/726579f2940c2a2f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/turbopack-ddedb29a5eb0118f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/bfbc736ab510b9aa.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/2d8285e144d4452a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/1a9ab640dd574eca.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/bde2340071127430.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/cbfd53da3104be2a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/b9341b4c942e3943.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/92cf5d832080641f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/fd61c33cefa996af.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/98c440d12846fe99.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/03c715f5e0f1425c.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/e1f23fd814ac3500.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/c058ac3e89dc33df.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/276409aa6cbc14db.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/d84d93ec5e05aece.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/6967a3b4ecbd3785.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/2ea722d0a9ce35c8.js" async=""></script><meta name="next-size-adjust" content=""/><title>LiteLLM Dashboard</title><meta name="description" content="LiteLLM Proxy Admin UI"/><link rel="icon" href="/favicon.ico?favicon.1d32c690.ico" sizes="48x48" type="image/x-icon"/><link rel="icon" href="./favicon.ico"/><script src="/litellm-asset-prefix/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="inter_5972bc34-module__OU16Qa__className"><div hidden=""><!--$--><!--/$--></div><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><div class="flex items-center justify-center min-h-screen">Loading...</div><!--/$--><script src="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[867271,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n3:I[71195,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n4:I[339756,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n5:I[837457,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n6:I[92825,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ClientSegmentRoot\"]\n7:I[216370,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js\",\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js\",\"/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js\",\"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js\",\"/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js\",\"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js\",\"/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js\",\"/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js\"],\"default\"]\nc:I[168027,[],\"default\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"L07LLek3NGtynjTxlCdLS\",\"c\":[\"\",\"models-and-endpoints\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"(dashboard)\",{\"children\":[\"models-and-endpoints\",{\"children\":[\"__PAGE__\",{}]}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"inter_5972bc34-module__OU16Qa__className\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-6\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-7\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-8\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L6\",null,{\"Component\":\"$7\",\"slots\":{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]},\"serverProvidedParams\":{\"params\":{},\"promises\":[\"$@8\"]}}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":\"$L9\",\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"$La\",{},null,false,false]},null,false,false]},null,false,false]},null,false,false],\"$Lb\",false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"d:I[347257,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ClientPageRoot\"]\n"])</script><script>self.__next_f.push([1,"e:I[664307,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js\",\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js\",\"/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js\",\"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js\",\"/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js\",\"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js\",\"/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js\",\"/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js\",\"/litellm-asset-prefix/_next/static/chunks/bfbc736ab510b9aa.js\",\"/litellm-asset-prefix/_next/static/chunks/2d8285e144d4452a.js\",\"/litellm-asset-prefix/_next/static/chunks/1a9ab640dd574eca.js\",\"/litellm-asset-prefix/_next/static/chunks/bde2340071127430.js\",\"/litellm-asset-prefix/_next/static/chunks/cbfd53da3104be2a.js\",\"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js\",\"/litellm-asset-prefix/_next/static/chunks/b9341b4c942e3943.js\",\"/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js\",\"/litellm-asset-prefix/_next/static/chunks/92cf5d832080641f.js\",\"/litellm-asset-prefix/_next/static/chunks/fd61c33cefa996af.js\",\"/litellm-asset-prefix/_next/static/chunks/98c440d12846fe99.js\",\"/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js\",\"/litellm-asset-prefix/_next/static/chunks/03c715f5e0f1425c.js\",\"/litellm-asset-prefix/_next/static/chunks/e1f23fd814ac3500.js\",\"/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js\",\"/litellm-asset-prefix/_next/static/chunks/c058ac3e89dc33df.js\",\"/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js\",\"/litellm-asset-prefix/_next/static/chunks/276409aa6cbc14db.js\",\"/litellm-asset-prefix/_next/static/chunks/d84d93ec5e05aece.js\",\"/litellm-asset-prefix/_next/static/chunks/6967a3b4ecbd3785.js\",\"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js\",\"/litellm-asset-prefix/_next/static/chunks/2ea722d0a9ce35c8.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"11:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"OutletBoundary\"]\n12:\"$Sreact.suspense\"\n14:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ViewportBoundary\"]\n16:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"MetadataBoundary\"]\n9:[\"$\",\"$L5\",null,{}]\n"])</script><script>self.__next_f.push([1,"a:[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$Ld\",null,{\"Component\":\"$e\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":\"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params\",\"promises\":[\"$@f\",\"$@10\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/bfbc736ab510b9aa.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/2d8285e144d4452a.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/1a9ab640dd574eca.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/bde2340071127430.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/cbfd53da3104be2a.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-6\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/b9341b4c942e3943.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-7\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-8\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/92cf5d832080641f.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-9\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/fd61c33cefa996af.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-10\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/98c440d12846fe99.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-11\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-12\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/03c715f5e0f1425c.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-13\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/e1f23fd814ac3500.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-14\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-15\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/c058ac3e89dc33df.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-16\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-17\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/276409aa6cbc14db.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-18\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/d84d93ec5e05aece.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-19\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/6967a3b4ecbd3785.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-20\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-21\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/2ea722d0a9ce35c8.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L11\",null,{\"children\":[\"$\",\"$12\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@13\"}]}]]}]\n"])</script><script>self.__next_f.push([1,"b:[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L14\",null,{\"children\":\"$L15\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L16\",null,{\"children\":[\"$\",\"$12\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L17\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}]\n8:\"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"f:{}\n10:\"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"15:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"18:I[27201,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"IconMark\"]\n13:null\n17:[[\"$\",\"title\",\"0\",{\"children\":\"LiteLLM Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"LiteLLM Proxy Admin UI\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.1d32c690.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"./favicon.ico\"}],[\"$\",\"$L18\",\"4\",{}]]\n"])</script></body></html>
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/models-and-endpoints.txt ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1:"$Sreact.fragment"
2
+ 2:I[867271,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
3
+ 3:I[71195,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js"],"default"]
4
+ 4:I[339756,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
5
+ 5:I[837457,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"]
6
+ 6:I[92825,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ClientSegmentRoot"]
7
+ 7:I[216370,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js","/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js","/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js","/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js","/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js","/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js","/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js","/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js","/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js"],"default"]
8
+ c:I[168027,[],"default"]
9
+ :HL["/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","style"]
10
+ :HL["/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","style"]
11
+ :HL["/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
12
+ 0:{"P":null,"b":"L07LLek3NGtynjTxlCdLS","c":["","models-and-endpoints"],"q":"","i":false,"f":[[["",{"children":["(dashboard)",{"children":["models-and-endpoints",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_5972bc34-module__OU16Qa__className","children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[[["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js","async":true,"nonce":"$undefined"}]],["$","$L6",null,{"Component":"$7","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"serverProvidedParams":{"params":{},"promises":["$@8"]}}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":"$L9","templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["$La",{},null,false,false]},null,false,false]},null,false,false]},null,false,false],"$Lb",false]],"m":"$undefined","G":["$c",[]],"S":true}
13
+ d:I[347257,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ClientPageRoot"]
14
+ e:I[664307,["/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js","/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js","/litellm-asset-prefix/_next/static/chunks/7f59802b710501d5.js","/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js","/litellm-asset-prefix/_next/static/chunks/738c339383c3b4b6.js","/litellm-asset-prefix/_next/static/chunks/0377ae18aae60c57.js","/litellm-asset-prefix/_next/static/chunks/eea976cf4a05fc92.js","/litellm-asset-prefix/_next/static/chunks/996933f13e574998.js","/litellm-asset-prefix/_next/static/chunks/00ff280cdb7d7ee5.js","/litellm-asset-prefix/_next/static/chunks/a31b02ea00f8e98b.js","/litellm-asset-prefix/_next/static/chunks/dfb7190882d30d33.js","/litellm-asset-prefix/_next/static/chunks/bfbc736ab510b9aa.js","/litellm-asset-prefix/_next/static/chunks/2d8285e144d4452a.js","/litellm-asset-prefix/_next/static/chunks/1a9ab640dd574eca.js","/litellm-asset-prefix/_next/static/chunks/bde2340071127430.js","/litellm-asset-prefix/_next/static/chunks/cbfd53da3104be2a.js","/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js","/litellm-asset-prefix/_next/static/chunks/b9341b4c942e3943.js","/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js","/litellm-asset-prefix/_next/static/chunks/92cf5d832080641f.js","/litellm-asset-prefix/_next/static/chunks/fd61c33cefa996af.js","/litellm-asset-prefix/_next/static/chunks/98c440d12846fe99.js","/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js","/litellm-asset-prefix/_next/static/chunks/03c715f5e0f1425c.js","/litellm-asset-prefix/_next/static/chunks/e1f23fd814ac3500.js","/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js","/litellm-asset-prefix/_next/static/chunks/c058ac3e89dc33df.js","/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js","/litellm-asset-prefix/_next/static/chunks/276409aa6cbc14db.js","/litellm-asset-prefix/_next/static/chunks/d84d93ec5e05aece.js","/litellm-asset-prefix/_next/static/chunks/6967a3b4ecbd3785.js","/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js","/litellm-asset-prefix/_next/static/chunks/2ea722d0a9ce35c8.js"],"default"]
15
+ 11:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"OutletBoundary"]
16
+ 12:"$Sreact.suspense"
17
+ 14:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ViewportBoundary"]
18
+ 16:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"MetadataBoundary"]
19
+ 9:["$","$L5",null,{}]
20
+ a:["$","$1","c",{"children":[["$","$Ld",null,{"Component":"$e","serverProvidedParams":{"searchParams":{},"params":"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params","promises":["$@f","$@10"]}}],[["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/bfbc736ab510b9aa.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/2d8285e144d4452a.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/1a9ab640dd574eca.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/litellm-asset-prefix/_next/static/chunks/bde2340071127430.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/litellm-asset-prefix/_next/static/chunks/cbfd53da3104be2a.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/litellm-asset-prefix/_next/static/chunks/b9341b4c942e3943.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/litellm-asset-prefix/_next/static/chunks/7b788dd93ad868b3.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/litellm-asset-prefix/_next/static/chunks/92cf5d832080641f.js","async":true,"nonce":"$undefined"}],["$","script","script-9",{"src":"/litellm-asset-prefix/_next/static/chunks/fd61c33cefa996af.js","async":true,"nonce":"$undefined"}],["$","script","script-10",{"src":"/litellm-asset-prefix/_next/static/chunks/98c440d12846fe99.js","async":true,"nonce":"$undefined"}],["$","script","script-11",{"src":"/litellm-asset-prefix/_next/static/chunks/908828a91f602d8b.js","async":true,"nonce":"$undefined"}],["$","script","script-12",{"src":"/litellm-asset-prefix/_next/static/chunks/03c715f5e0f1425c.js","async":true,"nonce":"$undefined"}],["$","script","script-13",{"src":"/litellm-asset-prefix/_next/static/chunks/e1f23fd814ac3500.js","async":true,"nonce":"$undefined"}],["$","script","script-14",{"src":"/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js","async":true,"nonce":"$undefined"}],["$","script","script-15",{"src":"/litellm-asset-prefix/_next/static/chunks/c058ac3e89dc33df.js","async":true,"nonce":"$undefined"}],["$","script","script-16",{"src":"/litellm-asset-prefix/_next/static/chunks/adb8beb738574863.js","async":true,"nonce":"$undefined"}],["$","script","script-17",{"src":"/litellm-asset-prefix/_next/static/chunks/276409aa6cbc14db.js","async":true,"nonce":"$undefined"}],["$","script","script-18",{"src":"/litellm-asset-prefix/_next/static/chunks/d84d93ec5e05aece.js","async":true,"nonce":"$undefined"}],["$","script","script-19",{"src":"/litellm-asset-prefix/_next/static/chunks/6967a3b4ecbd3785.js","async":true,"nonce":"$undefined"}],["$","script","script-20",{"src":"/litellm-asset-prefix/_next/static/chunks/3b30ab8eaa03bc21.js","async":true,"nonce":"$undefined"}],["$","script","script-21",{"src":"/litellm-asset-prefix/_next/static/chunks/2ea722d0a9ce35c8.js","async":true,"nonce":"$undefined"}]],["$","$L11",null,{"children":["$","$12",null,{"name":"Next.MetadataOutlet","children":"$@13"}]}]]}]
21
+ b:["$","$1","h",{"children":[null,["$","$L14",null,{"children":"$L15"}],["$","div",null,{"hidden":true,"children":["$","$L16",null,{"children":["$","$12",null,{"name":"Next.Metadata","children":"$L17"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}]
22
+ 8:"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params"
23
+ f:{}
24
+ 10:"$0:f:0:1:1:children:0:props:children:1:props:serverProvidedParams:params"
25
+ 15:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
26
+ 18:I[27201,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"IconMark"]
27
+ 13:null
28
+ 17:[["$","title","0",{"children":"LiteLLM Dashboard"}],["$","meta","1",{"name":"description","content":"LiteLLM Proxy Admin UI"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.1d32c690.ico","sizes":"48x48","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"./favicon.ico"}],["$","$L18","4",{}]]
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/next.svg ADDED
data/tefig/envs/olmes-eval/lib/python3.10/site-packages/litellm/proxy/_experimental/out/onboarding.html ADDED
@@ -0,0 +1 @@
 
 
1
+ <!DOCTYPE html><!--L07LLek3NGtynjTxlCdLS--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css" data-precedence="next"/><link rel="stylesheet" href="/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js"/><script src="/litellm-asset-prefix/_next/static/chunks/1300460219810c10.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/e96398764f77c728.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/726579f2940c2a2f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/turbopack-ddedb29a5eb0118f.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/570b2e10aa856e54.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/94dbdc1bda79d6d1.js" async=""></script><script src="/litellm-asset-prefix/_next/static/chunks/ae420624472238ad.js" async=""></script><meta name="next-size-adjust" content=""/><title>LiteLLM Dashboard</title><meta name="description" content="LiteLLM Proxy Admin UI"/><link rel="icon" href="/favicon.ico?favicon.1d32c690.ico" sizes="48x48" type="image/x-icon"/><link rel="icon" href="./favicon.ico"/><script src="/litellm-asset-prefix/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="inter_5972bc34-module__OU16Qa__className"><div hidden=""><!--$--><!--/$--></div><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><div class="flex items-center justify-center min-h-screen">Loading...</div><!--/$--><!--$--><!--/$--><script src="/litellm-asset-prefix/_next/static/chunks/5489ec6b9761f819.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[867271,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n3:I[71195,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\"],\"default\"]\n4:I[339756,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n5:I[837457,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"default\"]\n6:I[347257,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ClientPageRoot\"]\n7:I[566606,[\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"/litellm-asset-prefix/_next/static/chunks/570b2e10aa856e54.js\",\"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js\",\"/litellm-asset-prefix/_next/static/chunks/94dbdc1bda79d6d1.js\",\"/litellm-asset-prefix/_next/static/chunks/ae420624472238ad.js\"],\"default\"]\na:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"OutletBoundary\"]\nb:\"$Sreact.suspense\"\nd:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"ViewportBoundary\"]\nf:I[897367,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"MetadataBoundary\"]\n11:I[168027,[],\"default\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"style\"]\n:HL[\"/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"L07LLek3NGtynjTxlCdLS\",\"c\":[\"\",\"onboarding\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"onboarding\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/litellm-asset-prefix/_next/static/chunks/91037395c95e366d.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/9e09de50158b3159.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/7e5fe5584502da06.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"inter_5972bc34-module__OU16Qa__className\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L6\",null,{\"Component\":\"$7\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{},\"promises\":[\"$@8\",\"$@9\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/0a6c418370a8c183.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/570b2e10aa856e54.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/94dbdc1bda79d6d1.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/litellm-asset-prefix/_next/static/chunks/ae420624472238ad.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$La\",null,{\"children\":[\"$\",\"$b\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@c\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Ld\",null,{\"children\":\"$Le\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lf\",null,{\"children\":[\"$\",\"$b\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L10\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$11\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:{}\n9:\"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"e:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"12:I[27201,[\"/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js\",\"/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js\"],\"IconMark\"]\nc:null\n10:[[\"$\",\"title\",\"0\",{\"children\":\"LiteLLM Dashboard\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"LiteLLM Proxy Admin UI\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.1d32c690.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"./favicon.ico\"}],[\"$\",\"$L12\",\"4\",{}]]\n"])</script></body></html>