Is there a way to overwrite `:langchain` to specify to use custom forked version?
I found Ash.AI is really cool. However, I need to interact with other LLM provider that doesn't supported by
{:langchain, "~> 0.3"}
.
So, I need to fork the langchain and plan to write modules for that provider.
When I specifiy my forked repo in phoenix's mix.exs, it failed at setep: mix deps.get
with error:
Because every version of ash_ai depends on langchain ~> 0.3 which doesn't match any versions, no version of ash_ai is allowed.
Thanks a lot.3 Replies
Solution
Use `override: true' in your custom langchain dependency
I.e
{:langchain, github: "foo/bar", override: true}
Thanks a lot 🙂 . After
mix deps.clean --all
, I could add my forked repo as dependency now. I will be mroe careful next time.