Git Product home page Git Product logo

Comments (15)

ogabrielluiz avatar ogabrielluiz commented on June 12, 2024 3

Hey, we are adding it in our next release. It might some more testing but should work.

from langflow.

abetlen avatar abetlen commented on June 12, 2024 2

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.

abetlen avatar abetlen commented on June 12, 2024 1

@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!

image

from langflow.

ogabrielluiz avatar ogabrielluiz commented on June 12, 2024

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.

ogabrielluiz avatar ogabrielluiz commented on June 12, 2024

image

What do you think of this approach?

from langflow.

ogabrielluiz avatar ogabrielluiz commented on June 12, 2024

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.

abetlen avatar abetlen commented on June 12, 2024

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.

adumont avatar adumont commented on June 12, 2024
image

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_BASEandOPENAI_API_VERSION`. The user should also be able to provide them.

from langflow.

adumont avatar adumont commented on June 12, 2024

In addition we'd also need an Azure Open AI Embedding node.

from langflow.

mycaule avatar mycaule commented on June 12, 2024

I got an Azure OpenAI account and can test if necessary.
Is the code already written? Do you need help?

from langflow.

adumont avatar adumont commented on June 12, 2024

from langflow.

SOUMYABROTOBANERJEE avatar SOUMYABROTOBANERJEE commented on June 12, 2024

Me too!

from langflow.

TheodorosGalanos avatar TheodorosGalanos commented on June 12, 2024

Just bumping this one, I feel it will enable a lot of users. And indeed, I can also help test.

from langflow.

khu834 avatar khu834 commented on June 12, 2024

bump!

from langflow.

stale avatar stale commented on June 12, 2024

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)

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.