Skip to content

Commit

Permalink
Merge pull request #79 from boldare/chore/update
Browse files Browse the repository at this point in the history
chore: library update
  • Loading branch information
sebastianmusial authored Oct 15, 2024
2 parents 226f5b2 + 62da486 commit a9930d5
Show file tree
Hide file tree
Showing 10 changed files with 3,870 additions and 4,268 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
apps/spa/src/assets
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nx/typescript"],
"rules": {
"@typescript-eslint/no-extra-semi": "error",
"@typescript-eslint/no-extra-semi": "off",
"no-extra-semi": "off"
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript"],
"rules": {
"@typescript-eslint/no-extra-semi": "error",
"@typescript-eslint/no-extra-semi": "off",
"no-extra-semi": "off"
}
},
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ async function bootstrap() {
const globalPrefix = 'api';
const config = new DocumentBuilder()
.setTitle('@boldare/openai-assistant')
.setVersion('1.2.0')
.setVersion('1.2.1')
.build();
const document = SwaggerModule.createDocument(app, config);

Expand Down
2 changes: 1 addition & 1 deletion apps/spa/src/app/modules/+chat/shared/chat.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class ChatService {
}

watchTextCreated(): Subscription {
return this.chatGatewayService.textCreated().subscribe(data => {
return this.chatGatewayService.textCreated().subscribe(() => {
this.isTyping$.next(false);
this.isResponding$.next(true);

Expand Down
8 changes: 4 additions & 4 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getJestProjects } from '@nx/jest';
import { getJestProjectsAsync } from '@nx/jest';

export default {
projects: getJestProjects(),
};
export default async () => ({
projects: await getJestProjectsAsync(),
});
16 changes: 8 additions & 8 deletions libs/openai-assistant/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"name": "@boldare/openai-assistant",
"description": "NestJS library for building chatbot solutions based on the OpenAI Assistant API",
"version": "1.2.0",
"version": "1.2.1",
"private": false,
"dependencies": {
"tslib": "^2.3.0",
"tslib": "^2.6.3",
"dotenv": "^16.4.5",
"envfile": "^7.1.0",
"@nestjs/common": "^10.0.2",
"@nestjs/platform-express": "^10.0.2",
"@nestjs/axios": "^3.0.1",
"@nestjs/swagger": "^7.3.0",
"@nestjs/common": "^10.4.4",
"@nestjs/platform-express": "^10.4.4",
"@nestjs/axios": "^3.0.3",
"@nestjs/swagger": "^7.4.2",
"@nestjs/websockets": "^10.3.0",
"multer": "^1.4.4-lts.1",
"class-validator": "^0.14.1",
"socket.io": "^4.7.3"
"socket.io": "^4.8.0"
},
"peerDependencies": {
"openai": "^4.55.0"
"openai": "^4.67.3"
},
"type": "commonjs",
"main": "./src/index.js",
Expand Down
2 changes: 2 additions & 0 deletions libs/openai-assistant/src/lib/run/run.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export class RunService {
case 'failed':
case 'expired':
case 'completed':
case 'incomplete':
case 'queued':
return;
case 'requires_action':
await this.submitAction(run, callbacks);
Expand Down
10 changes: 1 addition & 9 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,5 @@
"e2eTestRunner": "none"
}
},
"useInferencePlugins": false,
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": ["build", "test"]
}
}
}
"useInferencePlugins": false
}
Loading

0 comments on commit a9930d5

Please sign in to comment.