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.
Solution:
Use `override: true' in your custom langchain dependency
Jump to solution
3 Replies
Solution
ZachDaniel
ZachDaniel•4mo ago
Use `override: true' in your custom langchain dependency
ZachDaniel
ZachDaniel•4mo ago
I.e {:langchain, github: "foo/bar", override: true}
hyperion_zw
hyperion_zwOP•4mo ago
Thanks a lot 🙂 . After mix deps.clean --all, I could add my forked repo as dependency now. I will be mroe careful next time.

Did you find this page helpful?