key='sk-xxxx' from openai import OpenAI client = OpenAI( base_url="https://newapi.taam.cloud.com/v1", api_key=key ) response = client.chat.completions.create( model="gpt-4o", messages=[ {"role": "user", "content": "Hello?"}, ] ) print(response)
Last updated 3 months ago