get_llms
imerit_ango.sdk.SDK.
get_llms(llm_id)
Retrieve the LLM integrations configured for your organization.
Parameters
llm_id: string, Optional, Default None
The unique identifier of an LLM integration. If provided, the function returns the matching integration instead of the full response.
Returns:
output: dict
Without
llm_id, a dictionary containing astatusfield and the integrations indata.llms.With
llm_id, the matching LLM integration object.
The response includes the stored provider API key in configuration.apiKey. Handle the response as sensitive data and do not write it to logs or expose it to clients.
Example
Retrieve all LLM integrations in the organization:
import os
from dotenv import load_dotenv
from imerit_ango.sdk import SDK
load_dotenv('variables.env')
api_key = os.getenv('API_KEY')
ango_sdk = SDK(api_key)
sdk_response = ango_sdk.get_llms()
llm_list = sdk_response['data']['llms']curl -X GET "https://imeritapi.ango.ai/v2/llms" \
-H "Content-Type: application/json" \
-H "apikey: $ANGO_API_KEY"Retrieve a specific LLM integration:
Last updated