Parameters we can pass to initChastModel or Model Class
model: (string/required) The name or identifier of the specific model you want to use with a provider. You can also specify both the model and its provider in a single argument using the ’:’ format, for example, ‘openai:o1’.
apiKey string The key required for authenticating with the model’s provider. This is usually issued when you sign up for access to the model. Often accessed by setting an environment variable.
temperature number Controls the randomness of the model’s output. A higher number makes responses more creative; lower ones make them more deterministic.
maxTokens number Limits the total number of tokens in the response, effectively controlling how long the output can be.
timeout number The maximum time (in seconds) to wait for a response from the model before canceling the request.
maxRetries numberdefault:"6" The maximum number of attempts the system will make to resend a request if it fails due to issues like network timeouts or rate limits. Retries use exponential backoff with jitter. Network errors, rate limits (429), and server errors (5xx) are retried automatically. Client errors such as 401 (unauthorized) or 404 are not retried. For long-running agent tasks on unreliable networks, consider increasing this to 10–15.