import uuid from openai import OpenAI client = OpenAI(base_url="http://localhost:12000/v1", api_key="EMPTY") affinity_id = str(uuid.uuid4()) response = client.chat.completions.create( messages=messages, tools=tools, extra_headers={"X-Model-Affinity": affinity_id} )