From ce64e1991db291e8677764c6d6708fbf4049ddd4 Mon Sep 17 00:00:00 2001 From: slam Date: Fri, 3 Jan 2025 22:26:50 +0800 Subject: [PATCH] feat(gateway): Add Gemini support Add Gemini support to DarwinOpenAIGateway. This commit also includes a minor adjustment to the Koin module for dependency injection, adding the `DefaultOpenAIProvider`. --- .../src/commonMain/kotlin/com/tddworks/openai/gateway/di/Koin.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/openai-gateway/openai-gateway-core/src/commonMain/kotlin/com/tddworks/openai/gateway/di/Koin.kt b/openai-gateway/openai-gateway-core/src/commonMain/kotlin/com/tddworks/openai/gateway/di/Koin.kt index d031a74..f8a4015 100644 --- a/openai-gateway/openai-gateway-core/src/commonMain/kotlin/com/tddworks/openai/gateway/di/Koin.kt +++ b/openai-gateway/openai-gateway-core/src/commonMain/kotlin/com/tddworks/openai/gateway/di/Koin.kt @@ -72,6 +72,7 @@ fun openAIGatewayModules(providers: List) = module { fun openAIGatewayModules() = module { single { listOf( + DefaultOpenAIProvider(config = get()), AnthropicOpenAIProvider(config = get()), OllamaOpenAIProvider(config = get()), GeminiOpenAIProvider(