From c75fbcb604ae79a9d058adf4255d91ac44c2c0c7 Mon Sep 17 00:00:00 2001 From: Pratyush Mittal Date: Sun, 28 Jan 2024 12:28:45 +0530 Subject: [PATCH] Allow using new versions of openai The OpenAI library is into version 0.6 series now: https://github.com/mgallo/openai.ex/releases This `AI` library supports new versions. The hardcoding of version `0.5.x` causes errors > Because your app depends on ai ~> 0.3.4 which depends on openai ~> 0.5.2, openai ~> 0.5.2 is required. > So, because your app depends on openai ~> 0.6.1, version solving failed. --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index a1f1c54..14291b6 100644 --- a/mix.exs +++ b/mix.exs @@ -30,7 +30,7 @@ defmodule AI.MixProject do # Run "mix help deps" to learn about dependencies. defp deps do [ - {:openai, "~> 0.5.2"}, + {:openai, "> 0.5.2"}, {:ex_doc, "~> 0.14", only: :dev, runtime: false} ] end