Skip to content

Commit

Permalink
moving local file sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary King committed Nov 18, 2024
1 parent 78fcf7c commit 3940d0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions sdk/ai/ai-projects/local_file.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello, World!
2 changes: 1 addition & 1 deletion sdk/ai/ai-projects/samples-dev/agents/local_files.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 local file
const localFileStream = fs.createReadStream("test.txt");
const localFileStream = fs.createReadStream("local_file.txt");
const localFile = await client.agents.uploadFile(localFileStream, "assistants", "my-local-file");

console.log(`Uploaded local file, file ID : ${localFile.id}`);
Expand Down

0 comments on commit 3940d0e

Please sign in to comment.