Skip to content

Commit 51efa7a

Browse files
Changed library name to @boldare/openai-assistant (#43)
* refactor: renamed package name ai-assistant -> openai-assistant
1 parent 73196c9 commit 51efa7a

File tree

86 files changed

+59
-51
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+59
-51
lines changed

README.md

Lines changed: 12 additions & 12 deletions

apps/api/src/app/chat/agents/agents.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Module } from '@nestjs/common';
22
import { GetAnimalAgent } from './get-animal.agent';
3-
import { AgentModule } from '@boldare/ai-assistant';
3+
import { AgentModule } from '@boldare/openai-assistant';
44

55
@Module({
66
imports: [AgentModule],

apps/api/src/app/chat/agents/get-animal.agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Injectable } from '@nestjs/common';
22
import { AssistantCreateParams } from 'openai/resources/beta';
3-
import { AgentBase, AgentData, AgentService } from '@boldare/ai-assistant';
3+
import { AgentBase, AgentData, AgentService } from '@boldare/openai-assistant';
44

55
@Injectable()
66
export class GetAnimalAgent extends AgentBase {

apps/api/src/app/chat/chat.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { AssistantCreateParams } from 'openai/resources/beta';
2-
import { AssistantConfigParams } from '@boldare/ai-assistant';
2+
import { AssistantConfigParams } from '@boldare/openai-assistant';
33
import 'dotenv/config';
44

55
export const assistantParams: AssistantCreateParams = {
6-
name: '@boldare/ai-assistant',
6+
name: '@boldare/openai-assistant',
77
instructions: `You are a chatbot assistant. Use the general knowledge to answer questions. Speak briefly and clearly.`,
88
tools: [{ type: 'code_interpreter' }, { type: 'retrieval' }],
99
model: 'gpt-4-1106-preview',

apps/api/src/app/chat/chat.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Module } from '@nestjs/common';
2-
import { AssistantModule } from '@boldare/ai-assistant';
2+
import { AssistantModule } from '@boldare/openai-assistant';
33
import { assistantConfig } from './chat.config';
44
import { AgentsModule } from './agents/agents.module';
55

apps/api/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ async function bootstrap() {
88
const app = await NestFactory.create(AppModule);
99
const globalPrefix = 'api';
1010
const config = new DocumentBuilder()
11-
.setTitle('@boldare/ai-assistant')
11+
.setTitle('@boldare/openai-assistant')
1212
.setVersion('0.1.0')
1313
.build();
1414
const document = SwaggerModule.createDocument(app, config);

apps/spa/src/app/components/chat/chat-audio/chat-audio.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Message, SpeechVoice } from '../../../modules/+chat/shared/chat.model';
44
import { environment } from '../../../../environments/environment';
55
import { MatIconModule } from '@angular/material/icon';
66
import { delay } from 'rxjs';
7-
import { ChatAudioResponse, PostSpeechDto } from '@boldare/ai-assistant';
7+
import { ChatAudioResponse, PostSpeechDto } from '@boldare/openai-assistant';
88
import { NgClass } from '@angular/common';
99

1010
@Component({

apps/spa/src/app/modules/+chat/containers/chat/chat.component.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
<img [src]="'/assets/boldare.svg'" alt="Boldare" class="chat__logo" routerLink="/" />
1+
<img
2+
[src]="'/assets/boldare.svg'"
3+
alt="Boldare"
4+
class="chat__logo"
5+
routerLink="/" />
26

37
<div class="chat__nav">
48
<a
5-
href="https://github.com/boldare/ai-assistant/wiki"
9+
href="https://github.com/boldare/openai-assistant/wiki"
610
target="_blank"
711
class="chat__link">
812
Documentation
@@ -16,14 +20,14 @@
1620
</a>
1721
🔹
1822
<a
19-
href="https://github.com/boldare/ai-assistant"
23+
href="https://github.com/boldare/openai-assistant"
2024
target="_blank"
2125
class="chat__link">
2226
GitHub
2327
</a>
2428
🔹
2529
<a
26-
href="https://www.npmjs.com/package/@boldare/ai-assistant"
30+
href="https://www.npmjs.com/package/@boldare/openai-assistant"
2731
target="_blank"
2832
class="chat__link">
2933
NPM

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
PostSpeechDto,
1010
UploadFilesPayload,
1111
UploadFilesResponseDto,
12-
} from '@boldare/ai-assistant';
12+
} from '@boldare/openai-assistant';
1313

1414
@Injectable({ providedIn: 'root' })
1515
export class ChatClientService {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Injectable } from '@angular/core';
22
import { FilesService } from '../../../components/controls';
33
import { ChatClientService } from './chat-client.service';
4-
import { OpenAiFile } from '@boldare/ai-assistant';
4+
import { OpenAiFile } from '@boldare/openai-assistant';
55

66
@Injectable({ providedIn: 'root' })
77
export class ChatFilesService {

0 commit comments

Comments
 (0)