Skip to content

Commit 2c16e3f

Browse files
charleslienjahooma
authored andcommitted
include previous providerOptions
1 parent 714cef6 commit 2c16e3f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sdk/src/impl/llm.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,18 @@ function getProviderOptions(params: {
6363
model: string
6464
runId: string
6565
clientSessionId: string
66+
providerOptions?: Record<string, JSONObject>
6667
}): { codebuff: JSONObject } {
67-
const { model, runId, clientSessionId } = params
68+
const { model, runId, clientSessionId, providerOptions } = params
6869

6970
// Set allow_fallbacks based on whether model is explicitly defined
7071
const isExplicitlyDefined = isExplicitlyDefinedModel(model)
7172

7273
return {
74+
...providerOptions,
7375
// Could either be "codebuff" or "openaiCompatible"
7476
codebuff: {
77+
...providerOptions?.codebuff,
7578
// All values here get appended to the request body
7679
codebuff_metadata: {
7780
run_id: runId,

0 commit comments

Comments
 (0)