Skip to content

Commit 7d24eed

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

13 files changed

+0
-3442
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",
@@ -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

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

-185
This file was deleted.

0 commit comments

Comments
 (0)