René's URL Explorer Experiment


Title: feat(modal): add Modal Labs integration by icecrasher321 · Pull Request #6896 · simstudioai/sim · GitHub

Open Graph Title: feat(modal): add Modal Labs integration by icecrasher321 · Pull Request #6896 · simstudioai/sim

X Title: feat(modal): add Modal Labs integration by icecrasher321 · Pull Request #6896 · simstudioai/sim

Description: Adds a Modal block with three operations: Call Function, Chat Completion, and List Models. Why only three operations Modal has no public REST control plane. The Python, JS, and Go SDKs all speak gRPC to api.modal.com, and their complete docs (llms-full.txt) contain no REST API section — so Sandboxes, Apps, Volumes, and the rest of Modal's primitives simply aren't reachable from an HTTP-only tool. What is reachable is deployed Web Functions/Servers, and the OpenAI-compatible Endpoints API. That's what this covers. Operation Endpoint Call Function your deployed Web Function / Server URL Chat Completion {endpoint}/v1/chat/completions List Models {endpoint}/v1/models (defaults to the Shared Endpoint host) Notes for review Auth sends the proxy-token pair as Modal-Key / Modal-Secret rather than the equivalent combined Authorization: Bearer wk-….ws-…. That leaves Authorization free for a Web Function that validates its own bearer token. Required for Endpoints (always authenticated), optional for Web Functions (unauthenticated by default). Both URL fields require https. Modal terminates TLS for .modal.run, .modal.direct, and custom domains alike, so a cleartext URL is always a misconfiguration — and one that would put the proxy token on the wire in the clear. request.modelInput is on Chat Completion only. The system prompt and user message provably reach a model, so they project to canonical placeholders before egress. Call Function deliberately has no provenance hook: a Web Function runs arbitrary user code, and nothing proves its body reaches a model. Adding one there would be inference, not evidence. One thing I could not verify. Modal's docs show the /v1/models curl and say it lists "model IDs", but never print the response body. data[].id is directly supported by that wording; object, created, and owned_by are inferred from OpenAI compatibility, so they're marked optional. Happy to tighten them against a live payload if someone has a token. Behaviour worth knowing A body typed for POST and then switched to GET is dropped at the tool layer, so a stale value can't ride along. A function that labels its body application/json but returns something else surfaces as raw text instead of failing the call with a bare SyntaxError — that's the user's bug to see, not a reason to lose the response. All three response reads are capped at 10 MiB. Testing 38 tests across the block mapping, the URL/auth/body helpers, and call_function's response handling. The two tests covering the behaviours above were each reverted once and watched go red. Full audit suite (32 checks), lint, and type-check all pass; generated artifacts regenerated and their diffs reviewed — every hunk is additive. 🤖 Generated with Claude Code

Open Graph Description: Adds a Modal block with three operations: Call Function, Chat Completion, and List Models. Why only three operations Modal has no public REST control plane. The Python, JS, and Go SDKs all speak gR...

