orkgnlp.deepresearch.config.ModelConfig

class ModelConfig(api_key, base_url='https://api.openai.com/v1', custom_model=None)[source]

Bases: object

Configuration class for OpenAI models with structured output support.

Methods

generate_completion

Generate a completion using the configured model.

get_model_config

Get the appropriate model configuration.

Attributes

MIN_CHUNK_SIZE

generate_completion(messages, response_format=None, **kwargs)[source]

Generate a completion using the configured model.

Return type:

dict

get_model_config()[source]

Get the appropriate model configuration.

Return type:

dict