Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

Fix missing inheritance for Anthropic and OpenAI providers

LearningCircuit7a6d8a8bd636
diff --git a/src/local_deep_research/llm/providers/implementations/anthropic.py b/src/local_deep_research/llm/providers/implementations/anthropic.py
index 2fcb793b21..9d3fc2970c 100644
--- a/src/local_deep_research/llm/providers/implementations/anthropic.py
+++ b/src/local_deep_research/llm/providers/implementations/anthropic.py
@@ -8,6 +8,7 @@ from ....config.thread_settings import (
NoSettingsContextError,
)
from ...llm_registry import register_llm
+from ..openai_base import OpenAICompatibleProvider
def get_setting_from_snapshot(
@@ -22,7 +23,7 @@ def get_setting_from_snapshot(
)
-class AnthropicProvider:
+class AnthropicProvider(OpenAICompatibleProvider):
"""Anthropic provider for Local Deep Research.
This is the official Anthropic API provider.
@@ -31,6 +32,7 @@ class AnthropicProvider:
provider_name = "Anthropic"
api_key_setting = "llm.anthropic.api_key"
default_model = "claude-3-sonnet-20240229"
+ default_base_url = "https://api.anthropic.com/v1"
# Metadata for auto-discovery
provider_key = "ANTHROPIC"
diff --git a/src/local_deep_research/llm/providers/implementations/openai.py b/src/local_deep_research/llm/providers/implementations/openai.py
index 7dbd1f0bac..fe9215bc1f 100644
--- a/src/local_deep_research/llm/providers/implementations/openai.py
+++ b/src/local_deep_research/llm/providers/implementations/openai.py
@@ -8,6 +8,7 @@ from ....config.thread_settings import (
NoSettingsContextError,
)
from ...llm_registry import register_llm
+from ..openai_base import OpenAICompatibleProvider
def get_setting_from_snapshot(
@@ -22,7 +23,7 @@ def get_setting_from_snapshot(
)
-class OpenAIProvider:
+class OpenAIProvider(OpenAICompatibleProvider):
"""OpenAI provider for Local Deep Research.
This is the official OpenAI API provider.
@@ -31,6 +32,7 @@ class OpenAIProvider:
provider_name = "OpenAI"
api_key_setting = "llm.openai.api_key"
default_model = "gpt-3.5-turbo"
+ default_base_url = "https://api.openai.com/v1"
# Metadata for auto-discovery
provider_key = "OPENAI"