-
Notifications
You must be signed in to change notification settings - Fork 228
feat(compass-generative-ai): don't require Atlas login, use the unauthenticated NLQ endpoints COMPASS-9688 #7191
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
base: main
Are you sure you want to change the base?
Conversation
@@ -151,13 +150,6 @@ export const featureFlags: Required<{ | |||
}, | |||
}, | |||
|
|||
enableUnauthenticatedGenAI: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can just remove this rather than set stage to released, right? Or was there some reason you can't do that? I can never remember.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds fine to me, not sure how it works generally though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We generally just set these to released
, yes. Makes sure that we're not breaking anything that happens to set this flag and expect it to be recognized, and that it won't conflict with a future Compass option
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed it now, but does that mean we can never remove these?
5f4645c
to
e8b4554
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes the feature flag for unauthenticated GenAI and updates the service to use unauthenticated endpoints by default, eliminating the requirement for Atlas login when using generative AI features.
- Removes the
enableUnauthenticatedGenAI
feature flag from the preferences model - Updates AI service endpoints to use unauthenticated paths (
unauth/ai/api/v1/
) - Simplifies the
ensureAiFeatureAccess
method to only handle opt-in prompts
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
packages/compass-preferences-model/src/feature-flags.ts | Removes the enableUnauthenticatedGenAI feature flag definition |
packages/compass-generative-ai/src/atlas-ai-service.ts | Updates endpoints to unauthenticated paths and simplifies access flow |
packages/compass-generative-ai/src/atlas-ai-service.spec.ts | Removes test setup for the deleted feature flag |
e8b4554
to
969bca8
Compare
The PR is still making it through the dev -> qa -> staging -> prod deployment phases and at the time of writing it is only deployed to and enabled on dev and qa. So we can't merge and release this yet.
But in the meantime you can test it like:
or
You can find other values to test different stages here.
This is in preparation for #7150. Probably only for after #7164 ?