9 writes to CreatedAt
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatCompletion.cs (1)
145CreatedAt = CreatedAt,
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\StreamingChatCompletionUpdateTests.cs (2)
74update.CreatedAt = new DateTimeOffset(2022, 1, 1, 0, 0, 0, TimeSpan.Zero); 179CreatedAt = new DateTimeOffset(2022, 1, 1, 0, 0, 0, TimeSpan.Zero),
Microsoft.Extensions.AI.AzureAIInference (2)
AzureAIInferenceChatClient.cs (2)
173CreatedAt = chatCompletionUpdate.Created, 234CreatedAt = createdAt,
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
155CreatedAt = DateTimeOffset.TryParse(chunk.CreatedAt, CultureInfo.InvariantCulture, DateTimeStyles.None, out DateTimeOffset createdAt) ? createdAt : null,
Microsoft.Extensions.AI.OpenAI (2)
OpenAIChatClient.cs (2)
229CreatedAt = chatCompletionUpdate.CreatedAt, 323CreatedAt = createdAt,
Microsoft.ML.GenAI.Core (1)
CausalLMPipelineChatClient.cs (1)
76CreatedAt = DateTime.UtcNow,
13 references to CreatedAt
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\StreamingChatCompletionUpdateExtensions.cs (1)
92completion.CreatedAt ??= update.CreatedAt;
Microsoft.Extensions.AI.Abstractions.Tests (7)
ChatCompletion\ChatCompletionTests.cs (3)
225Assert.Equal(new DateTimeOffset(2024, 11, 10, 9, 20, 0, TimeSpan.Zero), update0.CreatedAt); 275Assert.Equal(new DateTimeOffset(2024, 11, 10, 9, 20, 0, TimeSpan.Zero), update0.CreatedAt); 286Assert.Equal(new DateTimeOffset(2024, 11, 10, 9, 20, 0, TimeSpan.Zero), update1.CreatedAt);
ChatCompletion\StreamingChatCompletionUpdateTests.cs (4)
24Assert.Null(update.CreatedAt); 73Assert.Null(update.CreatedAt); 75Assert.Equal(new DateTimeOffset(2022, 1, 1, 0, 0, 0, TimeSpan.Zero), update.CreatedAt); 210Assert.Equal(new DateTimeOffset(2022, 1, 1, 0, 0, 0, TimeSpan.Zero), result.CreatedAt);
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceChatClientTests.cs (2)
218Assert.Equal(createdAt, updates[i].CreatedAt); 617Assert.Equal(createdAt, updates[i].CreatedAt);
Microsoft.Extensions.AI.Ollama.Tests (1)
OllamaChatClientTests.cs (1)
191Assert.Equal(createdAts[i], updates[i].CreatedAt);
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIChatClientTests.cs (2)
265Assert.Equal(createdAt, updates[i].CreatedAt); 768Assert.Equal(createdAt, updates[i].CreatedAt);