Hi, this project is very awesome with the google AI mode, but the AI KEY has a limit regions which can not access the model, so how can I set a http proxy in the chat?
I have a question why the controller
paramter of the GenerativeModel constructor is private
? I think this is the way that can pass a http engine which can set a proxy server to solve the limit.
class GenerativeModel
internal constructor(
val modelName: String,
val apiKey: String,
val generationConfig: GenerationConfig? = null,
val safetySettings: List<SafetySetting>? = null,
private val controller: APIController,
) {
@JvmOverloads
constructor(
modelName: String,
apiKey: String,
generationConfig: GenerationConfig? = null,
safetySettings: List<SafetySetting>? = null,
) : this(modelName, apiKey, generationConfig, safetySettings, APIController(apiKey, modelName))