Skip to content

feat(freemilk): add experimental Google-login provider - #677

Merged
caigee-cmd merged 2 commits into
mainfrom
feat/freemilk-provider
Dec 6, 2026
Merged

caigee-cmd merged 2 commits into
mainfrom
feat/freemilk-provider

Conversation

@caigee-cmd

Copy link
Copy Markdown
Owner

Summary

  • Add an experimental FreeMilk provider. Browser login opens Google, the loopback callback exchanges the identity token at api.milq.ai, and the session refreshes with the stored refresh token.
  • Stream the hosted chat-completions models (glm-5.3-flash, deepseek-v4.1-flash, kimi-k3.1-pro) through ai.milq.ai, sending the catalog x-milq-mode header.
  • Show the FreeMilk app icon in the console provider mark.

Responses and Anthropic hosted models are not wired yet. Login has not been exercised against a live Google account; the chat wire was taken from a local FreeMilk session.

Test plan

  • go test ./internal/providers/freemilk/ ./internal/providers/ ./internal/app/ ./internal/control/
  • Sign in with Google from the console and send one chat completion

Sign in with Google through a loopback callback, exchange the identity
token at api.milq.ai, and stream the hosted chat models through ai.milq.ai.
Replace the pinned catalog with GET /auth/models so new hosted chat models
show up without a client change. Responses and Anthropic formats stay out
until the adapter speaks those wires.
@caigee-cmd
caigee-cmd merged commit a1eff18 into main Dec 6, 2026
6 checks passed
@caigee-cmd
caigee-cmd deleted the feat/freemilk-provider branch December 6, 2026 02:38
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