Renamed PrepareContentForAI to PrepareTextContentForAI for clarity

This commit is contained in:
Thorsten Sommer 2025-12-28 16:32:56 +01:00
parent ca76da65f2
commit 0dac956da4
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
16 changed files with 16 additions and 16 deletions

View File

@ -149,7 +149,7 @@ public sealed class ContentText : IContent
#endregion
public async Task<string> PrepareContentForAI()
public async Task<string> PrepareTextContentForAI()
{
var sb = new StringBuilder();
sb.AppendLine(this.Text);

View File

@ -54,7 +54,7 @@ public sealed class ProviderAlibabaCloud() : BaseProvider("https://dashscope-int
Content = n.Content switch
{
ContentText text => await text.PrepareContentForAI(),
ContentText text => await text.PrepareTextContentForAI(),
_ => string.Empty,
}
});

View File

@ -44,7 +44,7 @@ public sealed class ProviderAnthropic() : BaseProvider("https://api.anthropic.co
Content = n.Content switch
{
ContentText text => await text.PrepareContentForAI(),
ContentText text => await text.PrepareTextContentForAI(),
_ => string.Empty,
}
});

View File

@ -54,7 +54,7 @@ public sealed class ProviderDeepSeek() : BaseProvider("https://api.deepseek.com/
Content = n.Content switch
{
ContentText text => await text.PrepareContentForAI(),
ContentText text => await text.PrepareTextContentForAI(),
_ => string.Empty,
}
});

View File

@ -54,7 +54,7 @@ public class ProviderFireworks() : BaseProvider("https://api.fireworks.ai/infere
Content = n.Content switch
{
ContentText text => await text.PrepareContentForAI(),
ContentText text => await text.PrepareTextContentForAI(),
_ => string.Empty,
}
});

View File

@ -54,7 +54,7 @@ public sealed class ProviderGWDG() : BaseProvider("https://chat-ai.academiccloud
Content = n.Content switch
{
ContentText text => await text.PrepareContentForAI(),
ContentText text => await text.PrepareTextContentForAI(),
_ => string.Empty,
}
});

View File

@ -54,7 +54,7 @@ public class ProviderGoogle() : BaseProvider("https://generativelanguage.googlea
Content = n.Content switch
{
ContentText text => await text.PrepareContentForAI(),
ContentText text => await text.PrepareTextContentForAI(),
_ => string.Empty,
}
});

View File

@ -54,7 +54,7 @@ public class ProviderGroq() : BaseProvider("https://api.groq.com/openai/v1/", LO
Content = n.Content switch
{
ContentText text => await text.PrepareContentForAI(),
ContentText text => await text.PrepareTextContentForAI(),
_ => string.Empty,
}
});

View File

@ -54,7 +54,7 @@ public sealed class ProviderHelmholtz() : BaseProvider("https://api.helmholtz-bl
Content = n.Content switch
{
ContentText text => await text.PrepareContentForAI(),
ContentText text => await text.PrepareTextContentForAI(),
_ => string.Empty,
}
});

View File

@ -59,7 +59,7 @@ public sealed class ProviderHuggingFace : BaseProvider
Content = n.Content switch
{
ContentText text => await text.PrepareContentForAI(),
ContentText text => await text.PrepareTextContentForAI(),
_ => string.Empty,
}
});

View File

@ -52,7 +52,7 @@ public sealed class ProviderMistral() : BaseProvider("https://api.mistral.ai/v1/
Content = n.Content switch
{
ContentText text => await text.PrepareContentForAI(),
ContentText text => await text.PrepareTextContentForAI(),
_ => string.Empty,
}
});

View File

@ -104,7 +104,7 @@ public sealed class ProviderOpenAI() : BaseProvider("https://api.openai.com/v1/"
Content = n.Content switch
{
ContentText text => await text.PrepareContentForAI(),
ContentText text => await text.PrepareTextContentForAI(),
_ => string.Empty,
}
});

View File

@ -57,7 +57,7 @@ public sealed class ProviderOpenRouter() : BaseProvider("https://openrouter.ai/a
Content = n.Content switch
{
ContentText text => await text.PrepareContentForAI(),
ContentText text => await text.PrepareTextContentForAI(),
_ => string.Empty,
}
});

View File

@ -63,7 +63,7 @@ public sealed class ProviderPerplexity() : BaseProvider("https://api.perplexity.
Content = n.Content switch
{
ContentText text => await text.PrepareContentForAI(),
ContentText text => await text.PrepareTextContentForAI(),
_ => string.Empty,
}
});

View File

@ -50,7 +50,7 @@ public sealed class ProviderSelfHosted(Host host, string hostname) : BaseProvide
Content = n.Content switch
{
ContentText text => await text.PrepareContentForAI(),
ContentText text => await text.PrepareTextContentForAI(),
_ => string.Empty,
}
});

View File

@ -54,7 +54,7 @@ public sealed class ProviderX() : BaseProvider("https://api.x.ai/v1/", LOGGER)
Content = n.Content switch
{
ContentText text => await text.PrepareContentForAI(),
ContentText text => await text.PrepareTextContentForAI(),
_ => string.Empty,
}
});