TextGenerationModel
Sub classes¶
| Name | Children | Inherits |
|---|---|---|
| ChatCompletionModel tokonomics.data_models Chat and completion models with comprehensive pricing and capability support. |
||
| ResponsesModel tokonomics.data_models Reasoning/responses models (like OpenAI o1 series). |
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| BaseModelConfig tokonomics.data_models Base configuration shared by all model types. |
⋔ Inheritance diagram¶
graph TD
1919614333["data_models.TextGenerationModel"]
823585605["data_models.BaseModelConfig"]
330168112["schema.Schema"]
3879467795["main.BaseModel"]
2751680898["builtins.object"]
823585605 --> 1919614333
330168112 --> 823585605
3879467795 --> 330168112
2751680898 --> 3879467795
🛈 DocStrings¶
Bases: BaseModelConfig
Base for text generation models (chat, completion, responses).
Source code in src/tokonomics/data_models.py
cache_read_input_token_cost
class-attribute
instance-attribute
¶
Cache read input token cost.
input_cost_per_token
class-attribute
instance-attribute
¶
Cost per input token.
input_cost_per_token_batches
class-attribute
instance-attribute
¶
Input cost per token for batch processing.
max_input_tokens
class-attribute
instance-attribute
¶
Maximum input tokens.
max_output_tokens
class-attribute
instance-attribute
¶
Maximum output tokens.
output_cost_per_token
class-attribute
instance-attribute
¶
Cost per output token.
output_cost_per_token_batches
class-attribute
instance-attribute
¶
Output cost per token for batch processing.
supported_endpoints
class-attribute
instance-attribute
¶
List of supported API endpoints.
supported_modalities
class-attribute
instance-attribute
¶
List of supported input modalities.
supported_output_modalities
class-attribute
instance-attribute
¶
List of supported output modalities.
supports_function_calling
class-attribute
instance-attribute
¶
Whether model supports function calling.
supports_native_streaming
class-attribute
instance-attribute
¶
Whether model supports native streaming.
supports_parallel_function_calling
class-attribute
instance-attribute
¶
Whether model supports parallel function calling.
supports_pdf_input
class-attribute
instance-attribute
¶
Whether model supports PDF input.
supports_prompt_caching
class-attribute
instance-attribute
¶
Whether model supports prompt caching.
supports_reasoning
class-attribute
instance-attribute
¶
Whether model supports reasoning.
supports_response_schema
class-attribute
instance-attribute
¶
Whether model supports response schema.
supports_system_messages
class-attribute
instance-attribute
¶
Whether model supports system messages.
supports_tool_choice
class-attribute
instance-attribute
¶
Whether model supports tool choice.
supports_vision
class-attribute
instance-attribute
¶
Whether model supports vision/image input.
supports_web_search
class-attribute
instance-attribute
¶
Whether model supports web search.