dylanshine / openai-kit

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

RequestHandler 's generateURL question #62

Open buhe opened 10 months ago

buhe commented 10 months 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 10 months ago

May be update

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

?