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

baseUrl not working since 0.16.0 #227

Closed
wong2 opened this issue Aug 16, 2024 · 0 comments · Fixed by #228
Closed

baseUrl not working since 0.16.0 #227

wong2 opened this issue Aug 16, 2024 · 0 comments · Fixed by #228
Assignees
Labels
component:js sdk Issue/PR related to JavaScript SDK status:triaged Issue/PR triaged to the corresponding sub-team type:bug Something isn't working

Comments

@wong2
Copy link
Contributor

wong2 commented Aug 16, 2024

Description of the bug:

I'm upgrading the sdk from 0.15.0 and found that the baseUrl requestion option stops working.

Actual vs expected behavior:

I have the following code:

const model = sdk.getGenerativeModel(
  { model: '...', safetySettings },
  { apiVersion: 'v1beta', baseUrl: this.baseUrl },
)

const chatSession = model.startChat({ safetySettings })
const stream = await chatSession.sendMessageStream(prompt)

However, the provided baseUrl didn't take effect, and the request was still sent to the default Google URL.

Any other information you'd like to share?

No response

@manojssmk manojssmk added type:bug Something isn't working status:triaged Issue/PR triaged to the corresponding sub-team component:js sdk Issue/PR related to JavaScript SDK labels Aug 19, 2024
@gmKeshari gmKeshari removed type:bug Something isn't working status:triaged Issue/PR triaged to the corresponding sub-team component:js sdk Issue/PR related to JavaScript SDK labels Aug 19, 2024
@gmKeshari gmKeshari self-assigned this Aug 19, 2024
@manojssmk manojssmk assigned hsubox76 and unassigned gmKeshari Aug 19, 2024
@gmKeshari gmKeshari assigned hsubox76 and unassigned hsubox76 Aug 19, 2024
@gmKeshari gmKeshari added type:bug Something isn't working status:triaged Issue/PR triaged to the corresponding sub-team component:js sdk Issue/PR related to JavaScript SDK labels Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:js sdk Issue/PR related to JavaScript SDK status:triaged Issue/PR triaged to the corresponding sub-team type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants