Skip to content

ChainGraph API Documentation / @badaitech/chaingraph-nodes / getSecretTypeForModel

Function: getSecretTypeForModel()

getSecretTypeForModel(model): "string" | "anthropic" | "openai" | "0g" | "gemini" | "coinmarketcap" | "deepseek" | "groq" | "moonshot" | "xAPI" | "xApp" | "OkxDexApi" | "alchemy"

Defined in: packages/chaingraph-nodes/src/nodes/ai/llm-call.node.ts:520

Maps an LLM model to its corresponding secret type.

Parameters

model

LLMModels

The LLM model to get the secret type for

Returns

"string" | "anthropic" | "openai" | "0g" | "gemini" | "coinmarketcap" | "deepseek" | "groq" | "moonshot" | "xAPI" | "xApp" | "OkxDexApi" | "alchemy"

The secret type for the given model

Licensed under BUSL-1.1