Skip to content

Commit

Permalink
🩹 Remove force unwrapping that is not required (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaesung authored May 17, 2023
1 parent 29b23bf commit fd2be7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/GoogleGenerativeAI/GenerativeLanguage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class GenerativeLanguage {
private(set) var apiKey: String

private lazy var apiClient: APIClient = {
let baseURL = URL(string: "https://generativelanguage.googleapis.com")!
let baseURL = URL(string: "https://generativelanguage.googleapis.com")
return APIClient(baseURL: baseURL) { configuration in
configuration.sessionConfiguration.httpAdditionalHeaders = ["x-goog-api-client": "genai-swift/0.1.0"]
configuration.sessionConfiguration.httpAdditionalHeaders = ["x-goog-api-key": apiKey]
Expand Down

0 comments on commit fd2be7d

Please sign in to comment.