get_api_key: Utility functions for API key management
Description
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)
Value
The API key if found, NULL otherwise
Arguments
- model
The name of the model to get the API key for
- api_keys
Named list of API keys
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.