Skip to content

fix bug with logging exception#16

Merged
virrius merged 1 commit intovamplabAI:mainfrom
VolkovMaxim:feature/fix_http_exeption_bug
Sep 14, 2025
Merged

fix bug with logging exception#16
virrius merged 1 commit intovamplabAI:mainfrom
VolkovMaxim:feature/fix_http_exeption_bug

Conversation

@VolkovMaxim
Copy link
Copy Markdown

Problem:

When an unexpected Exception occurred in the /v1/provide-clarification and /v1/chat/completions endpoints, the API returned the static string "str(e)" in the detail field instead of the real error message.

Solution:

This change corrects the HTTPException call to properly convert the exception e to a string using str(e). This allows the actual cause of the error to be visible on the client side, which simplifies debugging.

@MiXaiLL76
Copy link
Copy Markdown
Collaborator

@VolkovMaxim fix lint

@VolkovMaxim VolkovMaxim force-pushed the feature/fix_http_exeption_bug branch from 0bddb4e to 5606726 Compare September 13, 2025 10:35
@virrius virrius merged commit b7ec983 into vamplabAI:main Sep 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants