We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 552830a commit 8c8c6b9Copy full SHA for 8c8c6b9
llm-modules/openai/src/main/kotlin/cc/unitmesh/openai/OpenAiProvider.kt
@@ -16,15 +16,11 @@ import java.time.Duration
16
class OpenAiProvider(var apiKey: String, var apiHost: String? = null) : LlmProvider {
17
override var temperature = 0.0
18
19
- private val timeout = Duration.ofSeconds(600)
20
-
21
- var totalTokens = 0L
22
23
private val openai: OpenAiService by lazy {
24
// for proxy
25
if (apiHost != null) {
26
val mapper = OpenAiService.defaultObjectMapper()
27
- val client = OpenAiService.defaultClient(apiKey, timeout)
+ val client = OpenAiService.defaultClient(apiKey, Duration.ZERO)
28
29
val host = apiHost!!.removeSurrounding("\"")
30
0 commit comments