fix(src/utils): improve readability of findUSELoadFunction parameters
- Refactored function signature to include line breaks for enhanced readability and adherence to style guidelines. - No functional changes introduced, ensuring consistent behavior. These adjustments improve code clarity and maintain alignment with project formatting standards.
This commit is contained in:
parent
79c293559a
commit
7e68a4d8d7
1 changed files with 3 additions and 1 deletions
|
|
@ -260,7 +260,9 @@ export class UniversalSentenceEncoder implements EmbeddingModel {
|
||||||
* @param sentenceEncoderModule The imported module
|
* @param sentenceEncoderModule The imported module
|
||||||
* @returns The load function or null if not found
|
* @returns The load function or null if not found
|
||||||
*/
|
*/
|
||||||
function findUSELoadFunction(sentenceEncoderModule: any): (() => Promise<EmbeddingModel>) | null {
|
function findUSELoadFunction(
|
||||||
|
sentenceEncoderModule: any
|
||||||
|
): (() => Promise<EmbeddingModel>) | null {
|
||||||
// Log the module structure for debugging
|
// Log the module structure for debugging
|
||||||
console.log(
|
console.log(
|
||||||
'Universal Sentence Encoder module structure:',
|
'Universal Sentence Encoder module structure:',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue