- Introduced `GEMINI_VISION_MAX_IMAGE_NUM` to README files for better user guidance. - Updated `env.go` to retrieve the maximum image number from environment variables, defaulting to 16. - Modified image handling logic in `relay-gemini.go` to respect the new configuration, allowing disabling of the limit by setting it to -1. - Removed hardcoded constant for maximum image number in `constant.go` to streamline configuration management.
20 lines
503 B
Go
20 lines
503 B
Go
package gemini
|
|
|
|
var ModelList = []string{
|
|
// stable version
|
|
"gemini-1.5-pro", "gemini-1.5-flash", "gemini-1.5-flash-8b",
|
|
// latest version
|
|
"gemini-1.5-pro-latest", "gemini-1.5-flash-latest",
|
|
// legacy version
|
|
"gemini-1.5-pro-exp-0827", "gemini-1.5-flash-exp-0827",
|
|
// exp
|
|
"gemini-exp-1114", "gemini-exp-1121", "gemini-exp-1206",
|
|
// flash exp
|
|
"gemini-2.0-flash-exp",
|
|
// thinking exp
|
|
"gemini-2.0-flash-thinking-exp",
|
|
"gemini-2.0-flash-thinking-exp-1219",
|
|
}
|
|
|
|
var ChannelName = "google gemini"
|