Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

📘 docs: Portkey AI custom endpoint in `librechat.example.yaml` (#4625)

siddharth Sambhariaecaf24d727d9
diff --git a/librechat.example.yaml b/librechat.example.yaml
index 4b24195964..6e9490c9df 100644
--- a/librechat.example.yaml
+++ b/librechat.example.yaml
@@ -184,6 +184,24 @@ endpoints:
# Recommended: Drop the stop parameter from the request as Openrouter models use a variety of stop tokens.
dropParams: ['stop']
modelDisplayLabel: 'OpenRouter'
+
+ # Portkey AI Example
+ - name: "Portkey"
+ apiKey: "dummy"
+ baseURL: 'https://api.portkey.ai/v1'
+ headers:
+ x-portkey-api-key: '${PORTKEY_API_KEY}'
+ x-portkey-virtual-key: '${PORTKEY_OPENAI_VIRTUAL_KEY}'
+ models:
+ default: ['gpt-4o-mini', 'gpt-4o', 'chatgpt-4o-latest']
+ fetch: true
+ titleConvo: true
+ titleModel: 'current_model'
+ summarize: false
+ summaryModel: 'current_model'
+ forcePrompt: false
+ modelDisplayLabel: 'Portkey'
+ iconURL: https://images.crunchbase.com/image/upload/c_pad,f_auto,q_auto:eco,dpr_1/rjqy7ghvjoiu4cd1xjbf
# fileConfig:
# endpoints:
# assistants: