Skip to content

Commit c77e368

Browse files
authored
Fix namespace for IServiceCollection extensions (#5620)
We generally put extension methods into the same namespace as the thing they're extending.
1 parent 4b8dad5 commit c77e368

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Libraries/Microsoft.Extensions.AI/ChatCompletion/ChatClientBuilderServiceCollectionExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System;
5-
using Microsoft.Extensions.DependencyInjection;
5+
using Microsoft.Extensions.AI;
66
using Microsoft.Shared.Diagnostics;
77

8-
namespace Microsoft.Extensions.AI;
8+
namespace Microsoft.Extensions.DependencyInjection;
99

1010
/// <summary>Provides extension methods for registering <see cref="IChatClient"/> with a <see cref="IServiceCollection"/>.</summary>
1111
public static class ChatClientBuilderServiceCollectionExtensions

src/Libraries/Microsoft.Extensions.AI/Embeddings/EmbeddingGeneratorBuilderServiceCollectionExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System;
5-
using Microsoft.Extensions.DependencyInjection;
5+
using Microsoft.Extensions.AI;
66
using Microsoft.Shared.Diagnostics;
77

8-
namespace Microsoft.Extensions.AI;
8+
namespace Microsoft.Extensions.DependencyInjection;
99

1010
/// <summary>Provides extension methods for registering <see cref="IEmbeddingGenerator{TInput, TEmbedding}"/> with a <see cref="IServiceCollection"/>.</summary>
1111
public static class EmbeddingGeneratorBuilderServiceCollectionExtensions

0 commit comments

Comments
 (0)