Skip to content

Commit a9930d5

Browse files
Merge pull request #79 from boldare/chore/update
chore: library update
2 parents 226f5b2 + 62da486 commit a9930d5

File tree

10 files changed

+3870
-4268
lines changed

10 files changed

+3870
-4268
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
apps/spa/src/assets

.eslintrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525
"files": ["*.ts", "*.tsx"],
2626
"extends": ["plugin:@nx/typescript"],
2727
"rules": {
28-
"@typescript-eslint/no-extra-semi": "error",
28+
"@typescript-eslint/no-extra-semi": "off",
2929
"no-extra-semi": "off"
3030
}
3131
},
3232
{
3333
"files": ["*.js", "*.jsx"],
3434
"extends": ["plugin:@nx/javascript"],
3535
"rules": {
36-
"@typescript-eslint/no-extra-semi": "error",
36+
"@typescript-eslint/no-extra-semi": "off",
3737
"no-extra-semi": "off"
3838
}
3939
},

apps/api/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ async function bootstrap() {
99
const globalPrefix = 'api';
1010
const config = new DocumentBuilder()
1111
.setTitle('@boldare/openai-assistant')
12-
.setVersion('1.2.0')
12+
.setVersion('1.2.1')
1313
.build();
1414
const document = SwaggerModule.createDocument(app, config);
1515

apps/spa/src/app/modules/+chat/shared/chat.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export class ChatService {
169169
}
170170

171171
watchTextCreated(): Subscription {
172-
return this.chatGatewayService.textCreated().subscribe(data => {
172+
return this.chatGatewayService.textCreated().subscribe(() => {
173173
this.isTyping$.next(false);
174174
this.isResponding$.next(true);
175175

jest.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { getJestProjects } from '@nx/jest';
1+
import { getJestProjectsAsync } from '@nx/jest';
22

3-
export default {
4-
projects: getJestProjects(),
5-
};
3+
export default async () => ({
4+
projects: await getJestProjectsAsync(),
5+
});

libs/openai-assistant/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
{
22
"name": "@boldare/openai-assistant",
33
"description": "NestJS library for building chatbot solutions based on the OpenAI Assistant API",
4-
"version": "1.2.0",
4+
"version": "1.2.1",
55
"private": false,
66
"dependencies": {
7-
"tslib": "^2.3.0",
7+
"tslib": "^2.6.3",
88
"dotenv": "^16.4.5",
99
"envfile": "^7.1.0",
10-
"@nestjs/common": "^10.0.2",
11-
"@nestjs/platform-express": "^10.0.2",
12-
"@nestjs/axios": "^3.0.1",
13-
"@nestjs/swagger": "^7.3.0",
10+
"@nestjs/common": "^10.4.4",
11+
"@nestjs/platform-express": "^10.4.4",
12+
"@nestjs/axios": "^3.0.3",
13+
"@nestjs/swagger": "^7.4.2",
1414
"@nestjs/websockets": "^10.3.0",
1515
"multer": "^1.4.4-lts.1",
1616
"class-validator": "^0.14.1",
17-
"socket.io": "^4.7.3"
17+
"socket.io": "^4.8.0"
1818
},
1919
"peerDependencies": {
20-
"openai": "^4.55.0"
20+
"openai": "^4.67.3"
2121
},
2222
"type": "commonjs",
2323
"main": "./src/index.js",

libs/openai-assistant/src/lib/run/run.service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ export class RunService {
3333
case 'failed':
3434
case 'expired':
3535
case 'completed':
36+
case 'incomplete':
37+
case 'queued':
3638
return;
3739
case 'requires_action':
3840
await this.submitAction(run, callbacks);

nx.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,5 @@
6565
"e2eTestRunner": "none"
6666
}
6767
},
68-
"useInferencePlugins": false,
69-
"tasksRunnerOptions": {
70-
"default": {
71-
"runner": "nx/tasks-runners/default",
72-
"options": {
73-
"cacheableOperations": ["build", "test"]
74-
}
75-
}
76-
}
68+
"useInferencePlugins": false
7769
}

0 commit comments

Comments
 (0)