jamesrochabrun / SwiftAnthropic

An open-source Swift package for interacting with Anthropic's public API.
90 stars 29 forks source link

Error in Xcode with AnthropicServiceFactory #14

Closed iakar closed 5 months ago

iakar commented 5 months ago

I am getting an Xcode error with this line:

let service = AnthropicServiceFactory.service(apiKey: apiKey, apiVersion: apiVersion)

Error: Property definition has inferred type 'some AnthropicService', involving the 'some' return type of another declaration

I followed the instructions on git as precisely as possible.

jamesrochabrun commented 5 months ago

Can you try:

let service: AnthropicService = AnthropicServiceFactory.service(apiKey: apiKey, apiVersion: apiVersion)