13 references to Uri
Microsoft.Extensions.AI.Abstractions (2)
Contents\DataContent.cs (2)
24/// <see cref="Uri"/> always returns a valid URI string, even if the instance was constructed from 206string uri = Uri;
Microsoft.Extensions.AI.Abstractions.Tests (9)
ChatCompletion\ChatMessageTests.cs (1)
321Assert.Equal("https://fake-random-test-host:123/", imageContent.Uri);
ChatCompletion\StreamingChatCompletionUpdateTests.cs (1)
196Assert.Equal("http://localhost/image", ((ImageContent)result.Contents[1]).Uri);
Contents\DataContentTests{T}.cs (7)
98content = CreateDataContent(content.Uri); 110Assert.Equal(url, content.Uri); 116Assert.Equal("data:,something", content.Uri); 121Assert.Equal("data:,Hello+%3C%3E", content.Uri); 163Assert.Equal("data:application/octet-stream;base64,AQIDBA==", content.Uri); 173Assert.Equal("http://localhost/", content.Uri); 190Assert.Equal("data:text/plain;base64,AQIDBA==", content.Uri);
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
485case ImageContent imageContent when imageContent.Uri is string uri:
Microsoft.Extensions.AI.OpenAI (1)
OpenAIChatClient.cs (1)
661case ImageContent imageContent when imageContent.Uri is string uri: