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

dall-e openai OpenAIClient options baseUrl is baseURL #7903

Open
5 tasks done
skygitcode opened this issue Mar 26, 2025 · 2 comments
Open
5 tasks done

dall-e openai OpenAIClient options baseUrl is baseURL #7903

skygitcode opened this issue Mar 26, 2025 · 2 comments
Labels
auto:bug Related to a bug, vulnerability, unexpected error with an existing feature

Comments

@skygitcode
Copy link
Contributor

Checked other resources

  • I added a very descriptive title to this issue.
  • I searched the LangChain.js documentation with the integrated search.
  • I used the GitHub search to find a similar question and didn't find it.
  • I am sure that this is a bug in LangChain.js rather than my code.
  • The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code

Image

Error Message and Stack Trace (if applicable)

No response

Description

openai OpenAIClient 接收参数是 baseURL

System Info

window
langchainjs 0.3.5
langchain/openai: 0.4.9

@skygitcode
Copy link
Contributor Author

baseURL原本是 baseUrl, 但其实应该是 baseURL

@dosubot dosubot bot added the auto:bug Related to a bug, vulnerability, unexpected error with an existing feature label Mar 26, 2025
Copy link

dosubot bot commented Mar 26, 2025

Hey @skygitcode! 👋 I'm here to help you with any coding conundrums while we wait for a human maintainer to join the conversation. I'm a bot designed to assist with bug squashing, questions, and contributions.

I found a relevant open issue that might address your concern. The issue discusses the configuration of the OpenAIClient in LangChain.js, specifically regarding the use of baseURL instead of baseUrl. The correct property to use is baseURL, as the function getEndpoint checks specifically for this property name. Using an incorrect property name like baseUrl will result in the function not recognizing it and potentially returning undefined if no other valid configuration parameters are provided [1][2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:bug Related to a bug, vulnerability, unexpected error with an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant