Skip to content

Commit 7d24eed

Browse files
committed
site: remove chat-related changes for separate PR
1 parent 7648bef commit 7d24eed

File tree

13 files changed

+0
-3442
lines changed

13 files changed

+0
-3442
lines changed

site/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@
3535
"update-emojis": "cp -rf ./node_modules/emoji-datasource-apple/img/apple/64/* ./static/emojis"
3636
},
3737
"dependencies": {
38-
"@ai-sdk/provider-utils": "2.2.6",
39-
"@ai-sdk/react": "1.2.6",
40-
"@ai-sdk/ui-utils": "1.2.7",
4138
"@emoji-mart/data": "1.2.1",
4239
"@emoji-mart/react": "1.1.1",
4340
"@emotion/cache": "11.14.0",
@@ -118,7 +115,6 @@
118115
"react-virtualized-auto-sizer": "1.0.24",
119116
"react-window": "1.8.11",
120117
"recharts": "2.15.0",
121-
"rehype-raw": "7.0.0",
122118
"remark-gfm": "4.0.0",
123119
"resize-observer-polyfill": "1.5.1",
124120
"rollup-plugin-visualizer": "5.14.0",

site/pnpm-lock.yaml

Lines changed: 0 additions & 244 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/src/api/api.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -827,13 +827,6 @@ class ApiMethods {
827827
return response.data;
828828
};
829829

830-
getDeploymentLLMs = async (): Promise<TypesGen.LanguageModelConfig> => {
831-
const response = await this.axios.get<TypesGen.LanguageModelConfig>(
832-
"/api/v2/deployment/llms",
833-
);
834-
return response.data;
835-
};
836-
837830
getOrganizationIdpSyncClaimFieldValues = async (
838831
organization: string,
839832
field: string,
@@ -2496,23 +2489,6 @@ class ApiMethods {
24962489
markAllInboxNotificationsAsRead = async () => {
24972490
await this.axios.put<void>("/api/v2/notifications/inbox/mark-all-as-read");
24982491
};
2499-
2500-
createChat = async () => {
2501-
const res = await this.axios.post<TypesGen.Chat>("/api/v2/chats");
2502-
return res.data;
2503-
};
2504-
2505-
getChats = async () => {
2506-
const res = await this.axios.get<TypesGen.Chat[]>("/api/v2/chats");
2507-
return res.data;
2508-
};
2509-
2510-
getChatMessages = async (chatId: string) => {
2511-
const res = await this.axios.get<TypesGen.ChatMessage[]>(
2512-
`/api/v2/chats/${chatId}/messages`,
2513-
);
2514-
return res.data;
2515-
};
25162492
}
25172493

25182494
// This is a hard coded CSRF token/cookie pair for local development. In prod,

site/src/api/queries/chats.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

site/src/api/queries/deployment.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,3 @@ export const deploymentIdpSyncFieldValues = (field: string) => {
3636
queryFn: () => API.getDeploymentIdpSyncFieldValues(field),
3737
};
3838
};
39-
40-
export const deploymentLanguageModels = () => {
41-
return {
42-
queryKey: ["deployment", "llms"],
43-
queryFn: API.getDeploymentLLMs,
44-
};
45-
};

site/src/modules/dashboard/Navbar/NavbarView.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,6 @@ const NavItems: FC<NavItemsProps> = ({ className }) => {
157157
>
158158
Templates
159159
</NavLink>
160-
<NavLink
161-
className={({ isActive }) => {
162-
return cn(linkStyles.default, isActive ? linkStyles.active : "");
163-
}}
164-
to="/chat"
165-
>
166-
Chat
167-
</NavLink>
168160
</nav>
169161
);
170162
};

site/src/pages/ChatPage/ChatLanding.tsx

Lines changed: 0 additions & 185 deletions
This file was deleted.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy