Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions Sources/ModelConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ public struct ModelConfiguration {
"openai/gpt-oss-120b",
"openai/gpt-oss-safeguard-20b",
"qwen/qwen3.6-27b",
"allam-2-7b",
"groq/compound",
"groq/compound-mini",
"canopylabs/orpheus-arabic-saudi",
"canopylabs/orpheus-v1-english",
"meta-llama/llama-prompt-guard-2-22m",
"meta-llama/llama-prompt-guard-2-86m"
"groq/compound-mini"
]

// MARK: - Vision-capable models

/// Models that accept image input. The context model must support vision for screenshot analysis to work.
public static let visionModels = [
"qwen/qwen3.6-27b"
]

public static let transcriptionModels = [
Expand Down Expand Up @@ -59,7 +61,7 @@ public struct ModelConfiguration {
shouldStripThinkTags: false
)
} else if cleanModel == "qwen/qwen3-32b" {
// Model that requires sanitization of thought tags
// Model that requires sanitization of thought tags
return ModelConfig(
maxCompletionTokens: nil,
reasoningEffort: nil,
Expand Down Expand Up @@ -159,7 +161,7 @@ public struct ModelConfiguration {
)
}

// Fallback genérico para qualquer outro modelo que não esteja na lista acima
// Generic fallback for any model not explicitly listed above
return ModelConfig(
maxCompletionTokens: nil,
reasoningEffort: nil,
Expand Down
4 changes: 2 additions & 2 deletions Sources/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ struct ProviderSettingsFields: View {

ModelDropdownView(
title: "Context Model",
subtitle: "Used for context inference, with a text-only retry when screenshot analysis fails.",
predefinedModels: ModelConfiguration.llmModels,
subtitle: "Used for context inference, with a text-only retry when screenshot analysis fails. Screenshot analysis requires a model that accepts image input.",
predefinedModels: ModelConfiguration.visionModels,
defaultModel: AppState.defaultContextModel,
textDraft: $contextModelDraft,
onCommit: commitContextModel,
Expand Down