Skip to content

Commit

Permalink
doc: update
Browse files Browse the repository at this point in the history
  • Loading branch information
hanrw committed Apr 18, 2024
1 parent 958e2e6 commit 8e4db7a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ implementation("com.tddworks:openai-gateway-jvm:0.1.2")
- Anthropic
- default baseUrl is `api.anthropic.com`
- default anthropicVersion is `2023-06-01`

- Ollama
- default baseUrl is `localhost`
- default protocol is `http`
- default port is `11434`

**Example:**
```kotlin
import com.tddworks.anthropic.api.messages.api.AnthropicConfig
Expand All @@ -35,7 +39,12 @@ val openAIGateway = initOpenAIGateway(
baseUrl = { "YOUR_ANTHROPIC_BASE_URL" },
apiKey = { "YOUR_ANTHROPIC_API_KEY" },
anthropicVersion = { "YOUR_ANTHROPIC_VERSION" }
)
),
ollamaConfig = OllamaConfig(
baseUrl = { "YOUR_OLLAMA_BASE_URL" },
protocol = { "YOUR_OLLAMA_PROTOCOL" },
port = { "YOUR_OLLAMA_PORT" }
)
)

// stream completions
Expand Down

0 comments on commit 8e4db7a

Please sign in to comment.