From dfd0ecaf8981261678b9fe6b8667c9195f8b623b Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Tue, 23 Jul 2024 14:07:11 +0000 Subject: [PATCH] fix: use relative paths (#475) --- src/index.ts | 4 ++-- src/resource.ts | 2 +- src/resources/completions.ts | 10 +++++----- src/resources/messages.ts | 16 ++++++++-------- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/index.ts b/src/index.ts index 2df0939a..7d1072d2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,8 +3,8 @@ import * as Errors from './error'; import * as Uploads from './uploads'; import { type Agent } from './_shims/index'; -import * as Core from '@anthropic-ai/sdk/core'; -import * as API from '@anthropic-ai/sdk/resources/index'; +import * as Core from './core'; +import * as API from './resources/index'; export interface ClientOptions { /** diff --git a/src/resource.ts b/src/resource.ts index 2763fa34..4d0a2661 100644 --- a/src/resource.ts +++ b/src/resource.ts @@ -1,6 +1,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Core from '@anthropic-ai/sdk/core'; +import * as Core from './core'; export class APIResource { protected _client: Core.APIClient; diff --git a/src/resources/completions.ts b/src/resources/completions.ts index fb3479a2..0ecb1d44 100644 --- a/src/resources/completions.ts +++ b/src/resources/completions.ts @@ -1,10 +1,10 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import { APIResource } from '@anthropic-ai/sdk/resource'; -import { APIPromise } from '@anthropic-ai/sdk/core'; -import * as Core from '@anthropic-ai/sdk/core'; -import * as CompletionsAPI from '@anthropic-ai/sdk/resources/completions'; -import { Stream } from '@anthropic-ai/sdk/streaming'; +import { APIResource } from '../resource'; +import { APIPromise } from '../core'; +import * as Core from '../core'; +import * as CompletionsAPI from './completions'; +import { Stream } from '../streaming'; export class Completions extends APIResource { /** diff --git a/src/resources/messages.ts b/src/resources/messages.ts index e55c3c6a..76d7119c 100644 --- a/src/resources/messages.ts +++ b/src/resources/messages.ts @@ -1,13 +1,13 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import { APIResource } from '@anthropic-ai/sdk/resource'; -import { APIPromise } from '@anthropic-ai/sdk/core'; -import * as Core from '@anthropic-ai/sdk/core'; -import { MessageStream } from '@anthropic-ai/sdk/lib/MessageStream'; -import * as MessagesAPI from '@anthropic-ai/sdk/resources/messages'; -import { Stream } from '@anthropic-ai/sdk/streaming'; - -export { MessageStream } from '@anthropic-ai/sdk/lib/MessageStream'; +import { APIResource } from '../resource'; +import { APIPromise } from '../core'; +import * as Core from '../core'; +import * as MessagesAPI from './messages'; +import { Stream } from '../streaming'; +import { MessageStream } from '../lib/MessageStream'; + +export { MessageStream } from '../lib/MessageStream'; export class Messages extends APIResource { /**