SwiftOpenAI
SwiftOpenAI copied to clipboard
Fix issue where path components are discarded for custom URLs
Previously, with custom providers, like Fireworks, parts of the path were being discarded preceeding the v1 version tag.
As a result, this meant that many providers would result in 404 errors trying to make api calls.
This fix properly combines all path components when making a request.