mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 15:59:48 +00:00
Fixed the extension method
This commit is contained in:
parent
4f336960bd
commit
a9bf3d5f75
@ -9,7 +9,7 @@ public static class RetrievalContentCategoryExtensions
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="contentType">The content type yielded by the ERI server.</param>
|
/// <param name="contentType">The content type yielded by the ERI server.</param>
|
||||||
/// <returns>The corresponding retrieval content category.</returns>
|
/// <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.NONE => RetrievalContentCategory.NONE,
|
||||||
ContentType.UNKNOWN => RetrievalContentCategory.UNKNOWN,
|
ContentType.UNKNOWN => RetrievalContentCategory.UNKNOWN,
|
||||||
|
Loading…
Reference in New Issue
Block a user