16 references to Request
Microsoft.Extensions.AI (16)
ChatCompletion\OpenTelemetryChatClient.cs (12)
227.AddTag(OpenTelemetryConsts.GenAI.Request.Model, modelId) 241_ = activity.AddTag(OpenTelemetryConsts.GenAI.Request.FrequencyPenalty, frequencyPenalty); 246_ = activity.AddTag(OpenTelemetryConsts.GenAI.Request.MaxTokens, maxTokens); 251_ = activity.AddTag(OpenTelemetryConsts.GenAI.Request.PresencePenalty, presencePenalty); 256_ = activity.AddTag(OpenTelemetryConsts.GenAI.Request.StopSequences, $"[{string.Join(", ", stopSequences.Select(s => $"\"{s}\""))}]"); 261_ = activity.AddTag(OpenTelemetryConsts.GenAI.Request.Temperature, temperature); 266_ = activity.AddTag(OpenTelemetryConsts.GenAI.Request.TopK, topK); 271_ = activity.AddTag(OpenTelemetryConsts.GenAI.Request.TopP, top_p); 285_ = activity.AddTag(OpenTelemetryConsts.GenAI.Request.PerProvider(_system, "response_format"), responseFormat); 290_ = activity.AddTag(OpenTelemetryConsts.GenAI.Request.PerProvider(_system, "seed"), seed); 301OpenTelemetryConsts.GenAI.Request.PerProvider(_system, JsonNamingPolicy.SnakeCaseLower.ConvertName(prop.Key)), 417tags.Add(OpenTelemetryConsts.GenAI.Request.Model, requestModelId);
Embeddings\OpenTelemetryEmbeddingGenerator.cs (4)
137new(OpenTelemetryConsts.GenAI.Request.Model, modelId), 152_ = activity.AddTag(OpenTelemetryConsts.GenAI.Request.EmbeddingDimensions, dimensions); 166OpenTelemetryConsts.GenAI.Request.PerProvider(_system, JsonNamingPolicy.SnakeCaseLower.ConvertName(prop.Key)), 258tags.Add(OpenTelemetryConsts.GenAI.Request.Model, requestModelId);