mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-05-16 11:35:24 +00:00
Update serialisers.py
This commit is contained in:
@@ -248,7 +248,9 @@ class ApplicationConfigurationSerializer(serializers.ModelSerializer):
|
||||
allow_internal=settings.LLM_ALLOW_INTERNAL_ENDPOINTS,
|
||||
)
|
||||
except ValueError as e:
|
||||
raise serializers.ValidationError(str(e)) from e
|
||||
raise serializers.ValidationError(
|
||||
f"Invalid LLM endpoint: {e.args[0]}, see logs for details",
|
||||
) from e
|
||||
|
||||
return value
|
||||
|
||||
|
||||
Reference in New Issue
Block a user