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!: implement chat endpoint switch #905

Merged
merged 41 commits into from
May 22, 2024

Conversation

gaurarpit
Copy link
Collaborator

@gaurarpit gaurarpit commented May 14, 2024

Purpose

Does this introduce a breaking change?

  • Yes
  • No

How to Test

  • Test the code
poetry run pytest -m "not azure"
  • Run the application, with CONVERSATION_FLOW set to custom and byod

What to Check

Verify that the following are valid

  • Tests successfully pass
  • Validate the chat interface works, with both custom and byod

Other Information

Conversation API works as before:
image

@gaurarpit gaurarpit self-assigned this May 14, 2024
Copy link

github-actions bot commented May 14, 2024

Coverage

Coverage Report •
FileStmtsMissCoverMissing
code
   create_app.py137397%203, 208, 331
code/backend/batch/utilities/helpers
   env_helper.py1371092%228, 233–234, 237–239, 251, 255–257
code/backend/batch/utilities/helpers/config
   conversation_flow.py40100% 
TOTAL247367272% 

Tests Skipped Failures Errors Time
212 0 💤 0 ❌ 0 🔥 11.966s ⏱️

infra/main.bicep Outdated Show resolved Hide resolved
infra/main.bicep Outdated Show resolved Hide resolved
infra/main.bicep Outdated Show resolved Hide resolved
liammoat and others added 7 commits May 21, 2024 10:58
Co-authored-by: ArpitGaur <gaurarpit@gmail.com>
Co-authored-by: ArpitGaur <gaurarpit@gmail.com>
Co-authored-by: ArpitGaur <gaurarpit@gmail.com>
Co-authored-by: ArpitGaur <gaurarpit@gmail.com>
Co-authored-by: ArpitGaur <gaurarpit@gmail.com>
Co-authored-by: ArpitGaur <gaurarpit@gmail.com>
@gaurarpit gaurarpit marked this pull request as ready for review May 21, 2024 12:19
adamdougal
adamdougal previously approved these changes May 21, 2024
Copy link
Collaborator

@adamdougal adamdougal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Can you remove [WIP] from the PR title?

lgtm

@liammoat liammoat changed the title feat: [WIP] implement chat endpoint switch feat: implement chat endpoint switch May 21, 2024
@cecheta
Copy link
Collaborator

cecheta commented May 21, 2024

I think this should be marked as a breaking change

@gaurarpit gaurarpit changed the title feat: implement chat endpoint switch !feat: implement chat endpoint switch May 21, 2024
@gaurarpit gaurarpit changed the title !feat: implement chat endpoint switch feat!: implement chat endpoint switch May 21, 2024
@ross-p-smith
Copy link
Collaborator

I think this should be marked as a breaking change

Because this is a breaking change - I think we link to a new page from this link A backend that mimics the [On Your Data] flow, with the ability to switch to a custom backend. This could then document what these two endpoints do

@gaurarpit
Copy link
Collaborator Author

gaurarpit commented May 22, 2024

I think this should be marked as a breaking change

Because this is a breaking change - I think we link to a new page from this link A backend that mimics the [On Your Data] flow, with the ability to switch to a custom backend. This could then document what these two endpoints do

That's a very good suggestion. Will get something updated on the documentation today.

code/tests/test_app.py Outdated Show resolved Hide resolved
code/create_app.py Outdated Show resolved Hide resolved
liammoat and others added 3 commits May 22, 2024 13:16
Co-authored-by: ArpitGaur <gaurarpit@gmail.com>
Co-authored-by: ArpitGaur <gaurarpit@gmail.com>
Copy link
Collaborator

@adamdougal adamdougal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@gaurarpit gaurarpit added this pull request to the merge queue May 22, 2024
Merged via the queue into main with commit 7621f8c May 22, 2024
11 checks passed
@gaurarpit gaurarpit deleted the arpit/feature/implement-chat-endpoint-switch branch May 22, 2024 13:32
@@ -4,6 +4,7 @@
from dotenv import load_dotenv
from azure.identity import DefaultAzureCredential, get_bearer_token_provider
from azure.keyvault.secrets import SecretClient
from backend.batch.utilities.helpers.config.conversation_flow import ConversationFlow
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because of the weird project structure, using an absolute import here breaks the Admin app and Azure Function when running in Azure

I think that using a relative import should fix it

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.

Implement endpoint switch to custom
5 participants