From 5c961f7233ce5e4cfd32d3edcb9a845df7014b89 Mon Sep 17 00:00:00 2001 From: Graden Rea Date: Fri, 8 Mar 2024 15:15:29 -0800 Subject: [PATCH] fix: use absolute paths in /src/lib --- src/lib/chat_completions_ext.ts | 2 +- src/lib/streaming.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/chat_completions_ext.ts b/src/lib/chat_completions_ext.ts index a617a18..d98f9f8 100644 --- a/src/lib/chat_completions_ext.ts +++ b/src/lib/chat_completions_ext.ts @@ -1,5 +1,5 @@ // Manually curated models for streaming chat completions. -import { ChatCompletion } from '../resources/chat'; +import { ChatCompletion } from 'groq-sdk/resources/chat' export interface ChatCompletionChunk { id: string; diff --git a/src/lib/streaming.ts b/src/lib/streaming.ts index 7c9b17d..ed760b5 100644 --- a/src/lib/streaming.ts +++ b/src/lib/streaming.ts @@ -1,7 +1,7 @@ -import { ReadableStream, type Response } from '../_shims/index'; -import { GroqError } from '../error'; +import { ReadableStream, type Response } from 'groq-sdk/_shims/index'; +import { GroqError } from 'groq-sdk/error'; -import { APIError } from '../error'; +import { APIError } from 'groq-sdk/error'; type Bytes = string | ArrayBuffer | Uint8Array | Buffer | null | undefined;