René's URL Explorer Experiment


Title: feat: add LiteLLM as AI gateway provider by RheagalFire · Pull Request #4644 · simstudioai/sim · GitHub

Open Graph Title: feat: add LiteLLM as AI gateway provider by RheagalFire · Pull Request #4644 · simstudioai/sim

X Title: feat: add LiteLLM as AI gateway provider by RheagalFire · Pull Request #4644 · simstudioai/sim

Description: Summary Adds LiteLLM as a provider, enabling access to 100+ LLM backends through a LiteLLM proxy server. Follows the vLLM provider pattern (OpenAI SDK with custom baseURL, dynamic model discovery via /v1/models). Fixes #2859 Type of Change Bug fix New feature Breaking change Documentation Other: ___________ Testing Model discovery: Discovered models: [ 'litellm/anthropic/claude-sonnet-4-6' ] Basic completion through LiteLLM proxy: Content: 4 Model: claude-sonnet-4-6 Tokens: {"completion_tokens":5,"prompt_tokens":20,"total_tokens":25} Streaming: Hello! Full content: Hello! PASS: streaming works Tool calling: Tool call: {"arguments":"{\"city\": \"London\"}","name":"get_weather"} PASS: tool calling works All tests use OpenAI SDK with baseURL: http://localhost:4000/v1 pointing at a LiteLLM proxy, which is exactly what the provider does. Deep-dive bugs found and fixed: attachments.ts: formatMessagesForProvider missing litellm (would hit exhaustive never check at runtime) blocks/utils.ts: litellm not excluded from API key requirement check (dynamic providers don't need pre-configured keys) providers/utils.ts: missing metadata, getBaseModelProviders exclusion, and getApiKey handler stores/providers: missing ProviderName type and store defaults Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary Adds LiteLLM as a provider, enabling access to 100+ LLM backends through a LiteLLM proxy server. Follows the vLLM provider pattern (OpenAI SDK with custom baseURL, dynamic model discovery v...

