mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-09-14 20:23:36 +00:00
Some checks are pending
Build and Release / Determine run mode (push) Waiting to run
Build and Release / Sync Flatpak repo (push) Blocked by required conditions
Build and Release / Collect Flatpak artifacts (push) Blocked by required conditions
Build and Release / Verify (push) Waiting to run
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Prepare & create release (push) Blocked by required conditions
Build and Release / Publish release (push) Blocked by required conditions
36 lines
1.6 KiB
C#
36 lines
1.6 KiB
C#
using static AIStudio.Provider.Capability;
|
|
|
|
namespace AIStudio.Models.Perplexity;
|
|
|
|
/// <summary>
|
|
/// Sonar, the Perplexity models which search the web before they answer.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Searching is what they are, not something they can be asked to do, so every one of them states
|
|
/// it. What differs is only whether the model thinks as well.
|
|
///
|
|
/// No Sonar writes images. What looks like it does is the option to have the answer come with
|
|
/// pictures: those are images the search found on the pages it read, handed back as links, and
|
|
/// reporting that as an output modality would have the chat wait for pictures which never arrive.
|
|
/// </remarks>
|
|
public sealed class SonarFamily : ModelFamily
|
|
{
|
|
/// <inheritdoc />
|
|
public override ModelVendor Vendor => ModelVendor.PERPLEXITY;
|
|
|
|
/// <inheritdoc />
|
|
public override ModelSource Source => new("https://docs.perplexity.ai/getting-started/models", new DateOnly(2026, 9, 11), "Ported unchanged from the rules in ProviderExtensions.Perplexity.cs: images in, web search always, thinking for the reasoning and research models.");
|
|
|
|
/// <inheritdoc />
|
|
protected override void Declare(ModelFamilyBuilder builder)
|
|
{
|
|
builder.Rule("sonar").AsSegment()
|
|
.Capabilities(TEXT_INPUT | MULTIPLE_IMAGE_INPUT | TEXT_OUTPUT | WEB_SEARCH)
|
|
.Apis(CHAT_COMPLETION_API);
|
|
|
|
builder.Rule("sonar").AsSegment().AlsoContains("reasoning").Inherits()
|
|
.Reasoning(ReasoningSupport.ALWAYS);
|
|
|
|
builder.Rule("sonar").AsSegment().AlsoContains("deep-research").Inherits();
|
|
}
|
|
} |