diff --git a/frontend/src/app/llm/page.tsx b/frontend/src/app/llm/page.tsx index 766f7be..7789842 100644 --- a/frontend/src/app/llm/page.tsx +++ b/frontend/src/app/llm/page.tsx @@ -18,7 +18,6 @@ import { Plus, Settings, Trash2, - Copy, Calendar, Lock, Unlock, @@ -187,15 +186,6 @@ function LLMPageContent() { } } - const copyToClipboard = (text: string, type: string = "API key") => { - navigator.clipboard.writeText(text) - toast({ - title: "Copied!", - description: `${type} copied to clipboard` - }) - } - - const formatCurrency = (cents: number) => { return `$${(cents / 100).toFixed(4)}` } @@ -205,21 +195,6 @@ function LLMPageContent() { return new Date(dateStr).toLocaleDateString() } - - // Get the public API URL from the current window location - const getPublicApiUrl = () => { - if (typeof window !== 'undefined') { - const protocol = window.location.protocol - const hostname = window.location.hostname - const port = window.location.port || (protocol === 'https:' ? '443' : '80') - const portSuffix = (protocol === 'https:' && port === '443') || (protocol === 'http:' && port === '80') ? '' : `:${port}` - return `${protocol}//${hostname}${portSuffix}/api/v1` - } - return 'http://localhost/api/v1' - } - - const publicApiUrl = getPublicApiUrl() - return (
- {publicApiUrl}
-
-
- GET /v1/models - List available modelsPOST /v1/chat/completions - Chat completionsPOST /v1/embeddings - Text embeddings