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);
301
OpenTelemetryConsts.GenAI.
Request
.PerProvider(_system, JsonNamingPolicy.SnakeCaseLower.ConvertName(prop.Key)),
417
tags.Add(OpenTelemetryConsts.GenAI.
Request
.Model, requestModelId);
Embeddings\OpenTelemetryEmbeddingGenerator.cs (4)
137
new(OpenTelemetryConsts.GenAI.
Request
.Model, modelId),
152
_ = activity.AddTag(OpenTelemetryConsts.GenAI.
Request
.EmbeddingDimensions, dimensions);
166
OpenTelemetryConsts.GenAI.
Request
.PerProvider(_system, JsonNamingPolicy.SnakeCaseLower.ConvertName(prop.Key)),
258
tags.Add(OpenTelemetryConsts.GenAI.
Request
.Model, requestModelId);