Giter VIP home page Giter VIP logo

Comments (10)

aaronrogers avatar aaronrogers commented on June 27, 2024 4

@yehudacohen, it's not pretty, but it works. Your mileage may vary.
https://gist.github.com/aaronrogers/b6bb28e0e2299e5b96b168e8607a1cc2

from langchainjs.

aaronrogers avatar aaronrogers commented on June 27, 2024 2

@HRcode, I agree, it would be nice to add. There's also some additional work that could be done to make the process of creating custom LLMs easier. There were a number of things I still felt like I needed to use from Langchain that weren't exposed, so I had to copy them over.

from langchainjs.

nfcampos avatar nfcampos commented on June 27, 2024 1

@aaronrogers I've now replied to you in the other thread. As for Azure OpenAI support, looks like this is an open issue on the openai-node client, see openai/openai-node#53

from langchainjs.

holwerda avatar holwerda commented on June 27, 2024

Was wondering about this too. Started taking a look at how to extend it.

from langchainjs.

aaronrogers avatar aaronrogers commented on June 27, 2024

Is it possible to create a custom LLM to pass into LLMChain? If so, that'd help with this.

I opened a question about this and am hoping for an answer.

from langchainjs.

yehudacohen avatar yehudacohen commented on June 27, 2024

@aaronrogers did you ever build a custom AzureOpenAI model? If so, can you share it as a gist or npm package?

from langchainjs.

aaronrogers avatar aaronrogers commented on June 27, 2024

@yehudacohen, yeah, it's a bit slapped together, but let me see what I can do.

from langchainjs.

yehudacohen avatar yehudacohen commented on June 27, 2024

Thanks @aaronrogers , you're a hero!

from langchainjs.

HRcode avatar HRcode commented on June 27, 2024

Thanks Aaron! Closing this for now. At some point it would be great for this to make it into the official langchainjs package, but I think this provides an onramp for Azure users to build a "custom" LLM for their langchain workflow.

from langchainjs.

thobhanifreddy avatar thobhanifreddy commented on June 27, 2024

Ideally, this should not be closed as it is not supported officially.

from langchainjs.

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.