Repository navigation
feat: add UberLLM as AI provider - #157
Open
al-global-tech wants to merge 1 commit into
Open
al-global-tech wants to merge 1 commit into
al-global-tech wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📋 Description
Adds UberLLM as an AI provider, in the same shape as the Runcrate provider (#154). UberLLM has an OpenAI-compatible API at
https://api.uberllm.dev/v1with one key for models from several vendors (DeepSeek, Qwen, OpenAI, Anthropic, Google and others), so the provider is aChatOpenAIwith a different base URL.backend/src/utils/llm/models/uberllm.ts:makeLLMwith default modeldeepseek/deepseek-v3.2; embeddings fall back to the OpenAI settings, as the other chat-only gateways here do.backend/src/utils/llm/models/index.ts:LLM_PROVIDER=uberllm.backend/src/config/env.ts:UBERLLM_API_KEY,UBERLLM_MODEL,UBERLLM_BASE_URL..env.exampleandREADME.md: the new block and the provider list.backend/src/utils/llm/models/__tests__/uberllm.test.ts: defaults, configured model and base URL, temperature and max tokens, embeddings fallback.Keys: https://uberllm.dev/signup (prepaid, no monthly fee). Model ids and current prices: https://uberllm.dev/models. The catalog at
https://api.uberllm.dev/v1/modelsneeds no key.🔄 Type of Change
🧪 Testing
I have tested this change locally
I have added tests that prove my fix is effective or that my feature works
New and existing unit tests pass locally with my changes
npm run build(tsc -p backend/tsconfig.json): no errors.npx vitest run backend/src/utils/llm: 13 files passed, 1 skipped; 78 tests passed, 3 skipped (the newuberllm.test.tshas 4 tests).npm cifails onmainbecausepackage-lock.jsonis out of sync withpackage.json, so dependencies were installed withnpm installand the lock file change was discarded.Live check through the built backend:
makeModels()frombackend/dist/src/utils/llm/models/index.jswithLLM_PROVIDER=uberllmand a realUBERLLM_API_KEY, thenllm.invoke([{ role: 'user', content: 'Reply with the single word: pong' }]):deepseek/deepseek-v3.2:pongqwen/qwen3-235b-a22b-2507:pongopenai/gpt-4o-mini:Pong📱 Screenshots (if applicable)
N/A, backend provider only.
🔍 Code Review Checklist
📚 Related Issues
None.
🚀 Deployment Notes
None. The provider is only used when
LLM_PROVIDER=uberllm.📋 Additional Context
Disclosure: I work on UberLLM.
🤖 Generated with Claude Code