Skip to content

Add UberLLM as an AI provider - #206

Open
PSA-Team-source wants to merge 1 commit into
DataflareApp:mainfrom
PSA-Team-source:add-uberllm-provider
Open

PSA-Team-source wants to merge 1 commit into
DataflareApp:mainfrom
PSA-Team-source:add-uberllm-provider

Conversation

@PSA-Team-source

Copy link
Copy Markdown

Adds UberLLM as a provider type, next to OpenRouter, Opper and Requesty:

  • UberLLM enum member, UberLLMConfig and its place in ALL_PROVIDER_TYPES (tauri/client.ts)
  • default base URL https://api.uberllm.dev/v1 and the /models fetch, in the id-only group with Opper and Requesty (settings/provider/api.ts)
  • the generic server icon, shared with Requesty, as there is no UberLLM asset in the app (provider-icon.tsx)
  • the OpenAI-compatible client case (database/ai/services.ts)

UberLLM is an OpenAI-compatible API where one key reaches about 240 chat models from different vendors, with ids like deepseek/deepseek-v4.1-flash, openai/gpt-4o-mini or anthropic/claude-sonnet-4.6. For the SQL assistant that means you can try a few models on the same schema/question without adding a provider per vendor. GET /v1/models with the key returns only the chat models, in the OpenAI { data: [{ id }] } shape, so the model picker does not fill up with image or video models.

Mirrors #202.

Testing:

  • tsc --noEmit -p . passes and oxfmt --check is clean on the four changed files.
  • I did not build the Tauri app. I ran the provider settings in Node instead: the base URL read from api.ts, the /models response parsed with the same zod schema as the id-only group (243 models parsed), and chat through createOpenAICompatible with the same options as services.ts (global fetch in place of tauriFetch).

Tested with deepseek/deepseek-v4.1-flash: generateText returned SELECT COUNT(*) FROM users; for "count rows in table users", and streamText streamed the expected reply; openai/gpt-4o-mini gave the same.

Keys: https://uberllm.dev/signup
Per-model prices (usually below list price): https://uberllm.dev/models

I work on UberLLM.

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