Comments (15)
Hey, we are adding it in our next release. It might some more testing but should work.
from langflow.
Just FYI this would also make it possible to use any llama.cpp compatible models (llama, alpaca, gpt4all, etc) via https://github.com/abetlen/llama-cpp-python#web-server
from langflow.
@ogabrielluiz woops, after looking into it a little deeper it looks like this was actually already possible with the regular OpenAI
llm. I missed that you could just change the OPENAI_API_BASE
environment variable. This is actually preferrable as the azure endpoints seem to be using an older version of the OpenAI API.
Anyways, sorry for the confusion. Great tool btw!
from langflow.
This looks very interesting. I have started working on it. It requires a few extra parameters other than the API key. In the case of llama-cpp-python is it exactly the same as the docs?
In LangFlow, if you don't pass the API key, LangChain will still try to find it in the environment but according to the example in the docs, there are a few variables you need to set to be able to use it. What is your opinion on that?
Are those variables normally set in the environment of the average Azure user?
The deployment_name param is now really simple to add, but we must have a clear template of the node and how it is used.
from langflow.
from langflow.
Oh, nice!
Maybe we could put that functionality into the OpenAI node to allow the person to chose.
I've been thinking about dynamic nodes that change depending on params. Maybe this would be a good use case to explore.
Anyway, with what you described it is possible to use your project?
from langflow.
Yes it should, I'm trying to make it as interoperable as possible with existing tools that already are built against the OpenAI API.
Currently switching between models doesn't actually do anything as the server only supports a single llama.cpp model loaded in at once but I'm working on allowing the user to provide aliases so e.g. gpt-3.5-turbo
-> llama-7b
or text-davinci-003
-> llama-30b
from langflow.
What do you think of this approach?
Nice, but right now the OpenAI node takes the OPENAI_API_KEY
. Azure OpenAI requires 4 values: OPENAI_API_TYPE
, OPENAI_API_KEY``,
OPENAI_API_BASEand
OPENAI_API_VERSION`. The user should also be able to provide them.
from langflow.
In addition we'd also need an Azure Open AI Embedding node.
from langflow.
I got an Azure OpenAI account and can test if necessary.
Is the code already written? Do you need help?
from langflow.
from langflow.
Me too!
from langflow.
Just bumping this one, I feel it will enable a lot of users. And indeed, I can also help test.
from langflow.
bump!
from langflow.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from langflow.
Related Issues (20)
- Bug: NoneType object is not subscriptable with ChatOpenAI + SQLAgent HOT 3
- VectorStoreAgent.from_toolkit_and_llm() missing 1 required positional argument: 'vectorstoreinfo' + other similar errors HOT 3
- Can't change the langflow logo during the sign in page for a personal project of mine HOT 2
- Error in DB migration with PostgreSQL for Langflow v0.6 HOT 19
- AzureOpenAIEmbeddings Component is not available in the components list of Langflow v0.6.5 version. HOT 3
- ModuleNotFoundError: No module named 'pwd' at 'langflow run' HOT 1
- Please click the 'Reset Application' button to restore the application's state. If the error persists, please create an issue on our GitHub page. We apologize for any inconvenience this may have caused. HOT 1
- Webui not works HOT 2
- CUSTOM COMPONENTS disappeared HOT 6
- An authentication error occurs when specifying a Vertex AI HOT 1
- Bug in Disappearance of Custom Component HOT 2
- Are the tools PythonRPLTool and PythonastREPLTool no longer available in 6.4 ? HOT 2
- [OFFICIAL WEBSITE GITHUB SIGNIN ERROR] An error has occurred. There was an error with your credentials, if you are using github, please check if your email is public. HOT 4
- Docker compose error ValidationError: 1 validation error for Settings REMOVE_API_KEYS how can i fix this? HOT 2
- v0.6.7 docker error HOT 1
- Docker build HOT 2
- how to deploy a chain build from langflow by using LangServe? HOT 1
- How to use dynamic field? HOT 1
- Bedrock is missing from the components of LLM section. HOT 4
- Coroutine question HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from langflow.