Skip to content

Commit 8c8c6b9

Browse files
committed
fix: update timeout config
1 parent 552830a commit 8c8c6b9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

llm-modules/openai/src/main/kotlin/cc/unitmesh/openai/OpenAiProvider.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,11 @@ import java.time.Duration
1616
class OpenAiProvider(var apiKey: String, var apiHost: String? = null) : LlmProvider {
1717
override var temperature = 0.0
1818

19-
private val timeout = Duration.ofSeconds(600)
20-
21-
var totalTokens = 0L
22-
2319
private val openai: OpenAiService by lazy {
2420
// for proxy
2521
if (apiHost != null) {
2622
val mapper = OpenAiService.defaultObjectMapper()
27-
val client = OpenAiService.defaultClient(apiKey, timeout)
23+
val client = OpenAiService.defaultClient(apiKey, Duration.ZERO)
2824

2925
val host = apiHost!!.removeSurrounding("\"")
3026

0 commit comments

Comments
 (0)