Skip to content

feat: Gemini migration + frontend semantic HTML, SEO, error handling#17

Merged
doublesilver merged 2 commits into
mainfrom
feat/gemini-and-frontend-improvements
Feb 28, 2026
Merged

feat: Gemini migration + frontend semantic HTML, SEO, error handling#17
doublesilver merged 2 commits into
mainfrom
feat/gemini-and-frontend-improvements

Conversation

@doublesilver
Copy link
Copy Markdown
Owner

Summary

  • Switch LLM provider from OpenAI to Google Gemini (2.5 Flash + text-embedding-004)
  • Add semantic HTML: citations as <ol>, metrics as <dl>
  • Add fetchApi() wrapper with typed ApiError for consistent error handling
  • Add Next.js error.tsx error boundary
  • Add OpenGraph/SEO meta tags, lang="ko"
  • Fix tsconfig path alias @/* from ./src/* to ./app/*

Test plan

  • Frontend npm run build passes
  • Backend pytest 2/2 passes
  • Railway env vars updated (both dev + prod)
  • Verify Gemini embedding/chat responses after deploy

🤖 Generated with Claude Code

doublesilver and others added 2 commits February 28, 2026 18:20
- Fix tsconfig path alias @/* to ./app/* (was incorrectly ./src/*)
- Add OpenGraph meta tags, lang="ko" to layout
- Add Next.js error.tsx error boundary
- Extract fetchApi() wrapper with typed ApiError in lib.ts
- Replace citations <pre> with semantic <ol> list
- Replace metrics <pre> with <dl> definition list
- Add .meta and .citations styles to globals.css

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Replace OpenAI API calls with Gemini API (generativelanguage.googleapis.com)
- Embedding: text-embedding-004, Chat: gemini-2.5-flash
- Update config.py settings from openai_* to gemini_*
- Update .env.example with new GEMINI_* variables
- Preserve local fallback behavior when no API key is set

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
knowledge-copilot Building Building Preview, Comment Feb 28, 2026 9:26am

@doublesilver doublesilver merged commit 5833903 into main Feb 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant