Skip to content

Commit 1b80c9d

Browse files
committed
Fix configuration override
1 parent 1acd818 commit 1b80c9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tool/Sources/OpenAIService/Configuration/ChatGPTConfiguration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public class OverridingChatGPTConfiguration: ChatGPTConfiguration {
120120
public var apiKey: String {
121121
if let apiKey = overriding.apiKey { return apiKey }
122122
guard let name = model?.info.apiKeyName else { return configuration.apiKey }
123-
return (try? Keychain.apiKey.get(name)) ?? configuration.apiKey
123+
return (try? Keychain.apiKey.get(name)) ?? ""
124124
}
125125

126126
public var shouldEndTextWindow: (String) -> Bool {

0 commit comments

Comments
 (0)