This example assumes using SiliconFlow; is in scope and apiKey contains your SiliconFlow API key.
12345678
varapiKey=Environment.GetEnvironmentVariable("SILICONFLOW_API_KEY")is{Length:>0}value?value:thrownewAssertInconclusiveException("SILICONFLOW_API_KEY environment variable is not found.");usingvarclient=newSiliconFlowClient(apiKey);// The client has sub-clients for different API capabilities.