Model Catalog Migration 7/7: Guides & Tutorials#621
Model Catalog Migration 7/7: Guides & Tutorials#621siddharthsambharia-portkey merged 4 commits intomainfrom
Conversation
Update step-by-step guides and tutorials: - Getting Started guides (core onboarding) - Integration guides (Groq, Vercel AI, Arize, LangChain, etc.) - Use case guides (fallbacks, JSON schema, few-shot, etc.) - Prompt guides (chatbot, llama prompts) - API reference config object
|
in all thse files wherever we are passing a dummy value for API key like this case above it shoud be Portkey works iwth OpeAI client natively and we don't need to pass the API Key as a separete header make sur ethis is different from in this case we need portkey API key separetely because we are using provider api key natively without and AI provider slug from portkey so we do need thte default header separately |
When using configs or provider slugs from Model Catalog, Portkey works natively with OpenAI client and the API key should be passed directly to the api_key parameter instead of in createHeaders. Addresses PR #621 review comment.
|
Addressed the API key pattern issue across all files: Fixed files:
Changes made: client = OpenAI(
api_key=PORTKEY_API_KEY, # Portkey API key goes here
base_url=PORTKEY_GATEWAY_URL,
default_headers=createHeaders(
config=config # No api_key needed in headers
)
)Note: Files using provider API keys directly (like the Groq example with |
- 101-on-portkey-s-gateway-configs.mdx: Remove duplicate apiKey from defaultHeaders, fix api_key pattern, update gpt-4 to gpt-5-mini - arize-portkey.mdx: Change model to @openai-prod/gpt-4 format - run-portkey-on-prompts-from-langchain-hub.mdx: Remove excess whitespace, update model references to gpt-5-mini - librechat-web-search.mdx: Remove override_params from config, move model to yaml models list, update to latest models (gpt-5, claude-4.5-sonnet, llama-4) - tackling-rate-limiting.mdx: Replace virtual keys with model catalog pattern, update to newer models
- Refactor the JSON schema for the config object to enhance clarity and organization. - Ensure all properties are accurately defined and structured for better validation. - Improve documentation for better understanding of configuration options.
Model Catalog Migration - Guides & Tutorials
What's changing
Step-by-step guides and tutorials updated for Model Catalog flow.
Files changed (24)
Getting Started (Major):
getting-started-with-ai-gateway.mdx101-on-portkey-s-gateway-configs.mdximage-generation.mdxllama-3-on-groq.mdxtackling-rate-limiting.mdxIntegration Guides (6):
groq.mdx,vercel-ai.mdx,arize-portkey.mdxlangchain.mdx,llama-3-on-portkey-+-together-ai.mdx,mixtral-8x22b.mdxUse Cases (10):
Prompts (2):
build-a-chatbot-using-portkeys-prompt-templates.mdxllama-prompts.mdxAPI Reference (1):
config-object.mdxReview checklist
@provider/modelformatRisk: 🟡 Medium
User-facing tutorials - important for onboarding.
Part of
Model Catalog Migration - Split from #597 for easier review
🎉 This is the final PR in the migration series!