ccproxy.utils.models_provider¶
ccproxy.utils.models_provider
¶
Shared models provider for CCProxy API Server.
This module provides a centralized source for all available models, combining Claude and OpenAI models in a consistent format.
get_anthropic_models
¶
Get list of Anthropic models with metadata.
Returns:
Type | Description |
---|---|
list[dict[str, Any]]
|
List of Anthropic model entries with type, id, display_name, and created_at fields |
Source code in ccproxy/utils/models_provider.py
get_openai_models
¶
Get list of recent OpenAI models with metadata.
Returns:
Type | Description |
---|---|
list[dict[str, Any]]
|
List of OpenAI model entries with id, object, created, and owned_by fields |
Source code in ccproxy/utils/models_provider.py
get_models_list
¶
Get combined list of available Claude and OpenAI models.
Returns:
Type | Description |
---|---|
dict[str, Any]
|
Dictionary with combined list of models in mixed format compatible with both |
dict[str, Any]
|
Anthropic and OpenAI API specifications |