MCPcopy Index your code
hub / github.com/simstudioai/sim / providerApiKeyEnvVar

Function providerApiKeyEnvVar

apps/sim/executor/handlers/pi/keys.ts:117–119  ·  view source on GitHub ↗
(providerId: string)

Source from the content-addressed store, hash-verified

115 * backend rejects `null` providers with a clear error rather than guessing.
116 */
117export function providerApiKeyEnvVar(providerId: string): string | null {
118 return isPiSupportedProvider(providerId) ? PROVIDER_API_KEY_ENV_VARS[providerId] : null
119}
120
121/** Maps a Sim thinking level to Pi's `ThinkingLevel` (shared by both backends). */
122export function mapThinkingLevel(level?: string): CreateAgentSessionOptions['thinkingLevel'] {

Callers 2

keys.test.tsFile · 0.90
runCloudPiFunction · 0.90

Calls 1

isPiSupportedProviderFunction · 0.90

Tested by

no test coverage detected