You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/kotlin/com/github/blarc/ai/commits/intellij/plugin/settings/clients/qianfan/QianfanClientConfiguration.kt
Copy file name to clipboardExpand all lines: src/main/kotlin/com/github/blarc/ai/commits/intellij/plugin/settings/clients/qianfan/QianfanClientPanel.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ class QianfanClientPanel(private val clientConfiguration: QianfanClientConfigura
Copy file name to clipboardExpand all lines: src/main/kotlin/com/github/blarc/ai/commits/intellij/plugin/settings/clients/qianfan/QianfanClientService.kt
+16-12Lines changed: 16 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,8 @@ class QianfanClientService(private val cs: CoroutineScope) : LLMClientService<Qi
val apiKey = client.apiKey.nullize(true) ?: retrieveToken(client.apiKeyId)?.toString(true)
29
-
val secretKey = client.secretKey.nullize(true) ?: retrieveToken(client.secretKeyId)?.toString(true)
28
+
val apiKey = client.apiKey.nullize(true) ?: retrieveToken(client.id +"apiKey")?.toString(true)
29
+
val secretKey = client.secretKey.nullize(true) ?: retrieveToken(client.id +"secretKey")?.toString(true)
30
30
31
31
val builder =QianfanChatModel.builder()
32
32
.baseUrl(client.host)
@@ -35,28 +35,32 @@ class QianfanClientService(private val cs: CoroutineScope) : LLMClientService<Qi
35
35
.modelName(client.modelId)
36
36
.temperature(client.temperature.toDouble())
37
37
// Fix https://github.com/langchain4j/langchain4j/pull/1426. Remove this 'if' statement when langchain4j releases a new version that resolves this issue.
38
-
if (client.modelId ==QianfanChatModelNameEnum.ERNIE_SPEED_128K.modelName){
38
+
if (client.modelId ==QianfanChatModelNameEnum.ERNIE_SPEED_128K.modelName){
0 commit comments