We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 714cef6 commit 2c16e3fCopy full SHA for 2c16e3f
1 file changed
sdk/src/impl/llm.ts
@@ -63,15 +63,18 @@ function getProviderOptions(params: {
63
model: string
64
runId: string
65
clientSessionId: string
66
+ providerOptions?: Record<string, JSONObject>
67
}): { codebuff: JSONObject } {
- const { model, runId, clientSessionId } = params
68
+ const { model, runId, clientSessionId, providerOptions } = params
69
70
// Set allow_fallbacks based on whether model is explicitly defined
71
const isExplicitlyDefined = isExplicitlyDefinedModel(model)
72
73
return {
74
+ ...providerOptions,
75
// Could either be "codebuff" or "openaiCompatible"
76
codebuff: {
77
+ ...providerOptions?.codebuff,
78
// All values here get appended to the request body
79
codebuff_metadata: {
80
run_id: runId,
0 commit comments