File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/main/kotlin/cc/unitmesh/devti/llms/azure Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import okhttp3.MediaType.Companion.toMediaTypeOrNull
25
25
import okhttp3.OkHttpClient
26
26
import okhttp3.Request
27
27
import okhttp3.RequestBody
28
+ import java.time.Duration
28
29
29
30
30
31
@Serializable
@@ -46,7 +47,8 @@ class AzureOpenAIProvider(val project: Project) : LLMProvider {
46
47
private val autoDevSettingsState = AutoDevSettingsState .getInstance()
47
48
private val url get() = autoDevSettingsState.customOpenAiHost
48
49
private var customPromptConfig: CustomPromptConfig ? = null
49
- private var client = OkHttpClient ()
50
+ private val timeout = Duration .ofSeconds(600 )
51
+ private var client = OkHttpClient ().newBuilder().readTimeout(timeout).build()
50
52
private val openAiVersion: String
51
53
52
54
init {
You can’t perform that action at this time.
0 commit comments