chore: update page routes (#1790)

chore: update routers
This commit is contained in:
boojack
2023-06-03 13:03:22 +08:00
committed by GitHub
parent 69225b507b
commit 32e2f1d339
22 changed files with 324 additions and 611 deletions

View File

@ -261,14 +261,6 @@ export function deleteIdentityProvider(id: IdentityProviderId) {
return axios.delete(`/api/idp/${id}`);
}
export function postChatCompletion(messages: any[]) {
return axios.post<ResponseObject<string>>(`/api/openai/chat-completion`, messages);
}
export function checkOpenAIEnabled() {
return axios.get<ResponseObject<boolean>>(`/api/openai/enabled`);
}
export async function getRepoStarCount() {
const { data } = await axios.get(`https://api.github.com/repos/usememos/memos`, {
headers: {