OpenAISchemaConverter
- model_type (ModelType, optional): The model type to be used. (default: ModelType.GPT_4O_MINI)
- model_config_dict (Optional[Dict[str, Any]], optional): A dictionary that will be fed into:obj:
openai.ChatCompletion.create(). If :obj:None, :obj:ChatGPTConfig().as_dict()will be used. (default: :obj:None) - api_key (Optional[str], optional): The API key for authenticating with the OpenAI service. (default: :obj:
None) - output_schema (Optional[Type[BaseModel]], optional): The expected format of the response. (default: :obj:
None) - prompt (Optional[str], optional): The prompt to be used. (default: :obj:
None)
init
convert
- content (str): The content to be formatted.
- output_schema (Union[Type[BaseModel], str, Callable]): The expected format of the response.