Skip to content

Commit

Permalink
Merge pull request #1264 from Agenta-AI/issue-1229/remove_endpoint_te…
Browse files Browse the repository at this point in the history
…stset_from_cloud

Disable import from endpoint for cloud due to security reasons
  • Loading branch information
mmabrouk authored Jan 24, 2024
2 parents 80441cd + 3964366 commit 65f53ee
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions agenta-web/src/pages/apps/[app_id]/testsets/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,17 @@ export default function Testsets() {
>
<Button>Create a test set with UI</Button>
</Link>
{isDemo() ? (
<Tooltip title="API test set creation is unavailable in the demo version. Check out the self-hosted open-source version at https://github.com/agenta-ai/agenta">
<Button disabled>Create a test set with API</Button>
</Tooltip>
) : (
<Link
data-cy="testset-new-api-link"
href={`/apps/${appId}/testsets/new/api`}
>
<Button>Create a test set with API</Button>
<Link
data-cy="testset-new-api-link"
href={`/apps/${appId}/testsets/new/api`}
>
<Button>Create a test set with API</Button>
</Link>
{!isDemo() && (
<Link href={`/apps/${appId}/testsets/new/endpoint`}>
<Button>Import from Endpoint</Button>
</Link>
)}
<Link href={`/apps/${appId}/testsets/new/endpoint`}>
<Button>Import from Endpoint</Button>
</Link>
</div>

<Link href={`/apps/${appId}/evaluations`} className={classes.startLink}>
Expand Down

0 comments on commit 65f53ee

Please sign in to comment.