Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add display_message support for errors #111

Merged
merged 9 commits into from
Jun 3, 2024

Conversation

roman-romanov-o
Copy link
Collaborator

@roman-romanov-o roman-romanov-o commented May 31, 2024

resolves #72

@roman-romanov-o
Copy link
Collaborator Author

roman-romanov-o commented May 31, 2024

Theoretically we could use this approach, that is more like one in vertex and bedrock adapter:
https://github.com/epam/ai-dial-adapter-openai/pull/110/files

But then there is problem with proxing any exception from OpenAI:

async def handle_exceptions(call):
    try:
        return await call
    except OpenAIException as e:
        return Response(status_code=e.code, headers=e.headers, content=e.body)
    ...

@roman-romanov-o
Copy link
Collaborator Author

roman-romanov-o commented May 31, 2024

/deploy-review

Environment URL: https://chat-ai-dial-adapter-openai-pr-111.nightly-test.deltixhub.io
E2E tests status: failed

@roman-romanov-o
Copy link
Collaborator Author

roman-romanov-o commented Jun 3, 2024

/deploy-review

Environment URL: https://chat-ai-dial-adapter-openai-pr-111.nightly-test.deltixhub.io
E2E tests status: success

@roman-romanov-o
Copy link
Collaborator Author

roman-romanov-o commented Jun 3, 2024

/deploy-review

Environment URL: https://chat-ai-dial-adapter-openai-pr-111.nightly-test.deltixhub.io
E2E tests status: failed

@roman-romanov-o
Copy link
Collaborator Author

roman-romanov-o commented Jun 3, 2024

/deploy-review

Environment URL: https://chat-ai-dial-adapter-openai-pr-111.nightly-test.deltixhub.io
E2E tests status: failed

3 similar comments
@roman-romanov-o
Copy link
Collaborator Author

roman-romanov-o commented Jun 3, 2024

/deploy-review

Environment URL: https://chat-ai-dial-adapter-openai-pr-111.nightly-test.deltixhub.io
E2E tests status: failed

@roman-romanov-o
Copy link
Collaborator Author

roman-romanov-o commented Jun 3, 2024

/deploy-review

Environment URL: https://chat-ai-dial-adapter-openai-pr-111.nightly-test.deltixhub.io
E2E tests status: failed

@roman-romanov-o
Copy link
Collaborator Author

roman-romanov-o commented Jun 3, 2024

/deploy-review

Environment URL: https://chat-ai-dial-adapter-openai-pr-111.nightly-test.deltixhub.io
E2E tests status: failed

@roman-romanov-o roman-romanov-o merged commit ce4a06b into development Jun 3, 2024
6 checks passed
@roman-romanov-o
Copy link
Collaborator Author

roman-romanov-o commented Jun 3, 2024

/deploy-review

Environment URL: https://chat-ai-dial-adapter-openai-pr-111.nightly-test.deltixhub.io
E2E tests status: failed

@roman-romanov-o
Copy link
Collaborator Author

roman-romanov-o commented Jun 4, 2024

/deploy-review

Environment URL: https://chat-ai-dial-adapter-openai-pr-111.nightly-test.deltixhub.io
E2E tests status: success

@adubovik adubovik deleted the feat/add-user-display-messages branch June 13, 2024 08:54
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.

Support reporting of user-facing error messages via display_message error field
2 participants