Skip to content

Commit 43900e3

Browse files
chore: change the config example in the so it contains file search
1 parent 295f805 commit 43900e3

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ import { AssistantCreateParams } from 'openai/resources/beta';
101101
export const assistantParams: AssistantCreateParams = {
102102
name: 'Your assistant name',
103103
instructions: `You are a chatbot assistant. Speak briefly and clearly.`,
104-
tools: [
105-
{ type: 'code_interpreter' },
106-
],
104+
tools: [{ type: 'file_search'}],
107105
model: 'gpt-4-turbo',
108106
temperature: 0.05,
109107
};
@@ -114,8 +112,14 @@ export const assistantConfig: AssistantConfigParams = {
114112
params: assistantParams,
115113
filesDir: './apps/api/src/app/knowledge',
116114
toolResources: {
117-
codeInterpreter: {
118-
fileNames: [],
115+
file_search: {
116+
// Provide files if you use file_search tool
117+
files: [
118+
{
119+
name: 'example',
120+
content: 'This is an example file.',
121+
},
122+
],
119123
},
120124
},
121125
};

0 commit comments

Comments
 (0)