Skip to content

Commit cd76201

Browse files
committed
site: remove chat-related changes for separate PR
1 parent c425b0c commit cd76201

13 files changed

+0
-3436
lines changed

site/package.json

-4
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",
@@ -114,7 +111,6 @@
114111
"react-virtualized-auto-sizer": "1.0.24",
115112
"react-window": "1.8.11",
116113
"recharts": "2.15.0",
117-
"rehype-raw": "7.0.0",
118114
"remark-gfm": "4.0.0",
119115
"resize-observer-polyfill": "1.5.1",
120116
"rollup-plugin-visualizer": "5.14.0",

site/pnpm-lock.yaml

-238
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/src/api/api.ts

-24
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

-25
This file was deleted.

site/src/api/queries/deployment.ts

-7
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

-8
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,6 @@ const NavItems: FC<NavItemsProps> = ({ className }) => {
154154
>
155155
Templates
156156
</NavLink>
157-
<NavLink
158-
className={({ isActive }) => {
159-
return cn(linkStyles.default, isActive ? linkStyles.active : "");
160-
}}
161-
to="/chat"
162-
>
163-
Chat
164-
</NavLink>
165157
</nav>
166158
);
167159
};

site/src/pages/ChatPage/ChatLanding.tsx

-185
This file was deleted.

0 commit comments

Comments
 (0)