Skip to content

Commit

Permalink
Remove 'some' from factory return type (jamesrochabrun#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
lzell authored Aug 8, 2024
1 parent e4b6405 commit 122c20e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/OpenAI/Public/Service/OpenAIServiceFactory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class OpenAIServiceFactory {
configuration: URLSessionConfiguration = .default,
decoder: JSONDecoder = .init(),
debugEnabled: Bool = false)
-> some OpenAIService
-> OpenAIService
{
DefaultOpenAIService(
apiKey: apiKey,
Expand All @@ -53,7 +53,7 @@ public class OpenAIServiceFactory {
urlSessionConfiguration: URLSessionConfiguration = .default,
decoder: JSONDecoder = .init(),
debugEnabled: Bool = false)
-> some OpenAIService
-> OpenAIService
{
DefaultOpenAIAzureService(
azureConfiguration: azureConfiguration,
Expand Down Expand Up @@ -87,7 +87,7 @@ public class OpenAIServiceFactory {
aiproxyServiceURL: String? = nil,
aiproxyClientID: String? = nil,
debugEnabled: Bool = false)
-> some OpenAIService
-> OpenAIService
{
AIProxyService(
partialKey: aiproxyPartialKey,
Expand All @@ -114,7 +114,7 @@ public class OpenAIServiceFactory {
apiKey: Authorization = .apiKey(""),
baseURL: String,
debugEnabled: Bool = false)
-> some OpenAIService
-> OpenAIService
{
LocalModelService(
apiKey: apiKey,
Expand Down

0 comments on commit 122c20e

Please sign in to comment.