X Description: Summary Adds LiteLLM as a provider, enabling access to 100+ LLM backends through a LiteLLM proxy server. Follows the vLLM provider pattern (OpenAI SDK with custom baseURL, dynamic model discovery v...

Opengraph URL: https://github.com/simstudioai/sim/pull/4644

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:f626c66e-0de7-6247-96c4-e2b9e471035a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8BC6:9CA74:F8025E:154768C:6AFB656F
html-safe-nonceb69c9fc1726ce736150cb056633a099a103fe0bece1264e4d4e8aed9ca145b46
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkM2OjlDQTc0OkY4MDI1RToxNTQ3NjhDOjZBRkI2NTZGIiwidmlzaXRvcl9pZCI6IjQzMDI1MTE1MDk5MDMzNzM5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac17f0983b33ef8f417c6a8252dd50c754b9973c4660609d35c9d5cd0b5171835d
hovercard-subject-tagpull_request:3698058923
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/4644/files
twitter:imagehttps://avatars.githubusercontent.com/u/60213893?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/60213893?s=400&v=4
og:image:altSummary Adds LiteLLM as a provider, enabling access to 100+ LLM backends through a LiteLLM proxy server. Follows the vLLM provider pattern (OpenAI SDK with custom baseURL, dynamic model discovery v...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release59ef97164c52cf59bd10558ddec9c4f482763988
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/4644/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F4644%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F4644%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/4644/files
Reloadhttps://github.com/simstudioai/sim/pull/4644/files
Reloadhttps://github.com/simstudioai/sim/pull/4644/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
RheagalFirehttps://github.com/RheagalFire
simstudioai:mainhttps://github.com/simstudioai/sim/tree/main
RheagalFire:feat/add-litellm-providerhttps://github.com/RheagalFire/sim/tree/feat/add-litellm-provider
Conversation 10 https://github.com/simstudioai/sim/pull/4644
Commits 4 https://github.com/simstudioai/sim/pull/4644/commits
Checks 3 https://github.com/simstudioai/sim/pull/4644/checks
Files changed https://github.com/simstudioai/sim/pull/4644/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4644/files
feat: add LiteLLM as AI gateway provider https://github.com/simstudioai/sim/pull/4644/files#top
Show all changes 4 commits https://github.com/simstudioai/sim/pull/4644/files
fe39f57 feat: add LiteLLM as AI gateway provider RheagalFire May 17, 2026 https://github.com/simstudioai/sim/pull/4644/commits/fe39f579b5ea0634ac7b697c2392a2ad72460612
9667e88 fix: add litellm to attachments, provider store, utils, and block guards RheagalFire May 17, 2026 https://github.com/simstudioai/sim/pull/4644/commits/9667e8824614e3d08e1fcae352f27bba35b47d1b
475820a fix: add frontend model discovery pipeline for litellm provider RheagalFire May 17, 2026 https://github.com/simstudioai/sim/pull/4644/commits/475820abe0cd5cb573811895e29a0548eb2c7ca7
b4268ec fix: remove azureEndpoint fallback from LiteLLM provider RheagalFire May 17, 2026 https://github.com/simstudioai/sim/pull/4644/commits/b4268ec0133971eb952ae9ba59c39c19e15ddcaa
Clear filters https://github.com/simstudioai/sim/pull/4644/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4644/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4644/files
route.ts https://github.com/simstudioai/sim/pull/4644/files#diff-5768ac184d65a23544ed5c52cdbb236e12c716a3800935036c51dfba79ef5c74
provider-models-loader.tsx https://github.com/simstudioai/sim/pull/4644/files#diff-7521f27731a3b09b028f30bcf0a2e6a433c43be209f504964afa416b5b87d576
utils.ts https://github.com/simstudioai/sim/pull/4644/files#diff-00cc78b039ecda659f6de1dd449fed5676eae446e59d79ee378ba5dabd84674a
icons.tsx https://github.com/simstudioai/sim/pull/4644/files#diff-75502961b6b1b69fd8b140643edfe13c66790af9f167e9a545cbcff6b2e9a20d
providers.ts https://github.com/simstudioai/sim/pull/4644/files#diff-ef31b513002328bf4f464eb1772fc6dcbc3b43fdc725460438978d12284093fd
providers.ts https://github.com/simstudioai/sim/pull/4644/files#diff-e23489a87c691271e28ae0cb2d117acea3d3b68a748f05ec6e1ef76b14a5b7a6
env.ts https://github.com/simstudioai/sim/pull/4644/files#diff-7db3fc610ff89cf819c4eb69b43ec37ae18530e1861f6c322faeb62f8f48f298
attachments.ts https://github.com/simstudioai/sim/pull/4644/files#diff-b4a00becad44846eb2725595c690d0c3c872244a6ee3fc773d5bc9724913ae02
index.ts https://github.com/simstudioai/sim/pull/4644/files#diff-d630c240ddcd03fc91feb9d689a6682ed7b1f46c1509af39d2062c797ca3f381
utils.ts https://github.com/simstudioai/sim/pull/4644/files#diff-9228d6ef66b2835574512fc2a18107d43b0cbb3159cd6969fc64eb91a0d0648d
models.ts https://github.com/simstudioai/sim/pull/4644/files#diff-352174d7cadfdcaf759836ee5b99d67c4cc92aa73065e6983e547fe5c55299b3
registry.ts https://github.com/simstudioai/sim/pull/4644/files#diff-2c6b080e8b57935545cf9cd57f5eb8b7caa6bcc4a4d650c82fdde3d259fb02dd
types.ts https://github.com/simstudioai/sim/pull/4644/files#diff-173d679b23ede4297b7b374f41798fcf014b853f44c38f29fbbcbb8ee5ba39f5
utils.ts https://github.com/simstudioai/sim/pull/4644/files#diff-e5a8ed3fe51b6470c7acddd9beac4eecb4c915cacc23d40b68b566a998ac121e
store.ts https://github.com/simstudioai/sim/pull/4644/files#diff-e5398ac106a528b4fc0ae2411f1f96ff627ebfc98a2933462dd9adf6f83adae1
types.ts https://github.com/simstudioai/sim/pull/4644/files#diff-1029df79eeeaf85ca8ca8af084d5da1fb902bc0259c85ee09b07977874467f81
apps/sim/app/api/providers/litellm/models/route.tshttps://github.com/simstudioai/sim/pull/4644/files#diff-5768ac184d65a23544ed5c52cdbb236e12c716a3800935036c51dfba79ef5c74
View file https://github.com/RheagalFire/sim/blob/b4268ec0133971eb952ae9ba59c39c19e15ddcaa/apps/sim/app/api/providers/litellm/models/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4644/{{ revealButtonHref }}
apps/sim/app/workspace/[workspaceId]/providers/provider-models-loader.tsxhttps://github.com/simstudioai/sim/pull/4644/files#diff-7521f27731a3b09b028f30bcf0a2e6a433c43be209f504964afa416b5b87d576
View file https://github.com/RheagalFire/sim/blob/b4268ec0133971eb952ae9ba59c39c19e15ddcaa/apps/sim/app/workspace/%5BworkspaceId%5D/providers/provider-models-loader.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4644/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4644/files#diff-7521f27731a3b09b028f30bcf0a2e6a433c43be209f504964afa416b5b87d576
https://github.com/simstudioai/sim/pull/4644/files#diff-7521f27731a3b09b028f30bcf0a2e6a433c43be209f504964afa416b5b87d576
https://github.com/simstudioai/sim/pull/4644/files#diff-7521f27731a3b09b028f30bcf0a2e6a433c43be209f504964afa416b5b87d576
https://github.com/simstudioai/sim/pull/4644/files#diff-7521f27731a3b09b028f30bcf0a2e6a433c43be209f504964afa416b5b87d576
https://github.com/simstudioai/sim/pull/4644/files#diff-7521f27731a3b09b028f30bcf0a2e6a433c43be209f504964afa416b5b87d576
apps/sim/blocks/utils.tshttps://github.com/simstudioai/sim/pull/4644/files#diff-00cc78b039ecda659f6de1dd449fed5676eae446e59d79ee378ba5dabd84674a
View file https://github.com/RheagalFire/sim/blob/b4268ec0133971eb952ae9ba59c39c19e15ddcaa/apps/sim/blocks/utils.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4644/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4644/files#diff-00cc78b039ecda659f6de1dd449fed5676eae446e59d79ee378ba5dabd84674a
Please reload this pagehttps://github.com/simstudioai/sim/pull/4644/files
https://github.com/simstudioai/sim/pull/4644/files#diff-00cc78b039ecda659f6de1dd449fed5676eae446e59d79ee378ba5dabd84674a
apps/sim/components/icons.tsxhttps://github.com/simstudioai/sim/pull/4644/files#diff-75502961b6b1b69fd8b140643edfe13c66790af9f167e9a545cbcff6b2e9a20d
View file https://github.com/RheagalFire/sim/blob/b4268ec0133971eb952ae9ba59c39c19e15ddcaa/apps/sim/components/icons.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4644/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4644/files#diff-75502961b6b1b69fd8b140643edfe13c66790af9f167e9a545cbcff6b2e9a20d
https://github.com/simstudioai/sim/pull/4644/files#diff-75502961b6b1b69fd8b140643edfe13c66790af9f167e9a545cbcff6b2e9a20d
apps/sim/hooks/queries/providers.tshttps://github.com/simstudioai/sim/pull/4644/files#diff-ef31b513002328bf4f464eb1772fc6dcbc3b43fdc725460438978d12284093fd
View file https://github.com/RheagalFire/sim/blob/b4268ec0133971eb952ae9ba59c39c19e15ddcaa/apps/sim/hooks/queries/providers.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4644/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4644/files#diff-ef31b513002328bf4f464eb1772fc6dcbc3b43fdc725460438978d12284093fd
https://github.com/simstudioai/sim/pull/4644/files#diff-ef31b513002328bf4f464eb1772fc6dcbc3b43fdc725460438978d12284093fd
https://github.com/simstudioai/sim/pull/4644/files#diff-ef31b513002328bf4f464eb1772fc6dcbc3b43fdc725460438978d12284093fd
https://github.com/simstudioai/sim/pull/4644/files#diff-ef31b513002328bf4f464eb1772fc6dcbc3b43fdc725460438978d12284093fd
apps/sim/lib/api/contracts/providers.tshttps://github.com/simstudioai/sim/pull/4644/files#diff-e23489a87c691271e28ae0cb2d117acea3d3b68a748f05ec6e1ef76b14a5b7a6
View file https://github.com/RheagalFire/sim/blob/b4268ec0133971eb952ae9ba59c39c19e15ddcaa/apps/sim/lib/api/contracts/providers.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4644/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4644/files#diff-e23489a87c691271e28ae0cb2d117acea3d3b68a748f05ec6e1ef76b14a5b7a6
https://github.com/simstudioai/sim/pull/4644/files#diff-e23489a87c691271e28ae0cb2d117acea3d3b68a748f05ec6e1ef76b14a5b7a6
apps/sim/lib/core/config/env.tshttps://github.com/simstudioai/sim/pull/4644/files#diff-7db3fc610ff89cf819c4eb69b43ec37ae18530e1861f6c322faeb62f8f48f298
View file https://github.com/RheagalFire/sim/blob/b4268ec0133971eb952ae9ba59c39c19e15ddcaa/apps/sim/lib/core/config/env.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4644/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4644/files#diff-7db3fc610ff89cf819c4eb69b43ec37ae18530e1861f6c322faeb62f8f48f298
https://github.com/simstudioai/sim/pull/4644/files#diff-7db3fc610ff89cf819c4eb69b43ec37ae18530e1861f6c322faeb62f8f48f298
apps/sim/providers/attachments.tshttps://github.com/simstudioai/sim/pull/4644/files#diff-b4a00becad44846eb2725595c690d0c3c872244a6ee3fc773d5bc9724913ae02
View file https://github.com/RheagalFire/sim/blob/b4268ec0133971eb952ae9ba59c39c19e15ddcaa/apps/sim/providers/attachments.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4644/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4644/files#diff-b4a00becad44846eb2725595c690d0c3c872244a6ee3fc773d5bc9724913ae02
https://github.com/simstudioai/sim/pull/4644/files#diff-b4a00becad44846eb2725595c690d0c3c872244a6ee3fc773d5bc9724913ae02
https://github.com/simstudioai/sim/pull/4644/files#diff-b4a00becad44846eb2725595c690d0c3c872244a6ee3fc773d5bc9724913ae02
https://github.com/simstudioai/sim/pull/4644/files#diff-b4a00becad44846eb2725595c690d0c3c872244a6ee3fc773d5bc9724913ae02
https://github.com/simstudioai/sim/pull/4644/files#diff-b4a00becad44846eb2725595c690d0c3c872244a6ee3fc773d5bc9724913ae02
https://github.com/simstudioai/sim/pull/4644/files#diff-b4a00becad44846eb2725595c690d0c3c872244a6ee3fc773d5bc9724913ae02
https://github.com/simstudioai/sim/pull/4644/files#diff-b4a00becad44846eb2725595c690d0c3c872244a6ee3fc773d5bc9724913ae02
Please reload this pagehttps://github.com/simstudioai/sim/pull/4644/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.