forked from boldare/openai-assistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchat.config.ts
25 lines (23 loc) · 839 Bytes
/
chat.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { AssistantCreateParams } from 'openai/resources/beta';
import { AssistantConfigParams } from '@boldare/openai-assistant';
import 'dotenv/config';
export const assistantParams: AssistantCreateParams = {
name: '@boldare/openai-assistant',
instructions: `You are a chatbot assistant. Use the general knowledge to answer questions. Speak briefly and clearly.`,
tools: [{ type: 'code_interpreter' }, { type: 'file_search' }],
model: 'gpt-4o-mini',
temperature: 0.05,
};
export const assistantConfig: AssistantConfigParams = {
id: process.env['ASSISTANT_ID'] || '',
params: assistantParams,
filesDir: './apps/api/src/app/knowledge',
toolResources: {
fileSearch: {
fileNames: ['33-things-to-ask-your-digital-product-development-partner.md'],
},
codeInterpreter: {
fileNames: [],
},
},
};