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 c5e7c8f..03d084e 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 ee3ea46..ed1b843 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 7ab45d7..5c48874 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 284d6ba..0cef9dd 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 65c9a8e..be2a54c 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 9d4e056..2c02e1c 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();