Skip to content

Commit 0367935

Browse files
committed
fix: Imports
1 parent 0fedca4 commit 0367935

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/APIClient.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,19 @@ export abstract class APIClient {
4141
this.maxRetries = validatePositiveInteger('maxRetries', maxRetries);
4242
this.timeout = validatePositiveInteger('timeout', timeout);
4343
}
44-
protected get<Req, Rsp>(path: string, opts?: RequestOptions<Req>): Promise<Rsp> {
44+
get<Req, Rsp>(path: string, opts?: RequestOptions<Req>): Promise<Rsp> {
4545
return this.makeRequest('get', path, opts);
4646
}
4747

48-
protected post<Req, Rsp>(path: string, opts?: RequestOptions<Req>): Promise<Rsp> {
48+
post<Req, Rsp>(path: string, opts?: RequestOptions<Req>): Promise<Rsp> {
4949
return this.makeRequest('post', path, opts);
5050
}
5151

52-
protected put<Req, Rsp>(path: string, opts?: RequestOptions<Req>): Promise<Rsp> {
52+
put<Req, Rsp>(path: string, opts?: RequestOptions<Req>): Promise<Rsp> {
5353
return this.makeRequest('put', path, opts);
5454
}
5555

56-
protected delete<Req, Rsp>(path: string, opts?: RequestOptions<Req>): Promise<Rsp> {
56+
delete<Req, Rsp>(path: string, opts?: RequestOptions<Req>): Promise<Rsp> {
5757
return this.makeRequest('delete', path, opts);
5858
}
5959

src/example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AI21 } from './ai21';
1+
import { AI21 } from "./AI21";
22

33
/*
44
This is a temporary example to test the API streaming/non-streaming functionality.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export { AI21 } from './ai21';
1+
export { AI21 } from './AI21';
22
export { VERSION } from './version';
33
export { RequestOptions } from './types';
44
export { AI21Error, MissingAPIKeyError } from './errors';

0 commit comments

Comments
 (0)