We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cbff647 + 52fa19b commit 724ba83Copy full SHA for 724ba83
1 file changed
Sources/Fluid/Services/LLMClient.swift
@@ -267,8 +267,8 @@ final class LLMClient {
267
request.httpMethod = "POST"
268
request.addValue("application/json", forHTTPHeaderField: "Content-Type")
269
270
- // Only add Authorization header for non-local endpoints
271
- if !isLocal && !config.apiKey.isEmpty {
+ // Send Authorization whenever a key exists; some localhost endpoints still require auth.
+ if !config.apiKey.isEmpty {
272
request.addValue("Bearer \(config.apiKey)", forHTTPHeaderField: "Authorization")
273
}
274
0 commit comments