TrueFoundry supports File APIs compatible with OpenAI and Vertex AI. This guide demonstrates how to set up the client and use file-related endpoints.Setup OpenAI client first -
Copy
Ask AI
from openai import OpenAIBASE_URL = "https://{controlPlaneUrl}/api/llm"API_KEY = "your-truefoundry-api-key"# Configure OpenAI client with TrueFoundry settingsclient = OpenAI( api_key=API_KEY, base_url=BASE_URL,)