Skip to content

Commit

Permalink
move file
Browse files Browse the repository at this point in the history
  • Loading branch information
ansaxena1 committed Nov 21, 2024
1 parent 7b2d388 commit 2fed968
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/ai/ai-projects/samples-dev/agents/file_search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export async function main(): Promise<void> {
const client = AIProjectsClient.fromConnectionString(connectionString || "", new DefaultAzureCredential());

// Upload file
const localFileStream = fs.createReadStream("sample_file_for_upload.txt");
const localFileStream = fs.createReadStream("./samples-dev/agents/sample_file_for_upload.txt");
const file = await client.agents.uploadFile(localFileStream, "assistants", "sample_file_for_upload.txt");
console.log(`Uploaded file, ID: ${file.id}`);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The word 'apple' uses the code 442345, while the word 'banana' uses the code 673457.

0 comments on commit 2fed968

Please sign in to comment.