Skip to content

Update Request URL #199

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update Request URL #199

wants to merge 1 commit into from

Conversation

springrain
Copy link

No description provided.

@springrain springrain requested a review from a team as a code owner February 1, 2025 15:35
@pawelkowalak
Copy link

I assume this is fixing the problem that last part of the base url is being cut? Can you provide some description and also delete commented out code? Maybe it will get some attention from maintainers :)

@FGYFFFF
Copy link

FGYFFFF commented Feb 27, 2025

I have also encountered this issue, please fix it as soon as possible. For example, my service is deployed at 'http://127.0.0.1:8888/v1/chat/completions', and accessing it through the SDK causes the 'v1' path to be lost.

@xuji-2025
Copy link

xuji-2025 commented Mar 6, 2025

@FGYFFFF I have the same issue but you can try 'http://127.0.0.1:8888/v1/' as your BaseURL. It works for me.

@spacetourist
Copy link

add trailing slash does the magic, i.e.:

options := []option.RequestOption{option.WithBaseURL("https://api.groq.com/openai/v1"), option.WithAPIKey(apiKey)}
vs
options := []option.RequestOption{option.WithBaseURL("https://api.groq.com/openai/v1/"), option.WithAPIKey(apiKey)}

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

Successfully merging this pull request may close these issues.

5 participants