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);
387
tags.Add(OpenTelemetryConsts.GenAI.
Request
.Model, requestModelId);
Embeddings\OpenTelemetryEmbeddingGenerator.cs (3)
134
new(OpenTelemetryConsts.GenAI.
Request
.Model, modelId),
149
_ = activity.AddTag(OpenTelemetryConsts.GenAI.
Request
.EmbeddingDimensions, dimensions);
224
tags.Add(OpenTelemetryConsts.GenAI.
Request
.Model, requestModelId);