mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-12 21:41:36 +00:00
Renamed PrepareContentForAI to PrepareTextContentForAI for clarity
This commit is contained in:
parent
ca76da65f2
commit
0dac956da4
@ -149,7 +149,7 @@ public sealed class ContentText : IContent
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public async Task<string> PrepareContentForAI()
|
public async Task<string> PrepareTextContentForAI()
|
||||||
{
|
{
|
||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.AppendLine(this.Text);
|
sb.AppendLine(this.Text);
|
||||||
|
|||||||
@ -54,7 +54,7 @@ public sealed class ProviderAlibabaCloud() : BaseProvider("https://dashscope-int
|
|||||||
|
|
||||||
Content = n.Content switch
|
Content = n.Content switch
|
||||||
{
|
{
|
||||||
ContentText text => await text.PrepareContentForAI(),
|
ContentText text => await text.PrepareTextContentForAI(),
|
||||||
_ => string.Empty,
|
_ => string.Empty,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -44,7 +44,7 @@ public sealed class ProviderAnthropic() : BaseProvider("https://api.anthropic.co
|
|||||||
|
|
||||||
Content = n.Content switch
|
Content = n.Content switch
|
||||||
{
|
{
|
||||||
ContentText text => await text.PrepareContentForAI(),
|
ContentText text => await text.PrepareTextContentForAI(),
|
||||||
_ => string.Empty,
|
_ => string.Empty,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -54,7 +54,7 @@ public sealed class ProviderDeepSeek() : BaseProvider("https://api.deepseek.com/
|
|||||||
|
|
||||||
Content = n.Content switch
|
Content = n.Content switch
|
||||||
{
|
{
|
||||||
ContentText text => await text.PrepareContentForAI(),
|
ContentText text => await text.PrepareTextContentForAI(),
|
||||||
_ => string.Empty,
|
_ => string.Empty,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -54,7 +54,7 @@ public class ProviderFireworks() : BaseProvider("https://api.fireworks.ai/infere
|
|||||||
|
|
||||||
Content = n.Content switch
|
Content = n.Content switch
|
||||||
{
|
{
|
||||||
ContentText text => await text.PrepareContentForAI(),
|
ContentText text => await text.PrepareTextContentForAI(),
|
||||||
_ => string.Empty,
|
_ => string.Empty,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -54,7 +54,7 @@ public sealed class ProviderGWDG() : BaseProvider("https://chat-ai.academiccloud
|
|||||||
|
|
||||||
Content = n.Content switch
|
Content = n.Content switch
|
||||||
{
|
{
|
||||||
ContentText text => await text.PrepareContentForAI(),
|
ContentText text => await text.PrepareTextContentForAI(),
|
||||||
_ => string.Empty,
|
_ => string.Empty,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -54,7 +54,7 @@ public class ProviderGoogle() : BaseProvider("https://generativelanguage.googlea
|
|||||||
|
|
||||||
Content = n.Content switch
|
Content = n.Content switch
|
||||||
{
|
{
|
||||||
ContentText text => await text.PrepareContentForAI(),
|
ContentText text => await text.PrepareTextContentForAI(),
|
||||||
_ => string.Empty,
|
_ => string.Empty,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -54,7 +54,7 @@ public class ProviderGroq() : BaseProvider("https://api.groq.com/openai/v1/", LO
|
|||||||
|
|
||||||
Content = n.Content switch
|
Content = n.Content switch
|
||||||
{
|
{
|
||||||
ContentText text => await text.PrepareContentForAI(),
|
ContentText text => await text.PrepareTextContentForAI(),
|
||||||
_ => string.Empty,
|
_ => string.Empty,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -54,7 +54,7 @@ public sealed class ProviderHelmholtz() : BaseProvider("https://api.helmholtz-bl
|
|||||||
|
|
||||||
Content = n.Content switch
|
Content = n.Content switch
|
||||||
{
|
{
|
||||||
ContentText text => await text.PrepareContentForAI(),
|
ContentText text => await text.PrepareTextContentForAI(),
|
||||||
_ => string.Empty,
|
_ => string.Empty,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -59,7 +59,7 @@ public sealed class ProviderHuggingFace : BaseProvider
|
|||||||
|
|
||||||
Content = n.Content switch
|
Content = n.Content switch
|
||||||
{
|
{
|
||||||
ContentText text => await text.PrepareContentForAI(),
|
ContentText text => await text.PrepareTextContentForAI(),
|
||||||
_ => string.Empty,
|
_ => string.Empty,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -52,7 +52,7 @@ public sealed class ProviderMistral() : BaseProvider("https://api.mistral.ai/v1/
|
|||||||
|
|
||||||
Content = n.Content switch
|
Content = n.Content switch
|
||||||
{
|
{
|
||||||
ContentText text => await text.PrepareContentForAI(),
|
ContentText text => await text.PrepareTextContentForAI(),
|
||||||
_ => string.Empty,
|
_ => string.Empty,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -104,7 +104,7 @@ public sealed class ProviderOpenAI() : BaseProvider("https://api.openai.com/v1/"
|
|||||||
|
|
||||||
Content = n.Content switch
|
Content = n.Content switch
|
||||||
{
|
{
|
||||||
ContentText text => await text.PrepareContentForAI(),
|
ContentText text => await text.PrepareTextContentForAI(),
|
||||||
_ => string.Empty,
|
_ => string.Empty,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -57,7 +57,7 @@ public sealed class ProviderOpenRouter() : BaseProvider("https://openrouter.ai/a
|
|||||||
|
|
||||||
Content = n.Content switch
|
Content = n.Content switch
|
||||||
{
|
{
|
||||||
ContentText text => await text.PrepareContentForAI(),
|
ContentText text => await text.PrepareTextContentForAI(),
|
||||||
_ => string.Empty,
|
_ => string.Empty,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -63,7 +63,7 @@ public sealed class ProviderPerplexity() : BaseProvider("https://api.perplexity.
|
|||||||
|
|
||||||
Content = n.Content switch
|
Content = n.Content switch
|
||||||
{
|
{
|
||||||
ContentText text => await text.PrepareContentForAI(),
|
ContentText text => await text.PrepareTextContentForAI(),
|
||||||
_ => string.Empty,
|
_ => string.Empty,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -50,7 +50,7 @@ public sealed class ProviderSelfHosted(Host host, string hostname) : BaseProvide
|
|||||||
|
|
||||||
Content = n.Content switch
|
Content = n.Content switch
|
||||||
{
|
{
|
||||||
ContentText text => await text.PrepareContentForAI(),
|
ContentText text => await text.PrepareTextContentForAI(),
|
||||||
_ => string.Empty,
|
_ => string.Empty,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -54,7 +54,7 @@ public sealed class ProviderX() : BaseProvider("https://api.x.ai/v1/", LOGGER)
|
|||||||
|
|
||||||
Content = n.Content switch
|
Content = n.Content switch
|
||||||
{
|
{
|
||||||
ContentText text => await text.PrepareContentForAI(),
|
ContentText text => await text.PrepareTextContentForAI(),
|
||||||
_ => string.Empty,
|
_ => string.Empty,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user