Skip to content

Commit e133f28

Browse files
feat(chat): add instanceId field to ChatCompletionRequest (#359)
1 parent ebbec25 commit e133f28

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

openai-core/src/commonMain/kotlin/com.aallam.openai.api/chat/ChatCompletionRequest.kt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ public class ChatCompletionRequest(
158158
* each with an associated log probability. logprobs must be set to true if this parameter is used.
159159
*/
160160
@SerialName("top_logprobs") public val topLogprobs: Int? = null,
161+
162+
/**
163+
* A unique identifier representing the Multi LORA reserved instance.
164+
*/
165+
@SerialName("instance_id") public val instanceId: String? = null,
161166
)
162167

163168
/**
@@ -306,6 +311,11 @@ public class ChatCompletionRequestBuilder {
306311
*/
307312
public var topLogprobs: Int? = null
308313

314+
/**
315+
* A unique identifier representing the Multi LORA reserved instance.
316+
*/
317+
public var instanceId: String? = null
318+
309319
/**
310320
* The messages to generate chat completions for.
311321
*/
@@ -349,7 +359,8 @@ public class ChatCompletionRequestBuilder {
349359
toolChoice = toolChoice,
350360
tools = tools,
351361
logprobs = logprobs,
352-
topLogprobs = topLogprobs
362+
topLogprobs = topLogprobs,
363+
instanceId = instanceId,
353364
)
354365
}
355366

0 commit comments

Comments
 (0)