mirror of
https://github.com/cline/cline.git
synced 2026-09-19 02:05:44 +08:00
* CLI auth wizard Default Cline model, better menu UX, display active provider and model at main menu Model switcher for BYO providers Provider switching, UI changes List configured providers now shows all providers user has configured Added remove provider feature Changes to model picker for BYO providers Model fetch filtering tweaks Only update model fields for provider when possible Consolidated provider field mapping Change to not set provider as active when updating model Dont set Cline as active provider when setting Cline model Added model fetching for OpenAI provider (req API key) Added model fetching for Ollama provider Added support for model listing from providers.go for models without remote fetch Moved auth specific code out of manager Bedrock fields, OpenAI Native BaseURL More graceful fetch failure Fixed auth callback issue * Added model list feature for AWS AWS - Profile only support in CLI for now, UX changes (WIP Remove Save and Exit option Auto enable filtering/search in model lists Added cancel option for some menus
40 lines
1.3 KiB
Go
40 lines
1.3 KiB
Go
package generated
|
|
|
|
// FieldOverrides allows manual control over field relevance per provider
|
|
// This file is NOT auto-generated and can be edited manually to override
|
|
// the automatic field filtering logic.
|
|
//
|
|
// Usage:
|
|
// - Add provider-specific overrides to force include/exclude fields
|
|
// - true = force include this field for this provider
|
|
// - false = force exclude this field for this provider
|
|
// - If no override exists, automatic filtering logic applies
|
|
var FieldOverrides = map[string]map[string]bool{
|
|
// Format: "provider_id": {"field_name": shouldInclude}
|
|
|
|
// Example overrides (uncomment and modify as needed):
|
|
|
|
// "anthropic": {
|
|
// "requestTimeoutMs": true, // explicitly include
|
|
// "ollamaBaseUrl": false, // explicitly exclude
|
|
// },
|
|
|
|
// "bedrock": {
|
|
// "awsSessionToken": true, // include even if marked optional
|
|
// "azureApiVersion": false, // exclude even if general
|
|
// },
|
|
|
|
// Add more provider-specific overrides as needed
|
|
}
|
|
|
|
// GetFieldOverride returns the override setting for a field, if one exists
|
|
// Returns (shouldInclude, hasOverride)
|
|
func GetFieldOverride(providerID, fieldName string) (bool, bool) {
|
|
if providerOverrides, exists := FieldOverrides[providerID]; exists {
|
|
if override, hasOverride := providerOverrides[fieldName]; hasOverride {
|
|
return override, true
|
|
}
|
|
}
|
|
return false, false
|
|
}
|