Skip to content

Commit

Permalink
chore: remove assistant temporarily (#4036)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkrantz authored Aug 16, 2024
1 parent 8cdebfe commit 5c0a89b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions cypress/integration/api/ai.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
context("POST /api/ai", () => {
it("gets an ai response for a given prompty", () => {
cy.request("POST", "/api/ai", {
prompt: "How do I create a primary button",
secret: Cypress.env("OPENAI_API_SECRET"),
}).then((response) => {
expect(response.status).to.eq(200);
expect(response.body).length.to.be.greaterThan(1);
});
});
});
// context("POST /api/ai", () => {
// it("gets an ai response for a given prompty", () => {
// cy.request("POST", "/api/ai", {
// prompt: "How do I create a primary button",
// secret: Cypress.env("OPENAI_API_SECRET"),
// }).then((response) => {
// expect(response.status).to.eq(200);
// expect(response.body).length.to.be.greaterThan(1);
// });
// });
// });
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import "react-github-button/assets/style.css";

import { PASTE_DOCS_TOPBAR } from "../../../constants";
import { ContactUsMenu } from "../../ContactUsMenu";
import { AssistantLink } from "./AssistantLink";
// import { AssistantLink } from "./AssistantLink";
import { DarkModeToggle } from "./DarkModeToggle";
import { FigmaButton } from "./FigmaButton";
import { HamburgerToggle } from "./HamburgerToggle";
Expand Down Expand Up @@ -45,7 +45,7 @@ export const SiteHeader: React.FC<{
<Box data-cy="paste-docsearch-container" id="paste-docs-search-input">
<SiteHeaderSearch />
</Box>
<AssistantLink />
{/* <AssistantLink /> TODO: replace when AI connection is fixed */}
<ContactUsMenu />
<DarkModeToggle />
<FigmaButton />
Expand Down

0 comments on commit 5c0a89b

Please sign in to comment.