Skip to content

7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.

TypeScript

fix(client): force IPv4 in Vite dev proxy for Windows (#98)

bharvey42c3956742c291
diff --git a/client/vite.config.ts b/client/vite.config.ts
index d310b24e..b7fa56db 100644
--- a/client/vite.config.ts
+++ b/client/vite.config.ts
@@ -21,8 +21,10 @@ export default defineConfig(({ mode }) => {
},
server: {
proxy: {
- '/api': `http://localhost:${serverPort}`,
- '/v1': `http://localhost:${serverPort}`,
+ // Force IPv4 — on Windows + Node 17+, `localhost` resolves to ::1 first,
+ // which can collide with wslrelay / Docker Desktop listeners on the same port.
+ '/api': `http://127.0.0.1:${serverPort}`,
+ '/v1': `http://127.0.0.1:${serverPort}`,
},
},
}