Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RequestHandler 's generateURL question #62

Open
buhe opened this issue Sep 8, 2023 · 1 comment
Open

RequestHandler 's generateURL question #62

buhe opened this issue Sep 8, 2023 · 1 comment

Comments

@buhe
Copy link

buhe commented Sep 8, 2023

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
Copy link
Author

buhe commented Sep 8, 2023

May be update

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

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant