Spaces:
Sleeping
Sleeping
File size: 1,343 Bytes
01d5a5d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
import { Request } from '../utils/request';
import type { CommonResponse } from '../types/responseModal';
interface Bio {
content: string;
content_third_view: string;
shades: any[];
summary: string;
summary_third_view: string;
}
interface ChunkTopic {
chunk_id: string;
tags: string[];
topic: string;
}
interface Cluster {
cluster_center: any;
cluster_id: any;
memory_ids: string[];
}
export interface GlobalBioResponse {
bio: Bio;
chunk_topics: ChunkTopic[];
clusters: Cluster[];
version: number;
}
export interface StatusBioResponse {
content: string;
content_third_view: string;
create_time: string;
summary: string;
summary_third_view: string;
update_time: string;
}
export interface BioVersion {
create_time: string;
description: string;
status: string;
version: number;
}
export const getGlobalBioVersion = () => {
return Request<CommonResponse<BioVersion[]>>({
method: 'get',
url: '/api/kernel/l1/global/versions'
});
};
export const getGlobalBio = (version: number) => {
return Request<CommonResponse<GlobalBioResponse>>({
method: 'get',
url: `/api/kernel/l1/global/version/${version}`
});
};
export const getStatusBio = () => {
return Request<CommonResponse<StatusBioResponse>>({
method: 'get',
url: '/api/kernel/l1/status_bio/get'
});
};
|