mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 08:25:07 +00:00
perf: comment
This commit is contained in:
@@ -49,6 +49,6 @@ export const jsonRes = <T = any>(
|
|||||||
code,
|
code,
|
||||||
statusText: '',
|
statusText: '',
|
||||||
message: msg,
|
message: msg,
|
||||||
data: data || error || null
|
data: data || null
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@@ -127,6 +127,9 @@ export const readDocContent = (file: File) =>
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 向量转成 float32 buffer 格式
|
||||||
|
*/
|
||||||
export const vectorToBuffer = (vector: number[]) => {
|
export const vectorToBuffer = (vector: number[]) => {
|
||||||
const npVector = new Float32Array(vector);
|
const npVector = new Float32Array(vector);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user