Keywords AI allows you to track user data and monitor the user’s data in the platform.
customer_params
from openai import OpenAI client = OpenAI( base_url="https://api.keywordsai.co/api/", api_key="YOUR_KEYWORDSAI_API_KEY", ) response = client.chat.completions.create( model="gpt-4o-mini", messages=[ {"role": "user", "content": "Tell me a long story"} ], extra_body={ "customer_params": { "customer_identifier": "customer_1", "name": "Hendrix Liu", # optional parameter "email": "hendrix@keywordsai.co" # optional parameter } } )
Was this page helpful?