Skip to content

Commit 226f5b2

Browse files
Merge pull request #73 from boldare/chore/update
chore: library update
2 parents ccd686b + 9acc140 commit 226f5b2

File tree

9 files changed

+4113
-3390
lines changed

9 files changed

+4113
-3390
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const assistantParams: AssistantCreateParams = {
66
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: 'file_search' }],
9-
model: 'gpt-4o',
9+
model: 'gpt-4o-mini',
1010
temperature: 0.05,
1111
};
1212

@@ -16,7 +16,7 @@ export const assistantConfig: AssistantConfigParams = {
1616
filesDir: './apps/api/src/app/knowledge',
1717
toolResources: {
1818
fileSearch: {
19-
boldare: ['33-things-to-ask-your-digital-product-development-partner.md'],
19+
fileNames: ['33-things-to-ask-your-digital-product-development-partner.md'],
2020
},
2121
codeInterpreter: {
2222
fileNames: [],

apps/spa/src/app/components/controls/files/files.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
EventEmitter,
77
Input,
88
} from '@angular/core';
9-
import { MessageContent } from 'openai/src/resources/beta/threads/messages';
9+
import { MessageContent } from 'openai/resources/beta/threads/messages';
1010

1111
@Directive({
1212
standalone: true,

apps/spa/src/app/components/controls/message-content/message-content.helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { TextContentBlock } from 'openai/resources/beta/threads/messages';
2-
import { ImageFileContentBlock } from 'openai/src/resources/beta/threads/messages';
2+
import { ImageFileContentBlock } from 'openai/resources/beta/threads/messages';
33

44
export function isTextContentBlock(item?: {
55
type?: string;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
MessageContent,
44
MessageCreateParams,
55
} from 'openai/resources/beta/threads';
6-
import { TextContentBlock } from 'openai/src/resources/beta/threads/messages';
6+
import { TextContentBlock } from 'openai/resources/beta/threads/messages';
77
import { ChatMessage, ChatRole } from './chat.model';
88
import { CodeInterpreterTool, FileSearchTool } from 'openai/resources/beta';
99

libs/openai-assistant/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"socket.io": "^4.7.3"
1818
},
1919
"peerDependencies": {
20-
"openai": "^4.51.0"
20+
"openai": "^4.55.0"
2121
},
2222
"type": "commonjs",
2323
"main": "./src/index.js",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { AiService } from '../ai';
55
import { ConfigService } from '../config';
66
import { AssistantCreateParams, VectorStore } from 'openai/resources/beta';
77
import ToolResources = AssistantCreateParams.ToolResources;
8-
import { AssistantUpdateParams } from 'openai/src/resources/beta/assistants';
8+
import { AssistantUpdateParams } from 'openai/resources/beta/assistants';
99
import {
1010
AssistantCodeInterpreter,
1111
AssistantFileSearch,

libs/openai-assistant/src/lib/stream/stream.utils.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { AbstractAssistantStreamRunner } from 'openai/lib/AbstractAssistantStreamRunner';
2-
import { AssistantStreamEvents } from 'openai/lib/AssistantStream';
31
import {
42
ImageFile,
53
Message,
@@ -14,9 +12,10 @@ import {
1412
} from 'openai/resources/beta/threads/runs';
1513
import { RunStep } from 'openai/resources/beta/threads/runs/steps';
1614
import { ChatCallCallbacks, ChatEvents } from '../chat/chat.model';
15+
import { AssistantStream } from 'openai/lib/AssistantStream';
1716

1817
export const assistantStreamEventHandler = <T>(
19-
runner: AbstractAssistantStreamRunner<AssistantStreamEvents>,
18+
runner: AssistantStream,
2019
callbacks?: ChatCallCallbacks,
2120
) => {
2221
return runner

0 commit comments

Comments
 (0)