From 2e9673ea076868d839da23475010ff9b788b46b2 Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Mon, 11 Nov 2024 21:28:07 +0000 Subject: [PATCH] chore(internal): version bump (#83) --- .gitignore | 2 +- scripts/build | 2 +- src/core.ts | 10 +-- src/error.ts | 2 +- src/index.ts | 133 ++++++++++++++++++++---------- src/resources/chat/chat.ts | 53 ++++++++---- src/resources/chat/completions.ts | 32 +++---- src/resources/completions.ts | 18 ++-- src/resources/embeddings.ts | 6 +- src/resources/files.ts | 13 +-- src/resources/fine-tune.ts | 17 ++-- src/resources/images.ts | 6 +- src/resources/index.ts | 42 ++++++---- src/resources/models.ts | 5 +- src/resources/top-level.ts | 6 +- src/streaming.ts | 6 +- tsconfig.deno.json | 11 +-- tsconfig.json | 3 +- 18 files changed, 216 insertions(+), 151 deletions(-) diff --git a/.gitignore b/.gitignore index 3eed6dd..d98d51a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,7 @@ yarn-error.log codegen.log Brewfile.lock.json dist -/deno +dist-deno /*.tgz .idea/ diff --git a/scripts/build b/scripts/build index 6d5dd97..45d24e9 100755 --- a/scripts/build +++ b/scripts/build @@ -50,7 +50,7 @@ node scripts/utils/postprocess-files.cjs (cd dist && node -e 'require("together-ai")') (cd dist && node -e 'import("together-ai")' --input-type=module) -if command -v deno &> /dev/null && [ -e ./scripts/build-deno ] +if [ -e ./scripts/build-deno ] then ./scripts/build-deno fi diff --git a/src/core.ts b/src/core.ts index ecb913d..c3a5b73 100644 --- a/src/core.ts +++ b/src/core.ts @@ -410,7 +410,7 @@ export abstract class APIClient { error: Object | undefined, message: string | undefined, headers: Headers | undefined, - ) { + ): APIError { return APIError.generate(status, error, message, headers); } @@ -682,9 +682,9 @@ export abstract class AbstractPage implements AsyncIterable { return await this.#client.requestAPIList(this.constructor as any, nextOptions); } - async *iterPages() { + async *iterPages(): AsyncGenerator { // eslint-disable-next-line @typescript-eslint/no-this-alias - let page: AbstractPage = this; + let page: this = this; yield page; while (page.hasNextPage()) { page = await page.getNextPage(); @@ -692,7 +692,7 @@ export abstract class AbstractPage implements AsyncIterable { } } - async *[Symbol.asyncIterator]() { + async *[Symbol.asyncIterator](): AsyncGenerator { for await (const page of this.iterPages()) { for (const item of page.getPaginatedItems()) { yield item; @@ -735,7 +735,7 @@ export class PagePromise< * console.log(item) * } */ - async *[Symbol.asyncIterator]() { + async *[Symbol.asyncIterator](): AsyncGenerator { const page = await this; for await (const item of page) { yield item; diff --git a/src/error.ts b/src/error.ts index 3680700..b69656b 100644 --- a/src/error.ts +++ b/src/error.ts @@ -47,7 +47,7 @@ export class APIError extends TogetherError { errorResponse: Object | undefined, message: string | undefined, headers: Headers | undefined, - ) { + ): APIError { if (!status) { return new APIConnectionError({ message, cause: castToError(errorResponse) }); } diff --git a/src/index.ts b/src/index.ts index 2ddbb89..21d4b47 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,11 +1,42 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Errors from './error'; -import * as Uploads from './uploads'; import { type Agent } from './_shims/index'; import * as Core from './core'; +import * as Errors from './error'; +import * as Uploads from './uploads'; import * as API from './resources/index'; import * as TopLevelAPI from './resources/top-level'; +import { RerankParams, RerankResponse } from './resources/top-level'; +import { + Completion, + CompletionCreateParams, + CompletionCreateParamsNonStreaming, + CompletionCreateParamsStreaming, + Completions, + LogProbs, + ToolChoice, + Tools, +} from './resources/completions'; +import { Embedding, EmbeddingCreateParams, Embeddings } from './resources/embeddings'; +import { + FileDeleteResponse, + FileListResponse, + FileObject, + FileRetrieveResponse, + Files, +} from './resources/files'; +import { + FineTune, + FineTuneCreateParams, + FineTuneDownloadParams, + FineTuneDownloadResponse, + FineTuneEvent, + FineTuneListResponse, + FineTuneResource, +} from './resources/fine-tune'; +import { ImageCreateParams, ImageFile, Images } from './resources/images'; +import { ModelListResponse, Models } from './resources/models'; +import { Chat } from './resources/chat/chat'; export interface ClientOptions { /** @@ -174,7 +205,7 @@ export class Together extends Core.APIClient { static fileFromPath = Uploads.fileFromPath; } -export const { +export { TogetherError, APIError, APIConnectionError, @@ -188,52 +219,64 @@ export const { InternalServerError, PermissionDeniedError, UnprocessableEntityError, -} = Errors; +} from './error'; export import toFile = Uploads.toFile; export import fileFromPath = Uploads.fileFromPath; -export namespace Together { - export import RequestOptions = Core.RequestOptions; - - export import RerankResponse = API.RerankResponse; - export import RerankParams = API.RerankParams; - - export import Chat = API.Chat; - - export import Completions = API.Completions; - export import Completion = API.Completion; - export import LogProbs = API.LogProbs; - export import ToolChoice = API.ToolChoice; - export import Tools = API.Tools; - export import CompletionCreateParams = API.CompletionCreateParams; - export import CompletionCreateParamsNonStreaming = API.CompletionCreateParamsNonStreaming; - export import CompletionCreateParamsStreaming = API.CompletionCreateParamsStreaming; - - export import Embeddings = API.Embeddings; - export import Embedding = API.Embedding; - export import EmbeddingCreateParams = API.EmbeddingCreateParams; - - export import Files = API.Files; - export import FileObject = API.FileObject; - export import FileRetrieveResponse = API.FileRetrieveResponse; - export import FileListResponse = API.FileListResponse; - export import FileDeleteResponse = API.FileDeleteResponse; - - export import FineTuneResource = API.FineTuneResource; - export import FineTune = API.FineTune; - export import FineTuneEvent = API.FineTuneEvent; - export import FineTuneListResponse = API.FineTuneListResponse; - export import FineTuneDownloadResponse = API.FineTuneDownloadResponse; - export import FineTuneCreateParams = API.FineTuneCreateParams; - export import FineTuneDownloadParams = API.FineTuneDownloadParams; - - export import Images = API.Images; - export import ImageFile = API.ImageFile; - export import ImageCreateParams = API.ImageCreateParams; - - export import Models = API.Models; - export import ModelListResponse = API.ModelListResponse; +Together.Chat = Chat; +Together.Completions = Completions; +Together.Embeddings = Embeddings; +Together.Files = Files; +Together.FineTuneResource = FineTuneResource; +Together.Images = Images; +Together.Models = Models; + +export declare namespace Together { + export type RequestOptions = Core.RequestOptions; + + export { type RerankResponse as RerankResponse, type RerankParams as RerankParams }; + + export { Chat as Chat }; + + export { + Completions as Completions, + type Completion as Completion, + type LogProbs as LogProbs, + type ToolChoice as ToolChoice, + type Tools as Tools, + type CompletionCreateParams as CompletionCreateParams, + type CompletionCreateParamsNonStreaming as CompletionCreateParamsNonStreaming, + type CompletionCreateParamsStreaming as CompletionCreateParamsStreaming, + }; + + export { + Embeddings as Embeddings, + type Embedding as Embedding, + type EmbeddingCreateParams as EmbeddingCreateParams, + }; + + export { + Files as Files, + type FileObject as FileObject, + type FileRetrieveResponse as FileRetrieveResponse, + type FileListResponse as FileListResponse, + type FileDeleteResponse as FileDeleteResponse, + }; + + export { + FineTuneResource as FineTuneResource, + type FineTune as FineTune, + type FineTuneEvent as FineTuneEvent, + type FineTuneListResponse as FineTuneListResponse, + type FineTuneDownloadResponse as FineTuneDownloadResponse, + type FineTuneCreateParams as FineTuneCreateParams, + type FineTuneDownloadParams as FineTuneDownloadParams, + }; + + export { Images as Images, type ImageFile as ImageFile, type ImageCreateParams as ImageCreateParams }; + + export { Models as Models, type ModelListResponse as ModelListResponse }; } export default Together; diff --git a/src/resources/chat/chat.ts b/src/resources/chat/chat.ts index fc656a3..6f0778f 100644 --- a/src/resources/chat/chat.ts +++ b/src/resources/chat/chat.ts @@ -2,25 +2,46 @@ import { APIResource } from '../../resource'; import * as CompletionsAPI from './completions'; +import { + ChatCompletion, + ChatCompletionAssistantMessageParam, + ChatCompletionChunk, + ChatCompletionFunctionMessageParam, + ChatCompletionMessage, + ChatCompletionMessageParam, + ChatCompletionSystemMessageParam, + ChatCompletionTool, + ChatCompletionToolMessageParam, + ChatCompletionUsage, + ChatCompletionUserMessageParam, + CompletionCreateParams, + CompletionCreateParamsNonStreaming, + CompletionCreateParamsStreaming, + Completions, +} from './completions'; export class Chat extends APIResource { completions: CompletionsAPI.Completions = new CompletionsAPI.Completions(this._client); } -export namespace Chat { - export import Completions = CompletionsAPI.Completions; - export import ChatCompletion = CompletionsAPI.ChatCompletion; - export import ChatCompletionAssistantMessageParam = CompletionsAPI.ChatCompletionAssistantMessageParam; - export import ChatCompletionChunk = CompletionsAPI.ChatCompletionChunk; - export import ChatCompletionFunctionMessageParam = CompletionsAPI.ChatCompletionFunctionMessageParam; - export import ChatCompletionMessage = CompletionsAPI.ChatCompletionMessage; - export import ChatCompletionMessageParam = CompletionsAPI.ChatCompletionMessageParam; - export import ChatCompletionSystemMessageParam = CompletionsAPI.ChatCompletionSystemMessageParam; - export import ChatCompletionTool = CompletionsAPI.ChatCompletionTool; - export import ChatCompletionToolMessageParam = CompletionsAPI.ChatCompletionToolMessageParam; - export import ChatCompletionUsage = CompletionsAPI.ChatCompletionUsage; - export import ChatCompletionUserMessageParam = CompletionsAPI.ChatCompletionUserMessageParam; - export import CompletionCreateParams = CompletionsAPI.CompletionCreateParams; - export import CompletionCreateParamsNonStreaming = CompletionsAPI.CompletionCreateParamsNonStreaming; - export import CompletionCreateParamsStreaming = CompletionsAPI.CompletionCreateParamsStreaming; +Chat.Completions = Completions; + +export declare namespace Chat { + export { + Completions as Completions, + type ChatCompletion as ChatCompletion, + type ChatCompletionAssistantMessageParam as ChatCompletionAssistantMessageParam, + type ChatCompletionChunk as ChatCompletionChunk, + type ChatCompletionFunctionMessageParam as ChatCompletionFunctionMessageParam, + type ChatCompletionMessage as ChatCompletionMessage, + type ChatCompletionMessageParam as ChatCompletionMessageParam, + type ChatCompletionSystemMessageParam as ChatCompletionSystemMessageParam, + type ChatCompletionTool as ChatCompletionTool, + type ChatCompletionToolMessageParam as ChatCompletionToolMessageParam, + type ChatCompletionUsage as ChatCompletionUsage, + type ChatCompletionUserMessageParam as ChatCompletionUserMessageParam, + type CompletionCreateParams as CompletionCreateParams, + type CompletionCreateParamsNonStreaming as CompletionCreateParamsNonStreaming, + type CompletionCreateParamsStreaming as CompletionCreateParamsStreaming, + }; } diff --git a/src/resources/chat/completions.ts b/src/resources/chat/completions.ts index 8108574..8ade808 100644 --- a/src/resources/chat/completions.ts +++ b/src/resources/chat/completions.ts @@ -438,19 +438,21 @@ export interface CompletionCreateParamsStreaming extends CompletionCreateParamsB stream: true; } -export namespace Completions { - export import ChatCompletion = ChatCompletionsAPI.ChatCompletion; - export import ChatCompletionAssistantMessageParam = ChatCompletionsAPI.ChatCompletionAssistantMessageParam; - export import ChatCompletionChunk = ChatCompletionsAPI.ChatCompletionChunk; - export import ChatCompletionFunctionMessageParam = ChatCompletionsAPI.ChatCompletionFunctionMessageParam; - export import ChatCompletionMessage = ChatCompletionsAPI.ChatCompletionMessage; - export import ChatCompletionMessageParam = ChatCompletionsAPI.ChatCompletionMessageParam; - export import ChatCompletionSystemMessageParam = ChatCompletionsAPI.ChatCompletionSystemMessageParam; - export import ChatCompletionTool = ChatCompletionsAPI.ChatCompletionTool; - export import ChatCompletionToolMessageParam = ChatCompletionsAPI.ChatCompletionToolMessageParam; - export import ChatCompletionUsage = ChatCompletionsAPI.ChatCompletionUsage; - export import ChatCompletionUserMessageParam = ChatCompletionsAPI.ChatCompletionUserMessageParam; - export import CompletionCreateParams = ChatCompletionsAPI.CompletionCreateParams; - export import CompletionCreateParamsNonStreaming = ChatCompletionsAPI.CompletionCreateParamsNonStreaming; - export import CompletionCreateParamsStreaming = ChatCompletionsAPI.CompletionCreateParamsStreaming; +export declare namespace Completions { + export { + type ChatCompletion as ChatCompletion, + type ChatCompletionAssistantMessageParam as ChatCompletionAssistantMessageParam, + type ChatCompletionChunk as ChatCompletionChunk, + type ChatCompletionFunctionMessageParam as ChatCompletionFunctionMessageParam, + type ChatCompletionMessage as ChatCompletionMessage, + type ChatCompletionMessageParam as ChatCompletionMessageParam, + type ChatCompletionSystemMessageParam as ChatCompletionSystemMessageParam, + type ChatCompletionTool as ChatCompletionTool, + type ChatCompletionToolMessageParam as ChatCompletionToolMessageParam, + type ChatCompletionUsage as ChatCompletionUsage, + type ChatCompletionUserMessageParam as ChatCompletionUserMessageParam, + type CompletionCreateParams as CompletionCreateParams, + type CompletionCreateParamsNonStreaming as CompletionCreateParamsNonStreaming, + type CompletionCreateParamsStreaming as CompletionCreateParamsStreaming, + }; } diff --git a/src/resources/completions.ts b/src/resources/completions.ts index a927ca0..683bfdc 100644 --- a/src/resources/completions.ts +++ b/src/resources/completions.ts @@ -264,12 +264,14 @@ export interface CompletionCreateParamsStreaming extends CompletionCreateParamsB stream: true; } -export namespace Completions { - export import Completion = CompletionsAPI.Completion; - export import LogProbs = CompletionsAPI.LogProbs; - export import ToolChoice = CompletionsAPI.ToolChoice; - export import Tools = CompletionsAPI.Tools; - export import CompletionCreateParams = CompletionsAPI.CompletionCreateParams; - export import CompletionCreateParamsNonStreaming = CompletionsAPI.CompletionCreateParamsNonStreaming; - export import CompletionCreateParamsStreaming = CompletionsAPI.CompletionCreateParamsStreaming; +export declare namespace Completions { + export { + type Completion as Completion, + type LogProbs as LogProbs, + type ToolChoice as ToolChoice, + type Tools as Tools, + type CompletionCreateParams as CompletionCreateParams, + type CompletionCreateParamsNonStreaming as CompletionCreateParamsNonStreaming, + type CompletionCreateParamsStreaming as CompletionCreateParamsStreaming, + }; } diff --git a/src/resources/embeddings.ts b/src/resources/embeddings.ts index 8da4431..5dfeba1 100644 --- a/src/resources/embeddings.ts +++ b/src/resources/embeddings.ts @@ -2,7 +2,6 @@ import { APIResource } from '../resource'; import * as Core from '../core'; -import * as EmbeddingsAPI from './embeddings'; export class Embeddings extends APIResource { /** @@ -50,7 +49,6 @@ export interface EmbeddingCreateParams { | (string & {}); } -export namespace Embeddings { - export import Embedding = EmbeddingsAPI.Embedding; - export import EmbeddingCreateParams = EmbeddingsAPI.EmbeddingCreateParams; +export declare namespace Embeddings { + export { type Embedding as Embedding, type EmbeddingCreateParams as EmbeddingCreateParams }; } diff --git a/src/resources/files.ts b/src/resources/files.ts index 1ab191f..f0de3ce 100644 --- a/src/resources/files.ts +++ b/src/resources/files.ts @@ -2,7 +2,6 @@ import { APIResource } from '../resource'; import * as Core from '../core'; -import * as FilesAPI from './files'; import { type Response } from '../_shims/index'; export class Files extends APIResource { @@ -104,9 +103,11 @@ export interface FileDeleteResponse { deleted?: boolean; } -export namespace Files { - export import FileObject = FilesAPI.FileObject; - export import FileRetrieveResponse = FilesAPI.FileRetrieveResponse; - export import FileListResponse = FilesAPI.FileListResponse; - export import FileDeleteResponse = FilesAPI.FileDeleteResponse; +export declare namespace Files { + export { + type FileObject as FileObject, + type FileRetrieveResponse as FileRetrieveResponse, + type FileListResponse as FileListResponse, + type FileDeleteResponse as FileDeleteResponse, + }; } diff --git a/src/resources/fine-tune.ts b/src/resources/fine-tune.ts index 9648363..3a8ddfe 100644 --- a/src/resources/fine-tune.ts +++ b/src/resources/fine-tune.ts @@ -2,7 +2,6 @@ import { APIResource } from '../resource'; import * as Core from '../core'; -import * as FineTuneAPI from './fine-tune'; export class FineTuneResource extends APIResource { /** @@ -361,11 +360,13 @@ export interface FineTuneDownloadParams { output?: string; } -export namespace FineTuneResource { - export import FineTune = FineTuneAPI.FineTune; - export import FineTuneEvent = FineTuneAPI.FineTuneEvent; - export import FineTuneListResponse = FineTuneAPI.FineTuneListResponse; - export import FineTuneDownloadResponse = FineTuneAPI.FineTuneDownloadResponse; - export import FineTuneCreateParams = FineTuneAPI.FineTuneCreateParams; - export import FineTuneDownloadParams = FineTuneAPI.FineTuneDownloadParams; +export declare namespace FineTuneResource { + export { + type FineTune as FineTune, + type FineTuneEvent as FineTuneEvent, + type FineTuneListResponse as FineTuneListResponse, + type FineTuneDownloadResponse as FineTuneDownloadResponse, + type FineTuneCreateParams as FineTuneCreateParams, + type FineTuneDownloadParams as FineTuneDownloadParams, + }; } diff --git a/src/resources/images.ts b/src/resources/images.ts index e4227e3..62de5b8 100644 --- a/src/resources/images.ts +++ b/src/resources/images.ts @@ -2,7 +2,6 @@ import { APIResource } from '../resource'; import * as Core from '../core'; -import * as ImagesAPI from './images'; export class Images extends APIResource { /** @@ -79,7 +78,6 @@ export interface ImageCreateParams { width?: number; } -export namespace Images { - export import ImageFile = ImagesAPI.ImageFile; - export import ImageCreateParams = ImagesAPI.ImageCreateParams; +export declare namespace Images { + export { type ImageFile as ImageFile, type ImageCreateParams as ImageCreateParams }; } diff --git a/src/resources/index.ts b/src/resources/index.ts index 767911b..833d77c 100644 --- a/src/resources/index.ts +++ b/src/resources/index.ts @@ -2,26 +2,32 @@ export { Chat } from './chat/chat'; export { - Completion, - LogProbs, - ToolChoice, - Tools, - CompletionCreateParams, - CompletionCreateParamsNonStreaming, - CompletionCreateParamsStreaming, Completions, + type Completion, + type LogProbs, + type ToolChoice, + type Tools, + type CompletionCreateParams, + type CompletionCreateParamsNonStreaming, + type CompletionCreateParamsStreaming, } from './completions'; -export { Embedding, EmbeddingCreateParams, Embeddings } from './embeddings'; -export { FileObject, FileRetrieveResponse, FileListResponse, FileDeleteResponse, Files } from './files'; +export { Embeddings, type Embedding, type EmbeddingCreateParams } from './embeddings'; +export { + Files, + type FileObject, + type FileRetrieveResponse, + type FileListResponse, + type FileDeleteResponse, +} from './files'; export { - FineTune, - FineTuneEvent, - FineTuneListResponse, - FineTuneDownloadResponse, - FineTuneCreateParams, - FineTuneDownloadParams, FineTuneResource, + type FineTune, + type FineTuneEvent, + type FineTuneListResponse, + type FineTuneDownloadResponse, + type FineTuneCreateParams, + type FineTuneDownloadParams, } from './fine-tune'; -export { ImageFile, ImageCreateParams, Images } from './images'; -export { ModelListResponse, Models } from './models'; -export { RerankResponse, RerankParams } from './top-level'; +export { Images, type ImageFile, type ImageCreateParams } from './images'; +export { Models, type ModelListResponse } from './models'; +export { type RerankResponse, type RerankParams } from './top-level'; diff --git a/src/resources/models.ts b/src/resources/models.ts index f818f4b..e0afa6e 100644 --- a/src/resources/models.ts +++ b/src/resources/models.ts @@ -2,7 +2,6 @@ import { APIResource } from '../resource'; import * as Core from '../core'; -import * as ModelsAPI from './models'; export class Models extends APIResource { /** @@ -53,6 +52,6 @@ export namespace ModelListResponse { } } -export namespace Models { - export import ModelListResponse = ModelsAPI.ModelListResponse; +export declare namespace Models { + export { type ModelListResponse as ModelListResponse }; } diff --git a/src/resources/top-level.ts b/src/resources/top-level.ts index a65334b..a34be94 100644 --- a/src/resources/top-level.ts +++ b/src/resources/top-level.ts @@ -1,6 +1,5 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as TopLevelAPI from './top-level'; import * as CompletionsAPI from './chat/completions'; export interface RerankResponse { @@ -75,7 +74,6 @@ export interface RerankParams { top_n?: number; } -export namespace TopLevel { - export import RerankResponse = TopLevelAPI.RerankResponse; - export import RerankParams = TopLevelAPI.RerankParams; +export declare namespace TopLevel { + export { type RerankResponse as RerankResponse, type RerankParams as RerankParams }; } diff --git a/src/streaming.ts b/src/streaming.ts index f1e0571..eb85f41 100644 --- a/src/streaming.ts +++ b/src/streaming.ts @@ -2,7 +2,7 @@ import { ReadableStream, type Response } from './_shims/index'; import { TogetherError } from './error'; import { LineDecoder } from './internal/decoders/line'; -import { APIError } from 'together-ai/error'; +import { APIError } from './error'; type Bytes = string | ArrayBuffer | Uint8Array | Buffer | null | undefined; @@ -22,7 +22,7 @@ export class Stream implements AsyncIterable { this.controller = controller; } - static fromSSEResponse(response: Response, controller: AbortController) { + static fromSSEResponse(response: Response, controller: AbortController): Stream { let consumed = false; async function* iterator(): AsyncIterator { @@ -76,7 +76,7 @@ export class Stream implements AsyncIterable { * Generates a Stream from a newline-separated ReadableStream * where each item is a JSON value. */ - static fromReadableStream(readableStream: ReadableStream, controller: AbortController) { + static fromReadableStream(readableStream: ReadableStream, controller: AbortController): Stream { let consumed = false; async function* iterLines(): AsyncGenerator { diff --git a/tsconfig.deno.json b/tsconfig.deno.json index debfa6c..849e070 100644 --- a/tsconfig.deno.json +++ b/tsconfig.deno.json @@ -1,19 +1,14 @@ { "extends": "./tsconfig.json", - "include": ["deno"], + "include": ["dist-deno"], "exclude": [], "compilerOptions": { - "rootDir": "./deno", + "rootDir": "./dist-deno", "lib": ["es2020", "DOM"], - "paths": { - "together-ai/_shims/auto/*": ["deno/_shims/auto/*-deno"], - "together-ai/*": ["deno/*"], - "together-ai": ["deno/index.ts"], - }, "noEmit": true, "declaration": true, "declarationMap": true, - "outDir": "deno", + "outDir": "dist-deno", "pretty": true, "sourceMap": true } diff --git a/tsconfig.json b/tsconfig.json index eef5c17..cf400f3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,7 +11,7 @@ "paths": { "together-ai/_shims/auto/*": ["src/_shims/auto/*-node"], "together-ai/*": ["src/*"], - "together-ai": ["src/index.ts"], + "together-ai": ["src/index.ts"] }, "noEmit": true, @@ -32,6 +32,7 @@ "noUncheckedIndexedAccess": true, "noImplicitOverride": true, "noPropertyAccessFromIndexSignature": true, + "isolatedModules": false, "skipLibCheck": true }