Skip to content

migration-guide#818

Open
drishti-portkey wants to merge 1 commit intomainfrom
helicone-migration-doc
Open

migration-guide#818
drishti-portkey wants to merge 1 commit intomainfrom
helicone-migration-doc

Conversation

@drishti-portkey
Copy link
Copy Markdown
Contributor

No description provided.

@mintlify
Copy link
Copy Markdown
Contributor

mintlify bot commented Mar 24, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
portkey-docs 🟢 Ready View Preview Mar 24, 2026, 12:19 PM

Comment on lines +39 to +55
```python
# ✅ After: Portkey
from portkey_ai import Portkey

# 1. Install: pip install portkey-ai
# 2. Add @openai provider in model catalog
# 3. Use it:

portkey = Portkey(api_key="PORTKEY_API_KEY")

response = portkey.chat.completions.create(
model="@openai/gpt-4o",
messages=[{"role": "user", "content": "Say this is a test"}]
)

print(response.choices[0].message.content)
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can add OpenAI example itself, which is a one line change with just URL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants