@@ -5,7 +5,6 @@ import type { HTTPMethod, PromiseOrValue, MergedRequestInit, FinalizedRequestIni
55import { uuid4 } from './internal/utils/uuid' ;
66import { validatePositiveInteger , isAbsoluteURL , safeJSON } from './internal/utils/values' ;
77import { sleep } from './internal/utils/sleep' ;
8- import { type Logger , type LogLevel , parseLogLevel } from './internal/utils/log' ;
98export type { Logger , LogLevel } from './internal/utils/log' ;
109import { castToError , isAbortError } from './internal/errors' ;
1110import type { APIResponseProps } from './internal/parse' ;
@@ -19,10 +18,6 @@ import { type PageParams, PageResponse } from './core/pagination';
1918import * as Uploads from './core/uploads' ;
2019import * as API from './resources/index' ;
2120import { APIPromise } from './core/api-promise' ;
22- import { type Fetch } from './internal/builtin-types' ;
23- import { isRunningInBrowser } from './internal/detect-platform' ;
24- import { HeadersLike , NullableHeaders , buildHeaders } from './internal/headers' ;
25- import { FinalRequestOptions , RequestOptions } from './internal/request-options' ;
2621import {
2722 Completion ,
2823 CompletionCreateParams ,
@@ -31,9 +26,6 @@ import {
3126 Completions ,
3227} from './resources/completions' ;
3328import { ModelInfo , ModelInfosPage , ModelListParams , ModelRetrieveParams , Models } from './resources/models' ;
34- import { readEnv } from './internal/utils/env' ;
35- import { formatRequestDetails , loggerFor } from './internal/utils/log' ;
36- import { isEmptyObj } from './internal/utils/values' ;
3729import {
3830 AnthropicBeta ,
3931 Beta ,
@@ -142,6 +134,19 @@ import {
142134 WebSearchToolResultBlockParamContent ,
143135 WebSearchToolResultError ,
144136} from './resources/messages/messages' ;
137+ import { type Fetch } from './internal/builtin-types' ;
138+ import { isRunningInBrowser } from './internal/detect-platform' ;
139+ import { HeadersLike , NullableHeaders , buildHeaders } from './internal/headers' ;
140+ import { FinalRequestOptions , RequestOptions } from './internal/request-options' ;
141+ import { readEnv } from './internal/utils/env' ;
142+ import {
143+ type LogLevel ,
144+ type Logger ,
145+ formatRequestDetails ,
146+ loggerFor ,
147+ parseLogLevel ,
148+ } from './internal/utils/log' ;
149+ import { isEmptyObj } from './internal/utils/values' ;
145150
146151export interface ClientOptions {
147152 /**
0 commit comments