Chris Keo
08/27/2026, 9:22 PMval llm = LLModel(
provider = LLMProvider.Ollama,
id = getenv("OLLAMA_MODEL"),
capabilities = listOf(LLMCapability.Completion),
contextLength = 35_000_000,
maxOutputTokens = 35_000_000,
)
I don't know if there is a way to fill "provider". If it is possible, then I could use that Gemma 4 in Cloud Run almost like the one I have on my local Ollama.
Thank you for your help!wwalkingg
08/28/2026, 1:26 AMChris Keo
08/28/2026, 4:43 AMwwalkingg
08/28/2026, 7:48 AMval gemma4 = LLModel(
provider = LLMProvider.OpenAI,
id = "google/gemma-4-E4B-it",
capabilities = [LLMCapability.Completion]
)
val agent = AIAgent(
promptExecutor = MultiLLMPromptExecutor(
OpenAILLMClient(
apiKey = "apiKey",
settings = OpenAIClientSettings(
baseUrl = "google cloud run baseurl"
)
),
),
llmModel = gemma4
)
agent.runBlocking("hello").also { println(it) }Chris Keo
08/28/2026, 8:38 AM