Skip to content

Commit

Permalink
Expose method to update apiKey in api
Browse files Browse the repository at this point in the history
  • Loading branch information
alfianlosari committed Dec 19, 2024
1 parent 79e83bd commit 2c2e07f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ChatGPTSwift/ChatGPTAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class ChatGPTAPI: @unchecked Sendable {
middlewares: [AuthMiddleware(apiKey: apiKey)])
}

public func updateAPIKey(_ apikey: String) {
public func updateAPIKey(_ apiKey: String) {
self.apiKey = apiKey
let clientTransport: ClientTransport
#if os(Linux)
Expand Down

0 comments on commit 2c2e07f

Please sign in to comment.