Closed mspronesti closed 8 months ago
🤖
It's great to see your interest in improving the LangChain framework! Your suggestion to use the same llm
passed to the chain/agent when initialized for the AmadeusClosestAirport
tool sounds like a valuable enhancement. Your contribution would be highly appreciated. Thank you for considering to make LangChain even better!
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.
I would like work on this, I am thinking of making a class and having an default argument for any base llm
(default arg can be openAI) and if user want to use some other model then user can specify same while initialize class object.
Or we can Infer the same base llm
model passed to the chain/agent when initialized
Solved in #15879.
Checked other resources
Description
AmadeusClosestAirport
contains a "hardcoded" call toChatOpenAI
(see here), while it would make sense to use the samellm
passed to the chain/agent when initialized.In addition, this implies that
AmadeusToolkit
implicitly depends onopenai
, which should not be the case.Example (source code from the docs)
Related Components