All AI functions are working ok, but AI search gives 500 error

Just to show that AI settings and API keys etc are ok: