mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-18 16:58:00 +00:00
Fixed the extension method
This commit is contained in:
1 file changed
+1
-1
@@ -9,7 +9,7 @@ public static class RetrievalContentCategoryExtensions
|
||||
/// </summary>
|
||||
/// <param name="contentType">The content type yielded by the ERI server.</param>
|
||||
/// <returns>The corresponding retrieval content category.</returns>
|
||||
public static RetrievalContentCategory ToRetrievalContentCategory(ContentType contentType) => contentType switch
|
||||
public static RetrievalContentCategory ToRetrievalContentCategory(this ContentType contentType) => contentType switch
|
||||
{
|
||||
ContentType.NONE => RetrievalContentCategory.NONE,
|
||||
ContentType.UNKNOWN => RetrievalContentCategory.UNKNOWN,
|
||||
|
||||
Reference in new issue
Block a user