Comments (10)
@yehudacohen, it's not pretty, but it works. Your mileage may vary.
https://gist.github.com/aaronrogers/b6bb28e0e2299e5b96b168e8607a1cc2
from langchainjs.
@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.
@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.
Was wondering about this too. Started taking a look at how to extend it.
from langchainjs.
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.
@aaronrogers did you ever build a custom AzureOpenAI model? If so, can you share it as a gist or npm package?
from langchainjs.
@yehudacohen, yeah, it's a bit slapped together, but let me see what I can do.
from langchainjs.
Thanks @aaronrogers , you're a hero!
from langchainjs.
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.
Ideally, this should not be closed as it is not supported officially.
from langchainjs.
Related Issues (20)
- streamEvents does not properly work on RemoteRunnable HOT 11
- LangChain x AI Sdk docs HOT 1
- `notIn` Prisma operator missing in `PrismaSqlFilter` HOT 6
- ConversationChain not suppot GPT-4 Turbo with Vision model(gpt-4-turbo-2024-04-09), with image inputs HOT 3
- Type 'FewShotChatMessagePromptTemplate<any, any>' is not assignable to type 'ChatPromptTemplate<InputValues, string> | BaseMessagePromptTemplateLike' HOT 3
- AgentExcecutor Chains Are Deleting the Run Name HOT 2
- S3 File Loader:Endpoint is missing in configuration HOT 3
- Similarity Score Threshold HOT 1
- DeepInfra [ Feature ]: Support for DeepInfra embeddings models HOT 1
- Add support for GPT-4o HOT 8
- Delete `JsonOutputToolsParser` from langchain & re-export from core
- @langchain/core version 0.1.63 removes similaritySearchWithScore ? HOT 1
- Error: Unknown model for all Groq models in ChatGroq HOT 4
- Unable to pass message history with tool use to anthropic models HOT 6
- show sidebars inside how to's/tutorials
- move installation guide to how to's
- support for azureADTokenProvider in AzureChatOpenAI HOT 3
- handleLLMStart handler is not called when using AgentExecutor. handleLLMEnd is called thou. HOT 2
- Endpoint issue with Gemini Pro 1.5 and Gemini Flash Support HOT 12
- Callback tests are inconsistent when running LS in background
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 langchainjs.