dylanshine / openai-kit

A community Swift package used to interact with the OpenAI API
https://platform.openai.com/docs/api-reference
MIT License
712 stars 113 forks source link

RequestHandler 's generateURL question #62

Open buhe opened 1 year ago

buhe commented 1 year ago

Hi, great project

components.path = [configuration.api?.path, request.path]
            .compactMap { $0 }
            .joined()

Path cannot be specified exactly, like https://docs.llama-api.com/essentials/chat need path is https://api.llama-api.com/chat/completions .

BR

buhe

buhe commented 1 year ago

May be update

components.path = configuration.api?.path ?? request.path

?