From 741971676cef9ebf3c0f0bbbf62f98aa4c4c6c55 Mon Sep 17 00:00:00 2001 From: Philip Stern Date: Mon, 20 May 2024 15:07:03 -0400 Subject: [PATCH] Linting Examples --- examples/embedding.ts | 2 +- examples/files.ts | 2 +- examples/fine-tune.ts | 1 - examples/image.ts | 2 +- examples/models.ts | 2 +- examples/streaming.ts | 2 +- 6 files changed, 5 insertions(+), 6 deletions(-) diff --git a/examples/embedding.ts b/examples/embedding.ts index c5e7c8f9..03d084e2 100755 --- a/examples/embedding.ts +++ b/examples/embedding.ts @@ -1,6 +1,6 @@ #!/usr/bin/env -S npm run tsn -T -import Together from 'together'; +import Together from 'together'; const together = new Together(); diff --git a/examples/files.ts b/examples/files.ts index ee3ea46f..ed1b8431 100755 --- a/examples/files.ts +++ b/examples/files.ts @@ -2,7 +2,7 @@ // Example of listing and retrieving files -import Together from 'together'; +import Together from 'together'; const together = new Together(); diff --git a/examples/fine-tune.ts b/examples/fine-tune.ts index 7ab45d72..5c488740 100755 --- a/examples/fine-tune.ts +++ b/examples/fine-tune.ts @@ -5,7 +5,6 @@ import Together from 'together'; const together = new Together(); async function main() { - //These files need to be uploaded separately. See the files example. const fileId = 'file-bf72b951-fa1a-41af-a152-fe385dca0201'; diff --git a/examples/image.ts b/examples/image.ts index 284d6ba3..0cef9dd3 100755 --- a/examples/image.ts +++ b/examples/image.ts @@ -2,7 +2,7 @@ //An example to generate an image and save to a file -import Together from 'together'; +import Together from 'together'; import fs from 'fs'; const together = new Together(); diff --git a/examples/models.ts b/examples/models.ts index 65c9a8ea..be2a54ca 100755 --- a/examples/models.ts +++ b/examples/models.ts @@ -2,7 +2,7 @@ //An example to request a list of models and print them. -import Together from 'together'; +import Together from 'together'; const together = new Together(); diff --git a/examples/streaming.ts b/examples/streaming.ts index 9d4e056a..2c02e1cf 100755 --- a/examples/streaming.ts +++ b/examples/streaming.ts @@ -1,6 +1,6 @@ #!/usr/bin/env -S npm run tsn -T -import Together from 'together'; +import Together from 'together'; const together = new Together();