Drop the Supabase backend and call the AI provider directly from the
browser. The endpoint URL, API key, and model name are stored in
localStorage and used for direct /chat/completions requests.
- src/lib/llm.ts: config persistence, direct fetch, JSON extraction,
shape validation, connection test
- src/lib/prompts.ts: full + partial-regeneration system prompts and
user-message builder
- src/lib/{api,supabase}.ts removed
- supabase/ directory removed
- @supabase/supabase-js dropped from package.json
- README updated to describe the standalone architecture and CORS caveats
- .gitignore: drop Supabase entries, exclude *.tsbuildinfo
17 lines
643 B
XML
17 lines
643 B
XML
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none">
|
|
<defs>
|
|
<linearGradient id="g" x1="0" y1="0" x2="32" y2="32" gradientUnits="userSpaceOnUse">
|
|
<stop offset="0" stop-color="#7c3aed"/>
|
|
<stop offset="1" stop-color="#06b6d4"/>
|
|
</linearGradient>
|
|
</defs>
|
|
<rect width="32" height="32" rx="7" fill="#080810"/>
|
|
<g stroke="url(#g)" stroke-width="2" stroke-linecap="round">
|
|
<line x1="6" y1="11" x2="6" y2="21"/>
|
|
<line x1="11" y1="7" x2="11" y2="25"/>
|
|
<line x1="16" y1="12" x2="16" y2="20"/>
|
|
<line x1="21" y1="9" x2="21" y2="23"/>
|
|
<line x1="26" y1="13" x2="26" y2="19"/>
|
|
</g>
|
|
</svg>
|