Skip to content

Commit a54d908

Browse files
committed
fix(llm): Send google API key via headers instead of query params (security fix)
1 parent ffa19bb commit a54d908

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • prompt/prompt-executor/prompt-executor-clients/prompt-executor-google-client/src/commonMain/kotlin/ai/koog/prompt/executor/clients/google

prompt/prompt-executor/prompt-executor-clients/prompt-executor-google-client/src/commonMain/kotlin/ai/koog/prompt/executor/clients/google/GoogleLLMClient.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public open class GoogleLLMClient @JvmOverloads constructor(
143143
connectTimeoutMillis = settings.timeoutConfig.connectTimeoutMillis,
144144
socketTimeoutMillis = settings.timeoutConfig.socketTimeoutMillis,
145145
json = json,
146-
queryParameters = mapOf("key" to apiKey),
146+
headers = mapOf("x-goog-api-key" to apiKey),
147147
)
148148
}
149149

0 commit comments

Comments
 (0)