We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddb1241 commit 43e8951Copy full SHA for 43e8951
1 file changed
packages/instrumentation-openai/src/instrumentation.ts
@@ -322,6 +322,9 @@ export class OpenAIInstrumentation extends InstrumentationBase {
322
if (params.temperature) {
323
attributes[ATTR_GEN_AI_REQUEST_TEMPERATURE] = params.temperature;
324
}
325
+ if ('reasoning_effort' in params){
326
+ attributes["gen_ai.request.reasoning_effort"] = params.reasoning_effort as string;
327
+ }
328
if (params.top_p) {
329
attributes[ATTR_GEN_AI_REQUEST_TOP_P] = params.top_p;
330
0 commit comments