Skip to content

Commit

Permalink
feat(gateway): fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hanrw committed Aug 21, 2024
1 parent 8752e8f commit 83a3c93
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package com.tddworks.openai.gateway.api

import com.tddworks.anthropic.api.AnthropicConfig
import com.tddworks.ollama.api.OllamaConfig
import com.tddworks.openai.api.OpenAI
import com.tddworks.openai.api.OpenAIConfig
import com.tddworks.openai.di.initOpenAI
import com.tddworks.openai.gateway.api.internal.anthropic
import com.tddworks.openai.gateway.api.internal.default
import com.tddworks.openai.gateway.api.internal.ollama
import com.tddworks.openai.gateway.di.initOpenAIGateway


/**
* An object for initializing and configuring the OpenAI Gateway.
*/
Expand Down Expand Up @@ -37,16 +35,16 @@ object DarwinOpenAIGateway {
ollamaPort: () -> Int = { 8080 },
ollamaProtocol: () -> String = { "http" },
) = initOpenAIGateway(
openAIConfig = OpenAIConfig(
openAIConfig = OpenAIProviderConfig.default(
baseUrl = openAIBaseUrl,
apiKey = openAIKey
),
anthropicConfig = AnthropicConfig(
anthropicConfig = OpenAIProviderConfig.anthropic(
baseUrl = anthropicBaseUrl,
apiKey = anthropicKey,
anthropicVersion = anthropicVersion
),
ollamaConfig = OllamaConfig(
ollamaConfig = OpenAIProviderConfig.ollama(
baseUrl = ollamaBaseUrl,
port = ollamaPort,
protocol = ollamaProtocol
Expand Down

0 comments on commit 83a3c93

Please sign in to comment.