chore: Change type ModelRuntimeParam to ModelRuntimeParams

This commit is contained in:
hiro 2023-12-05 00:27:09 +07:00
parent 05b9a7bfc9
commit cb60a7cf92

View File

@ -42,7 +42,7 @@ export type MessageRequest = {
messages?: ChatCompletionMessage[]; messages?: ChatCompletionMessage[];
/** Runtime parameters for constructing a chat completion request **/ /** Runtime parameters for constructing a chat completion request **/
parameters?: ModelRuntimeParam; parameters?: ModelRuntimeParams;
/** Settings for constructing a chat completion request **/ /** Settings for constructing a chat completion request **/
model?: ModelInfo model?: ModelInfo
@ -156,7 +156,7 @@ export type ThreadAssistantInfo = {
export type ModelInfo = { export type ModelInfo = {
id: string; id: string;
settings: ModelSettingParams; settings: ModelSettingParams;
parameters: ModelRuntimeParam; parameters: ModelRuntimeParams;
engine: InferenceEngine; engine: InferenceEngine;
}; };
@ -243,7 +243,7 @@ export interface Model {
/** /**
* The model runtime parameters. * The model runtime parameters.
*/ */
parameters: ModelRuntimeParam; parameters: ModelRuntimeParams;
/** /**
* Metadata of the model. * Metadata of the model.
@ -287,7 +287,7 @@ export type ModelSettingParams = {
/** /**
* The available model runtime parameters. * The available model runtime parameters.
*/ */
export type ModelRuntimeParam = { export type ModelRuntimeParams = {
temperature?: number; temperature?: number;
token_limit?: number; token_limit?: number;
top_k?: number; top_k?: number;