File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -289,31 +289,9 @@ export class Anthropic extends Core.APIClient {
289289 static fileFromPath = Uploads . fileFromPath ;
290290}
291291
292- export const { HUMAN_PROMPT , AI_PROMPT } = Anthropic ;
293-
294- export {
295- AnthropicError ,
296- APIError ,
297- APIConnectionError ,
298- APIConnectionTimeoutError ,
299- APIUserAbortError ,
300- NotFoundError ,
301- ConflictError ,
302- RateLimitError ,
303- BadRequestError ,
304- AuthenticationError ,
305- InternalServerError ,
306- PermissionDeniedError ,
307- UnprocessableEntityError ,
308- } from './error' ;
309-
310- export import toFile = Uploads . toFile ;
311- export import fileFromPath = Uploads . fileFromPath ;
312-
313292Anthropic . Completions = Completions ;
314293Anthropic . Messages = Messages ;
315294Anthropic . Beta = Beta ;
316-
317295export declare namespace Anthropic {
318296 export type RequestOptions = Core . RequestOptions ;
319297
@@ -384,5 +362,23 @@ export declare namespace Anthropic {
384362 type BetaRateLimitError as BetaRateLimitError ,
385363 } ;
386364}
365+ export const { HUMAN_PROMPT , AI_PROMPT } = Anthropic ;
366+
367+ export { toFile , fileFromPath } from '@anthropic-ai/sdk/uploads' ;
368+ export {
369+ AnthropicError ,
370+ APIError ,
371+ APIConnectionError ,
372+ APIConnectionTimeoutError ,
373+ APIUserAbortError ,
374+ NotFoundError ,
375+ ConflictError ,
376+ RateLimitError ,
377+ BadRequestError ,
378+ AuthenticationError ,
379+ InternalServerError ,
380+ PermissionDeniedError ,
381+ UnprocessableEntityError ,
382+ } from '@anthropic-ai/sdk/error' ;
387383
388384export default Anthropic ;
You can’t perform that action at this time.
0 commit comments