fix: remove incorrect /v1 suffix from OpenRouter API URL (#1749)
The OpenRouter API endpoint should be https://openrouter.ai/api, not https://openrouter.ai/api/v1. The /v1 suffix was being added incorrectly, causing API authentication failures. Fixed in: - Frontend API provider presets (Profile Edit Dialog) - Backend Graphiti memory integration config Co-authored-by: StillKnotKnown <stillknotknown@users.noreply.github.com>
This commit is contained in:
@@ -145,7 +145,7 @@ class GraphitiConfig:
|
||||
|
||||
# OpenRouter settings (multi-provider aggregator)
|
||||
openrouter_api_key: str = ""
|
||||
openrouter_base_url: str = "https://openrouter.ai/api/v1"
|
||||
openrouter_base_url: str = "https://openrouter.ai/api"
|
||||
openrouter_llm_model: str = "anthropic/claude-sonnet-4"
|
||||
openrouter_embedding_model: str = "openai/text-embedding-3-small"
|
||||
|
||||
@@ -207,7 +207,7 @@ class GraphitiConfig:
|
||||
# OpenRouter settings
|
||||
openrouter_api_key = os.environ.get("OPENROUTER_API_KEY", "")
|
||||
openrouter_base_url = os.environ.get(
|
||||
"OPENROUTER_BASE_URL", "https://openrouter.ai/api/v1"
|
||||
"OPENROUTER_BASE_URL", "https://openrouter.ai/api"
|
||||
)
|
||||
openrouter_llm_model = os.environ.get(
|
||||
"OPENROUTER_LLM_MODEL", "anthropic/claude-sonnet-4"
|
||||
|
||||
@@ -12,7 +12,7 @@ export const API_PROVIDER_PRESETS: readonly ApiProviderPreset[] = [
|
||||
},
|
||||
{
|
||||
id: 'openrouter',
|
||||
baseUrl: 'https://openrouter.ai/api/v1',
|
||||
baseUrl: 'https://openrouter.ai/api',
|
||||
labelKey: 'settings:apiProfiles.presets.openrouter'
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user