Created
October 7, 2024 14:07
-
-
Save ShayneP/c82b828965b9fd42365c262bffcce3f5 to your computer and use it in GitHub Desktop.
Store response from OpenAI API for eval & training
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
response = client.chat.completions.create( | |
model="gpt-4o", | |
messages=[ | |
{ | |
"role": "user", | |
"content": [ | |
{ | |
"type": "text", | |
"text": "what's the capital of the USA?" | |
} | |
] | |
} | |
], | |
store=True, | |
metadata={"username": "user123", "user_id": "123", "session_id": "123"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment