Skip to contents

This file contains utility functions for managing API keys and related operations. Get API key for a specific model

Usage

get_api_key(model, api_keys)

Arguments

model

The name of the model to get the API key for

api_keys

Named list of API keys

Value

The API key if found, NULL otherwise

Details

This function retrieves the appropriate API key for a given model by first checking the provider name and then the model name in the provided API keys list.