14 references to Request
Microsoft.Extensions.AI (14)
ChatCompletion\OpenTelemetryChatClient.cs (11)
226.AddTag(OpenTelemetryConsts.GenAI.Request.Model, modelId) 240_ = activity.AddTag(OpenTelemetryConsts.GenAI.Request.FrequencyPenalty, frequencyPenalty); 245_ = activity.AddTag(OpenTelemetryConsts.GenAI.Request.MaxTokens, maxTokens); 250_ = activity.AddTag(OpenTelemetryConsts.GenAI.Request.PresencePenalty, presencePenalty); 255_ = activity.AddTag(OpenTelemetryConsts.GenAI.Request.StopSequences, $"[{string.Join(", ", stopSequences.Select(s => $"\"{s}\""))}]"); 260_ = activity.AddTag(OpenTelemetryConsts.GenAI.Request.Temperature, temperature); 265_ = activity.AddTag(OpenTelemetryConsts.GenAI.Request.TopK, topK); 270_ = activity.AddTag(OpenTelemetryConsts.GenAI.Request.TopP, top_p); 284_ = activity.AddTag(OpenTelemetryConsts.GenAI.Request.PerProvider(_system, "response_format"), responseFormat); 289_ = activity.AddTag(OpenTelemetryConsts.GenAI.Request.PerProvider(_system, "seed"), seed); 387tags.Add(OpenTelemetryConsts.GenAI.Request.Model, requestModelId);
Embeddings\OpenTelemetryEmbeddingGenerator.cs (3)
134new(OpenTelemetryConsts.GenAI.Request.Model, modelId), 149_ = activity.AddTag(OpenTelemetryConsts.GenAI.Request.EmbeddingDimensions, dimensions); 224tags.Add(OpenTelemetryConsts.GenAI.Request.Model, requestModelId);