Skip to content

Commit 5410be7

Browse files
Inference: rename base type, no longer a base, grown into a property (#4155) (#4157)
* Inference: rename base type, no longer a base, grown into a property * Making compiler happy by not extending request on a common type (cherry picked from commit 3afc61d) Co-authored-by: Laurent Saint-Félix <[email protected]>
1 parent 35b84cd commit 5410be7

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

specification/inference/_types/CommonTypes.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@
1919

2020
import { RateLimitSetting } from '@inference/_types/Services'
2121
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
22-
import { RequestBase } from '@_types/Base'
2322
import { Id } from '@_types/common'
2423
import { float, integer, long } from '@_types/Numeric'
2524

26-
export class RequestChatCompletionBase extends RequestBase {
25+
export class RequestChatCompletion {
2726
/**
2827
* A list of objects representing the conversation.
2928
*/

specification/inference/chat_completion_unified/UnifiedRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
import { RequestChatCompletionBase } from '@inference/_types/CommonTypes'
20+
import { RequestChatCompletion } from '@inference/_types/CommonTypes'
2121
import { RequestBase } from '@_types/Base'
2222
import { Id } from '@_types/common'
2323
import { Duration } from '@_types/Time'
@@ -49,5 +49,5 @@ export interface Request extends RequestBase {
4949
timeout?: Duration
5050
}
5151
/** @codegen_name chat_completion_request */
52-
body: RequestChatCompletionBase
52+
body: RequestChatCompletion
5353
}

specification/inference/post_eis_chat_completion/PostEisChatCompletionRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
import { RequestChatCompletionBase } from '@inference/_types/CommonTypes'
20+
import { RequestChatCompletion } from '@inference/_types/CommonTypes'
2121
import { RequestBase } from '@_types/Base'
2222
import { Id } from '@_types/common'
2323
/**
@@ -44,5 +44,5 @@ export interface Request extends RequestBase {
4444
eis_inference_id: Id
4545
}
4646
/** @codegen_name chat_completion_request */
47-
body: RequestChatCompletionBase
47+
body: RequestChatCompletion
4848
}

0 commit comments

Comments
 (0)