fix: 1.接入ai_suggestion.
2. 接入合同起草功能。
This commit is contained in:
@@ -22,7 +22,7 @@ export interface HighlightOptions {
|
||||
/** 高亮颜色 (LibreOffice Decimal 格式), 默认 16776960 = 黄色 */
|
||||
color?: number;
|
||||
/** 目标页码 (从1开始), 默认第1页 */
|
||||
page?: number;
|
||||
page?: number | null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -32,7 +32,7 @@ export interface HighlightResponse {
|
||||
success: boolean;
|
||||
message: string;
|
||||
highlightedCount?: number;
|
||||
page?: number;
|
||||
page?: number | null;
|
||||
timestamp: number;
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ export async function highlightText(
|
||||
options?: HighlightOptions
|
||||
): Promise<HighlightResponse> {
|
||||
const color = options?.color ?? 16776960; // 默认黄色
|
||||
const page = options?.page ?? 1; // 默认第1页
|
||||
const page = options?.page ?? null; // 默认第1页
|
||||
|
||||
console.log('[HighlightSelectText] 调用 Python 脚本高亮文本:', {
|
||||
text,
|
||||
|
||||
Reference in New Issue
Block a user