File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -101,9 +101,7 @@ import { AssistantCreateParams } from 'openai/resources/beta';
101101export 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};
You can’t perform that action at this time.
0 commit comments