Giter Site home page Giter Site logo

azure-openai-node.js-developer-guide's People

Contributors

codingbandit avatar crpietschmann avatar microsoft-github-operations[bot] avatar microsoftopensource avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

azure-openai-node.js-developer-guide's Issues

Langchain and Langchain Community with nodejs is not beginner friendly.

GitHub Issue Description

Title: Issue Configuring Langchain with Node.js App and Custom Azure OpenAI Endpoint

Description:

Hi team,

I've encountered an issue while trying to configure Langchain with a Node.js application using a custom endpoint for Azure OpenAI. It seems that Langchain only supports the default .openai.com endpoints, and this limitation has been causing significant problems for my setup.

Here are the specific issues I've faced:

  1. Custom Endpoint Configuration: Langchain does not seem to support configuring custom endpoints, which is necessary for my use case with Azure OpenAI.
  2. Documentation: I have followed the available documentation for Langchain Lab in Node.js but still encountered difficulties.

I spent the past two days trying various configurations and troubleshooting methods, but unfortunately, I couldn't get it to work. As a result, I decided to switch to using Python, where I had more success.

I would appreciate it if the team could:

  1. Review and update the documentation for configuring custom endpoints in Node.js.
  2. Verify if Langchain indeed supports custom Azure OpenAI endpoints, and if not, consider adding this feature.

This issue arose while preparing for a beginners' hackathon organized by Azure CosmosDB, and resolving it would greatly benefit many participants.

Thanks for your attention and support.

Steps to Reproduce:

  1. Attempt to configure Langchain with a Node.js app using a custom Azure OpenAI endpoint like the free one provided to me azurestaticapps.net/api/v1.
  2. Follow the existing Langchain Lab documentation for Node.js.
  3. Note the lack of support for custom endpoints.

Expected Result:
Ability to configure and use custom Azure OpenAI endpoints with Langchain in a Node.js application.

Actual Result:
Langchain only supports .openai.com endpoints, making it unusable with custom Azure OpenAI endpoints azurestaticapps.net/api/v1 like this.

Environment:

  • Node.js
  • Langchain
  • Azure OpenAI service

Thank you for your support and assistance.

Best regards,
Harsha

PLEASE CORRECT ME IF I AM WRONG.

OpenAI Service Proxy Environment Variable Error in Langchain Lab

Using the .env variable on lab langchain, I encountered an error when trying to use the OpenAI Service Proxy from this playground: link. I have tried using the OPENAI_BASE_URL, AZURE_OPENAI_BASE_PATH, and AZURE_OPENAI_ENDPOINT environment variables, but I still got an error.

Is there any solution to fix this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.