Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Dec 16, 2024
1 parent 5c82cfb commit 9ff9e62
Show file tree
Hide file tree
Showing 3 changed files with 8,808 additions and 10,902 deletions.
4 changes: 2 additions & 2 deletions backend/src/config/config-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ export class ConfigLoader {

private loadConfig() {
const file = fs.readFileSync(this.configPath, 'utf-8');

this.chatsConfig = JSON.parse(file);
console.log('Raw file content:', this.chatsConfig);
}

get<T>(path: string) {
if (!path) {
return this.chatsConfig as unknown as T;
}
}
return _.get(this.chatsConfig, path) as T;
}

Expand Down
2 changes: 1 addition & 1 deletion backend/src/model/__tests__/loadAllChatsModels.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('loadAllChatsModels with real model loading', () => {
{
model: 'Felladrin/onnx-flan-alpaca-base',
task: 'text2text-generation',
}
},
];
const configPath = getConfigPath('config');
fs.writeFileSync(configPath, JSON.stringify(testConfig, null, 2), 'utf8');
Expand Down
Loading

0 comments on commit 9ff9e62

Please sign in to comment.