X Description: Adds a Modal block with three operations: Call Function, Chat Completion, and List Models. Why only three operations Modal has no public REST control plane. The Python, JS, and Go SDKs all speak gR...

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:b143aaf0-d610-a138-7f48-32d247b54e7b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id903E:8FDF6:16FD7B:1E6027:6AFBB15E
html-safe-nonce199270748333f53d5bd8897cccd1ba9f796201cf70372250e973e9ac0828c2bb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDNFOjhGREY2OjE2RkQ3QjoxRTYwMjc6NkFGQkIxNUUiLCJ2aXNpdG9yX2lkIjoiODQ1MjU2NDQ4ODY0ODYzNDcxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9c5bad307fc30080584d2552f847ae4d5680baabea0385a330a4d193c2b0a50d
hovercard-subject-tagpull_request:4326073233
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/6896/files
twitter:imagehttps://avatars.githubusercontent.com/u/17950982?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/17950982?s=400&v=4
og:image:altAdds a Modal block with three operations: Call Function, Chat Completion, and List Models. Why only three operations Modal has no public REST control plane. The Python, JS, and Go SDKs all speak gR...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonee25fbd830d3e6ad0e8935c105cf4fdc70c593dffcd27bb45b790ae4fece5ea55
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
release08c8f17f9d27054a108b8b6254e405de0151f660
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6896/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6896%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%2F6896%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/6896/files
Reloadhttps://github.com/simstudioai/sim/pull/6896/files
Reloadhttps://github.com/simstudioai/sim/pull/6896/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests200 (200)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
icecrasher321https://github.com/icecrasher321
staginghttps://github.com/simstudioai/sim/tree/staging
feat/modal-integrationhttps://github.com/simstudioai/sim/tree/feat/modal-integration
Conversation 10 https://github.com/simstudioai/sim/pull/6896
Commits 2 https://github.com/simstudioai/sim/pull/6896/commits
Checks 30 https://github.com/simstudioai/sim/pull/6896/checks
Files changed https://github.com/simstudioai/sim/pull/6896/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6896/files
feat(modal): add Modal Labs integration https://github.com/simstudioai/sim/pull/6896/files#top
Show all changes 2 commits https://github.com/simstudioai/sim/pull/6896/files
da11e69 feat(modal): add Modal Labs integration Aug 20, 2026 https://github.com/simstudioai/sim/pull/6896/commits/da11e691e264be3a659dda39a453b419d6164eb7
3312181 fix(modal): type the wire payloads and default chat to the shared end… Aug 20, 2026 https://github.com/simstudioai/sim/pull/6896/commits/3312181c425f59c3641294ad40017e327f0202d0
Clear filters https://github.com/simstudioai/sim/pull/6896/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6896/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6896/files
icons.tsx https://github.com/simstudioai/sim/pull/6896/files#diff-ad82ea6f4020b7b9555fc40c56c93b82fb246b727c105f8e1e0da9c03dc49274
icon-mapping.ts https://github.com/simstudioai/sim/pull/6896/files#diff-193abeb0603365b837c7d5ba8637be7ef998dde35d5746dfb8fa954fe8b1fcaa
meta.json https://github.com/simstudioai/sim/pull/6896/files#diff-59d7506ddfe264c889aa27abd55383fa1815c385f9e008f02aebc41c2d9819ff
modal.mdx https://github.com/simstudioai/sim/pull/6896/files#diff-38c878bac0d37167ad62df921df45bb0ec19b3af7b51c1eb56b4a10e16dfd322
modal.test.ts https://github.com/simstudioai/sim/pull/6896/files#diff-c2c0b7e2612396551c6ab1b7b12266b7b7957591907c3abddc6ea54883cc098d
modal.ts https://github.com/simstudioai/sim/pull/6896/files#diff-df4d202936e8d816a34c3596aae440410d9b3ae83392a9d36d9f6c6c653c19bc
registry-maps.ts https://github.com/simstudioai/sim/pull/6896/files#diff-989c47910e6b401eace95892b8e5119d99351912cc66928fe7dffcbaa6e086d7
icons.tsx https://github.com/simstudioai/sim/pull/6896/files#diff-75502961b6b1b69fd8b140643edfe13c66790af9f167e9a545cbcff6b2e9a20d
icon-mapping.ts https://github.com/simstudioai/sim/pull/6896/files#diff-31b9f59a480a2b6cc7d98ac5076f304e142b3a42be1ef966bfebd4643ba8c7af
tool-ids.ts https://github.com/simstudioai/sim/pull/6896/files#diff-fde8cbb4483aa4a8015ca3e576ab1c9b472d1c97c521fa67e81b469a5297bdfb
tool-metadata.ts https://github.com/simstudioai/sim/pull/6896/files#diff-3a953213cad2b14799015043b75c22cd4815397d3a43ccbf138816bedfdfccd7
tool-outputs.ts https://github.com/simstudioai/sim/pull/6896/files#diff-9fd709d7ce13d883503da15dae272e6c0a0a4fc25d7ec475f4ce6875c097b6aa
call_function.test.ts https://github.com/simstudioai/sim/pull/6896/files#diff-996f119bc4804732cfedc0f995e37b0a86a7ffa049d82f25991375b5793a9ab2
call_function.ts https://github.com/simstudioai/sim/pull/6896/files#diff-c1bb3b5897b29682184fe329be99cd78394292de6d3f80d3e0b151dbfed3768c
chat_completion.test.ts https://github.com/simstudioai/sim/pull/6896/files#diff-ee31b1edc69e34ee04bb2981d1c28364bd05eb97d90746636d4624a336d9876b
chat_completion.ts https://github.com/simstudioai/sim/pull/6896/files#diff-e77024b23ac423edf3360b810c1cee2eac9be4842e17ffac941726cb088632bc
index.ts https://github.com/simstudioai/sim/pull/6896/files#diff-f17016568718d7de50bbeb394a624e12f642821c27cfbdb8837f24ef26423aae
list_models.ts https://github.com/simstudioai/sim/pull/6896/files#diff-60932afd2621a40aba587cd28ed8a902b2732448cf4061d1f3584e62ec2946be
types.ts https://github.com/simstudioai/sim/pull/6896/files#diff-b6d0d5fce3986a962202b5c9393061b126f8ce2954012c90c0a6771d7fd3e3ac
utils.test.ts https://github.com/simstudioai/sim/pull/6896/files#diff-f5adcb6ca29d92400a85b89019f951df74534c3cebfced7cceec300a09c43a1e
utils.ts https://github.com/simstudioai/sim/pull/6896/files#diff-81a92f5a21bc15304b164229ee87643c8365169e27602cc8c2093ee79064ac60
registry.ts https://github.com/simstudioai/sim/pull/6896/files#diff-a05e54887bf05477726b00df4183dd4a3fa0fd1f82b867bbf156e1b6a6d7e3fa
integrations.json https://github.com/simstudioai/sim/pull/6896/files#diff-3c0cdbab0250ae3bd5869a2c3ce5c3f4f548d896e4fbbbc82a01ffc0f588a8cc
apps/docs/components/icons.tsxhttps://github.com/simstudioai/sim/pull/6896/files#diff-ad82ea6f4020b7b9555fc40c56c93b82fb246b727c105f8e1e0da9c03dc49274
View file https://github.com/simstudioai/sim/blob/3312181c425f59c3641294ad40017e327f0202d0/apps/docs/components/icons.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6896/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6896/files#diff-ad82ea6f4020b7b9555fc40c56c93b82fb246b727c105f8e1e0da9c03dc49274
https://github.com/simstudioai/sim/pull/6896/files#diff-ad82ea6f4020b7b9555fc40c56c93b82fb246b727c105f8e1e0da9c03dc49274
apps/docs/components/ui/icon-mapping.tshttps://github.com/simstudioai/sim/pull/6896/files#diff-193abeb0603365b837c7d5ba8637be7ef998dde35d5746dfb8fa954fe8b1fcaa
View file https://github.com/simstudioai/sim/blob/3312181c425f59c3641294ad40017e327f0202d0/apps/docs/components/ui/icon-mapping.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6896/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6896/files#diff-193abeb0603365b837c7d5ba8637be7ef998dde35d5746dfb8fa954fe8b1fcaa
https://github.com/simstudioai/sim/pull/6896/files#diff-193abeb0603365b837c7d5ba8637be7ef998dde35d5746dfb8fa954fe8b1fcaa
https://github.com/simstudioai/sim/pull/6896/files#diff-193abeb0603365b837c7d5ba8637be7ef998dde35d5746dfb8fa954fe8b1fcaa
https://github.com/simstudioai/sim/pull/6896/files#diff-193abeb0603365b837c7d5ba8637be7ef998dde35d5746dfb8fa954fe8b1fcaa
apps/docs/content/docs/en/integrations/meta.jsonhttps://github.com/simstudioai/sim/pull/6896/files#diff-59d7506ddfe264c889aa27abd55383fa1815c385f9e008f02aebc41c2d9819ff
View file https://github.com/simstudioai/sim/blob/3312181c425f59c3641294ad40017e327f0202d0/apps/docs/content/docs/en/integrations/meta.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6896/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6896/files#diff-59d7506ddfe264c889aa27abd55383fa1815c385f9e008f02aebc41c2d9819ff
https://github.com/simstudioai/sim/pull/6896/files#diff-59d7506ddfe264c889aa27abd55383fa1815c385f9e008f02aebc41c2d9819ff
apps/docs/content/docs/en/integrations/modal.mdxhttps://github.com/simstudioai/sim/pull/6896/files#diff-38c878bac0d37167ad62df921df45bb0ec19b3af7b51c1eb56b4a10e16dfd322
View file https://github.com/simstudioai/sim/blob/3312181c425f59c3641294ad40017e327f0202d0/apps/docs/content/docs/en/integrations/modal.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6896/{{ revealButtonHref }}
apps/sim/blocks/blocks/modal.test.tshttps://github.com/simstudioai/sim/pull/6896/files#diff-c2c0b7e2612396551c6ab1b7b12266b7b7957591907c3abddc6ea54883cc098d
View file https://github.com/simstudioai/sim/blob/3312181c425f59c3641294ad40017e327f0202d0/apps/sim/blocks/blocks/modal.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6896/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/6896/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6896/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.