azurecosmosdb / azure-openai-node.js-developer-guide Goto Github PK
View Code? Open in Web Editor NEWAzure Cosmos DB + Azure OpenAI Node.js Developer Guide
License: MIT License
Azure Cosmos DB + Azure OpenAI Node.js Developer Guide
License: MIT License
I encountered a bit of unclarity (marked in red) while reading the General anatomy of a prompt portion in the README
There's also a typo marked in green (which I have submitted a PR for).
There is this table (see below) in the section What is Prompt Engineering
It seems like the content in row 1 is not in the right column.
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:
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:
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:
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:
Thank you for your support and assistance.
Best regards,
Harsha
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.