Skip to content

Upgrade FastAPI to 0.94.1

Alexander Chueshev requested to merge ac/upgrade-fastapi-dep into main

What does this merge request do and why?

This MR upgrades the FastAPI dependency to 0.94.1 and its related dependency pydantic to 1.10.13. In the AI Framework group, we're working on chat evaluation. and our short-term goal is to incorporate the computation of basic metrics into the AI Gateway. With follow-up MRs, we're going to add additional dependencies like langchain and langserve to accelerate the metric development. The need to update fastapi comes primarily from langserve that requires fastapi to be greater than 0.90.0.

Please, note that the latest FastAPI version is 0.103.2, however we cannot upgrade to that version, since 0.95.0 introduced changes that require updating our pydantic models in code.py.

FastAPI changelog - https://fastapi.tiangolo.com/release-notes/#0941 Ref - gitlab-org/gitlab#427251 (comment 1608788792)

Merge request checklist

  • Tests added for new functionality. If not, please raise an issue to follow up.
  • Documentation added/updated, if needed.

cc @oregand

Merge request reports