File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments