Skip to content

Conversation

@Anemy
Copy link
Member

@Anemy Anemy commented Oct 29, 2024

COMPASS-8376

These endpoints don't exist yet in Atlas, so they may be subject to change a little. I'll open a follow up pr if so. This pr is focuses on making these urls configurable by the consumer of the Atlas AI service (web vs electron).
Ideally these would use the same endpoint, however, as mentioned in a comment in the code, we cannot do UI calls against the admin API at the moment (CLOUDP-251201).

Testing wise we have e2e tests for the endpoints being used in Compass, and existing unit tests. We'll be adding e2e tests for Compass web gen ai in COMPASS-8395. Also a quick manual test worked.

Copy link
Collaborator

@gribnoysup gribnoysup left a comment

Choose a reason for hiding this comment

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

Neat!

Comment on lines +250 to +255
const atlasMetadata = connectionInfo?.atlasMetadata;
if (!atlasMetadata) {
throw new Error(
"Can't perform generative ai request: atlasMetadata is not available"
);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Small nit: I guess we never expect the requests with the cloud preset to be done when metadata is missing, so maybe this check be moved to the top of the if to make this clearer

@Anemy Anemy merged commit 8b88964 into main Nov 4, 2024
30 checks passed
@Anemy Anemy deleted the COMPASS-8376-add-gen-ai-endpoints-compass-web branch November 4, 2024 15:41
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