class CrynuxModel(OpenAICompatibleModel):
openai.ChatCompletion.create()
. If :obj:None
, :obj:CrynuxConfig().as_dict()
will be used. (default: :obj:None
)None
)None
)OpenAITokenCounter( ModelType.GPT_4O_MINI)
will be used.None
)3
) **kwargs (Any): Additional arguments to pass to the client initialization.def __init__(
self,
model_type: Union[ModelType, str],
model_config_dict: Optional[Dict[str, Any]] = None,
api_key: Optional[str] = None,
url: Optional[str] = None,
token_counter: Optional[BaseTokenCounter] = None,
timeout: Optional[float] = None,
max_retries: int = 3,
**kwargs: Any
):
def check_model_config(self):