Welcome to Portkey Forum

Updated 3 weeks ago

Using render output in a new request

Quick question, can I use Prompts present in Portkey Prompts Hub but using OpenAI API only? If yes, can you share an example?

Plain Text
client = OpenAI()
client.chat.completions.create(
                model=model_name,
                response_model=ABC,
                temperature=0,
                max_tokens=8192,
                messages=[{"role": "system", "content": "PORTKEY PROMPT TEXT"}])


Basically want to replace messages with Portkey prompt
Add a reply
Sign up and join the conversation on Discord