GeminiConfig: {
codeExecution?: boolean | {};
contextCache?: boolean;
functionCallingConfig?: {
allowedFunctionNames?: string[];
mode?: "ANY" | "MODE_UNSPECIFIED" | "AUTO" | "NONE";
};
maxOutputTokens?: number;
safetySettings?: {
category: | "HARM_CATEGORY_UNSPECIFIED"
| "HARM_CATEGORY_HATE_SPEECH"
| "HARM_CATEGORY_SEXUALLY_EXPLICIT"
| "HARM_CATEGORY_HARASSMENT"
| "HARM_CATEGORY_DANGEROUS_CONTENT";
threshold: | "BLOCK_LOW_AND_ABOVE"
| "BLOCK_MEDIUM_AND_ABOVE"
| "BLOCK_ONLY_HIGH"
| "BLOCK_NONE";
}[];
stopSequences?: string[];
temperature?: number;
topK?: number;
topP?: number;
version?: string;
}
Type declaration
Optional
codeExecution?: boolean | {}
Optional
contextCache?: boolean
Optional
functionCallingConfig?: {
allowedFunctionNames?: string[];
mode?: "ANY" | "MODE_UNSPECIFIED" | "AUTO" | "NONE";
}
Optional
maxOutputTokens?: number
Optional
safetySettings?: {
category:
| "HARM_CATEGORY_UNSPECIFIED"
| "HARM_CATEGORY_HATE_SPEECH"
| "HARM_CATEGORY_SEXUALLY_EXPLICIT"
| "HARM_CATEGORY_HARASSMENT"
| "HARM_CATEGORY_DANGEROUS_CONTENT";
threshold: | "BLOCK_LOW_AND_ABOVE"
| "BLOCK_MEDIUM_AND_ABOVE"
| "BLOCK_ONLY_HIGH"
| "BLOCK_NONE";
}[]
Optional
stopSequences?: string[]
Optional
temperature?: number
Optional
topK?: number
Optional
topP?: number
Optional
version?: string