Skip to content

Commit 88e878a

Browse files
committed
fix: Folder name models to types
1 parent c4158a3 commit 88e878a

18 files changed

+5
-5
lines changed

src/Client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as Core from './Core';
2-
import * as Models from './models';
2+
import * as Models from './types';
33
import { AI21EnvConfig } from './EnvConfig';
44
import { MissingAPIKeyError } from './errors';
55
import { Chat } from './resources/chat';

src/Core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
HTTPMethod,
1111
PromiseOrValue,
1212
DefaultQuery,
13-
} from './models';
13+
} from './types/index.js';
1414
import { AI21EnvConfig } from './EnvConfig.js';
1515
import { handleAPIResponse } from './ResponseHandler.js';
1616

src/ResponseHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { APIResponseProps } from './models';
1+
import { APIResponseProps } from './types';
22
import { AI21Error } from './errors';
33
import { Stream } from './Streaming';
44
import { Response } from 'node-fetch';

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export { AI21 } from './Client';
22
export { VERSION } from './version';
3-
export { RequestOptions } from './models';
3+
export { RequestOptions } from './types';
44
export { AI21Error, MissingAPIKeyError } from './errors';
55
export { Stream } from './Streaming';
66
export { APIResource } from './APIResource';

src/resources/chat/completions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Models from '../../models';
1+
import * as Models from '../../types';
22
import { APIResource } from '../../APIResource';
33
import { Stream } from '../../Streaming';
44

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)