mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 03:17:59 +00:00
Merge branch 'main' into chunk-data
This commit is contained in:
commit
9932b5870b
484 files changed
+45549
-2467
No files matched your search
@@ -1,4 +1,3 @@
|
||||
using AIStudio.Provider;
|
||||
using AIStudio.Settings;
|
||||
using AIStudio.Tools.PluginSystem;
|
||||
using AIStudio.Tools.Rust;
|
||||
@@ -59,7 +58,6 @@ public static class FileExtensionValidation
|
||||
return false;
|
||||
}
|
||||
|
||||
var capabilities = provider?.GetModelCapabilities() ?? new();
|
||||
if (FileTypes.IsAllowedPath(filePath, FileTypes.IMAGE))
|
||||
{
|
||||
switch (useCae)
|
||||
@@ -76,8 +74,7 @@ public static class FileExtensionValidation
|
||||
return true;
|
||||
|
||||
// In this use case, we can check the provider capabilities:
|
||||
case UseCase.ATTACHING_CONTENT when capabilities.Contains(Capability.SINGLE_IMAGE_INPUT) ||
|
||||
capabilities.Contains(Capability.MULTIPLE_IMAGE_INPUT):
|
||||
case UseCase.ATTACHING_CONTENT when provider?.SupportsImageInput() is true:
|
||||
return true;
|
||||
|
||||
// We know that images are not supported:
|
||||
|
||||
Reference in new issue
Block a user