lingjiechen2 rewires mike for Azure OpenAI and removes multi-user auth

A single commit reconfigures mike for a private Azure deployment: OpenAI Responses API out, Azure Chat Completions in, Supabase auth replaced with a hard-coded UUID, and the UI renamed "Johann". Three unrelated changes, one commit.

infrastructurebranding

The OpenAI provider in backend/src/lib/llm/openai.ts is rewritten from scratch. The Responses API types and URL are gone; the replacement reads AZURE_OPENAI_ENDPOINT and AZURE_OPENAI_API_KEY from env and builds deployment URLs in the form ${endpoint}/openai/deployments/${model}/chat/completions?api-version=2024-08-01-preview. Tool calls are remapped from the Responses function_call item shape to Chat Completions tool_calls. The net diff is -116 lines on the provider file.

Auth is gutted. backend/src/middleware/auth.ts and frontend/src/contexts/AuthContext.tsx no longer touch Supabase. Every request resolves to a fixed user id (f3f6a836-a71a-41fd-a0e2-635ca5e5ccb3) and email (local@mike.app). No feature flag, no env switch.

Model defaults shift from the gpt-5.x tier to gpt-4.1 / gpt-4.1-mini across all three tiers, and the DEFAULT constants drop their Gemini fallbacks in favour of gpt-4.1. Sidebar and logo copy changes to "Johann".

The ORIGIN notes a UIUC email, suggesting a university Azure subscription is the likely motivation. The author needed Azure access rather than direct OpenAI API keys.

So what Skip for direct import. The auth bypass is unconditional and hard-codes a UUID - landing it in any multi-user deployment creates an obvious security hole. The Azure Chat Completions path has reuse value if you ever need Azure-hosted OpenAI, but only after refactoring it to coexist with the Responses path behind an env-var switch. Nothing else in this commit is generalizable.

View this fork on GitHub →

Spotted something wrong? Or know the PR text has fresher detail than the writeup above?

Commits in this thread

1 commit from lingjiechen2/mike, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
e68eee91 Configure Johann: Azure OpenAI integration, bypass auth for single-user, rebrand to Johann Lingjie Chen 2026-05-17 ↗ GitHub
commit body
- Replace OpenAI Responses API with Azure Chat Completions API
- Add AZURE_OPENAI_ENDPOINT/AZURE_OPENAI_API_KEY support
- Bypass Supabase auth for single-user local deployment
- Set gpt-4.1 as default model across frontend and backend
- Update OpenAI model list to Azure-available models (gpt-4.1, gpt-4o)
- Rebrand app name from Mike to Johann

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Capture this thread into my fork

Download a single Markdown prompt that tells Claude how to port every commit above into your working tree — adapting paths and structure to match your repo. Run it via claude -p < capture-thread-473.md from inside the repo you want the changes in.

⬇ Download capture-thread-473.md