Optional
abortAbort signal which can be used to cancel the request.
NOTE: AbortSignal is a client-only operation. Using it to cancel an operation will not cancel the request in the service. You will still be charged usage for any applicable operations.
Optional
generationConfiguration that the model uses to generate the response. Not supported by the Gemini Developer API.
Optional
httpUsed to override HTTP request options.
Optional
systemInstructions for the model to steer it toward better performance.
Optional
toolsCode that enables the system to interact with external systems to perform an action outside of the knowledge and scope of the model.
Config for the count_tokens method.