From 83caeb9bcdc4a5eafda937807cd42ea8455948a6 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 20 May 2026 18:27:35 +0300 Subject: Add YouSearch (You.com Research API) provider integration Amp-Thread-ID: https://ampcode.com/threads/T-019e45ff-4976-750c-b2e6-121d0e5991ef Co-authored-by: Amp --- internal/appconfig/config_load.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'internal/appconfig/config_load.go') diff --git a/internal/appconfig/config_load.go b/internal/appconfig/config_load.go index aa169bc..3ed1654 100644 --- a/internal/appconfig/config_load.go +++ b/internal/appconfig/config_load.go @@ -205,6 +205,7 @@ func rejectLegacyKeys(raw map[string]any) error { knownTables := map[string]struct{}{ "general": {}, "logging": {}, "completion": {}, "triggers": {}, "inline": {}, "chat": {}, "provider": {}, "models": {}, "openai": {}, "ollama": {}, "prompts": {}, + "yousearch": {}, } for k := range raw { if _, isTable := knownTables[k]; isTable { @@ -269,6 +270,7 @@ func applyProviderSections(fc *fileConfig, out *App) { applyOpenRouterSection(fc, out) applyOllamaSection(fc, out) applyAnthropicSection(fc, out) + applyYouSearchSection(fc, out) } func applyPromptSections(fc *fileConfig, out *App) { @@ -430,6 +432,16 @@ func applyAnthropicSection(fc *fileConfig, out *App) { out.mergeProviderFields(&tmp) } +func applyYouSearchSection(fc *fileConfig, out *App) { + if fc.YouSearch == (sectionYouSearch{}) { + return + } + tmp := App{ProviderConfig: ProviderConfig{ + YouSearchResearchEffort: fc.YouSearch.ResearchEffort, + }} + out.mergeProviderFields(&tmp) +} + func applyPromptCompletion(fc *fileConfig, out *App) { if fc.Prompts.Completion == (sectionPromptsCompletion{}) { return -- cgit v1.2.3