Skip to content
This repository was archived by the owner on Jan 24, 2026. It is now read-only.

Commit 89f0a02

Browse files
committed
feat: Add Claude support
1 parent 77b7c7c commit 89f0a02

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/main/kotlin/io/github/stream29/proxy/client/OpenAiBased.kt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,16 @@ data class GeminiConfig(
6161
baseUrl = "https://generativelanguage.googleapis.com/v1beta/openai",
6262
apiKey = apiKey,
6363
modelList = modelList
64+
)
65+
66+
@Suppress("unused")
67+
@Serializable
68+
@SerialName("Claude")
69+
data class ClaudeConfig(
70+
val apiKey: String,
71+
val modelList: List<String>,
72+
): ApiProvider by OpenAiConfig(
73+
baseUrl = "https://api.anthropic.com/v1/",
74+
apiKey = apiKey,
75+
modelList = modelList
6476
)

0 commit comments

Comments
 (0)