mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
@ -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: {
|
||||
|
Reference in New Issue
Block a user