Problem
When going to the mistral provider settings page in Drupal 11.3 you get:
Drupal\ai\Exception\AiResponseErrorException: Something undefined was broken in the response from Mistral AI: Since symfony/http-foundation 7.4: Request::get() is deprecated, use properties ->attributes, query or request directly instead. in Drupal\ai_provider_mistral\Plugin\AiProvider\MistralProvider->errorCatcher() (line 318 of modules/contrib/ai_provider_mistral/src/Plugin/AiProvider/MistralProvider.php).
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | mistral-4.diff | 1.01 KB | fago |
Issue fork ai_provider_mistral-3564465
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
fagoComment #3
fagoProblem is not specific to Request::get(), but that generally various deprecation warnings are already enough to break it. That's a pre-existing issue with errors/warnings/notices in general, however in particular a problem with un-important things like deprecation warnings.
I'd propose to ignore deprecation warnings for now and to take a closer look at a better API-library first before investing more time into this.
Comment #4
fagolet's fix this in 1.0.x, 1.1.x is unreleased and can be used for new developments like changing the API package.
Comment #6
fagosubmitted MR. attaching a copy of it for usage with composer-patches.
Comment #7
petar_basic commentedComment #8
fagolet's check test fails first.
Comment #9
fagofails are unrelated. opened #3564675: Make 1.0.x gitlab-ci pipeline green
Comment #11
fagoMerged!