For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 a status field and the integrations in data.llms.

    • With llm_id, the matching LLM integration object.

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:

Sample Output

Last updated