feat(aihr): persist sop prompt version
This commit is contained in:
@@ -38,6 +38,7 @@ export type SopSearchResponse = {
|
||||
records: SopRecord[];
|
||||
keyPoints?: string[];
|
||||
cautions?: string[];
|
||||
promptVersion?: string | null;
|
||||
reviewId?: number;
|
||||
};
|
||||
|
||||
@@ -46,6 +47,7 @@ export type SopReviewResponse = {
|
||||
usable: boolean | null;
|
||||
status: string;
|
||||
reviewedAt: string;
|
||||
promptVersion?: string | null;
|
||||
};
|
||||
|
||||
export type AnswerFeedbackItem = {
|
||||
@@ -79,7 +81,13 @@ export type SopUploadResponse = {
|
||||
snippets: SopSnippet[];
|
||||
};
|
||||
|
||||
export function searchKnowledgeSop(data: { queryText: string; category: string; position?: string; source?: string; limit: number }): Promise<ApiResult<SopSearchResponse>> {
|
||||
export function searchKnowledgeSop(data: {
|
||||
queryText: string;
|
||||
category: string;
|
||||
position?: string;
|
||||
source?: string;
|
||||
limit: number;
|
||||
}): Promise<ApiResult<SopSearchResponse>> {
|
||||
return request({
|
||||
url: '/api/knowledge/search',
|
||||
method: 'post',
|
||||
|
||||
Reference in New Issue
Block a user