Skip to content

Commit

Permalink
Fix duplicate name
Browse files Browse the repository at this point in the history
  • Loading branch information
vishniakov-nikolai committed Jan 30, 2025
1 parent 21fdf7b commit 029c41c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import util from 'node:util';

import addon from './bindings.cjs';

class LLMPipeline {
class LLMPipelineEntity {
modelPath = null;
device = null;
pipeline = null;
Expand Down Expand Up @@ -73,7 +73,7 @@ class LLMPipeline {
if (typeof generationOptions !== 'object')
throw new Error('Options must be an object');

const castedOptions = LLMPipeline.castOptionsToString(generationOptions);
const castedOptions = LLMPipelineEntity.castOptionsToString(generationOptions);

const queue = [];
let resolvePromise;
Expand Down Expand Up @@ -127,7 +127,7 @@ class LLMPipeline {

class PipelineFactory {
static async LLMPipeline(modelPath, device = 'CPU') {
const pipeline = new LLMPipeline(modelPath, device);
const pipeline = new LLMPipelineEntity(modelPath, device);
await pipeline.init();

return pipeline;
Expand Down

0 comments on commit 029c41c

Please sign in to comment.