OpenAI package versioning

I intend to use OpenAI package within my custom actions but Rasa-pro has its requirements set to a very old version, and I am wondering if me updating this package will break any functionality.

rasa-pro 3.8.7 requires openai<0.29.0,>=0.28.1, but you have openai 1.35.9 which is incompatible.

1 Like

The Rasa custom action server does not have rasa pro as a dependency, so you’re free to use the most recent version of OpenAI in your custom actions.

1 Like

But I should assume I would still need different python environments?

Correct, you might also consider building your custom actions into a docker image to isolate the environments. You can find instructions for this here.

1 Like

Hi everyone,

we have an issue which is most likely the same. We want to call Mistral AI model from one point in the action server. However we are not able to install the mistral package along with rasa because there is a dependency issue in the pydantic package (rasa needs pydantic<1.10.10 and mistral pydantic>2.X). So my first question would be, why does rasa need such an old version, but this question doesn’t solve the problem.

So my idea is to isolate mistral by wrapping it into a REST-API like FastAPI or use a Docker solution. What would you suggest? Are there simpler solutions?

Thanks in advance!

The solution that requires the least coding would be to use separate python environments for your rasa server and your action server.

The version of pydantic needed by the SDK is currently 2.6, so it’s compatible with mistral.