Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet" />
<title>ACE-Step DAW</title>
<script>
if (typeof crypto.randomUUID !== 'function') {
crypto.randomUUID = function() {
return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, function(c) {
return (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16);
});
};
}
</script>
</head>
<body class="bg-zinc-950 text-zinc-100">
<div id="root"></div>
Expand Down
18 changes: 18 additions & 0 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';

// Initialize default provider list if not already set
const PROVIDERS_KEY = 'ace-step-daw-chat-providers';
try {
const stored = localStorage.getItem(PROVIDERS_KEY);
const providers = stored ? JSON.parse(stored) : null;
if (!providers) {
const defaults = [
{ id: 'anthropic', name: 'Anthropic', apiKey: '', baseUrl: 'https://api.anthropic.com/v1', enabled: false },
{ id: 'openai', name: 'OpenAI', apiKey: '', baseUrl: 'https://api.openai.com/v1', enabled: false },
{ id: 'google', name: 'Google AI', apiKey: '', baseUrl: 'https://generativelanguage.googleapis.com/v1beta', enabled: false },
{ id: 'openrouter', name: 'OpenRouter', apiKey: '', baseUrl: 'https://openrouter.ai/api/v1', enabled: false },
{ id: 'deepseek', name: 'DeepSeek', apiKey: '', baseUrl: 'https://api.deepseek.com/v1', enabled: false },
{ id: 'xai', name: 'xAI', apiKey: '', baseUrl: 'https://api.xai.io/v1', enabled: false },
];
localStorage.setItem(PROVIDERS_KEY, JSON.stringify(defaults));
}
} catch { /* ignore */ }
import './index.css';
import App from './App';
import { getAudioEngine } from './hooks/useAudioEngine';
Expand Down
Loading