PersistentAI API Documentation / @persistentai/fireflow-nodes / createLLMInstance
Function: createLLMInstance()
createLLMInstance(
config,apiKey):ChatDeepSeek|ChatOpenAI<ChatOpenAICallOptions> |ChatAnthropic|ChatGoogleGenerativeAI|ChatGroq
Defined in: packages/fireflow-nodes/src/nodes/ai/llm-call-with-structured-output-v2.node.ts:563
Create an LLM instance based on the selected model.
Parameters
config
apiKey
string
Returns
ChatDeepSeek | ChatOpenAI<ChatOpenAICallOptions> | ChatAnthropic | ChatGoogleGenerativeAI | ChatGroq