File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -131,6 +131,11 @@ public static class CustomProviders
131131 /// </summary>
132132 public const string CleanlabBaseUrl = "https://api.cleanlab.ai/api/v1/openai_trustworthy_llm/" ;
133133
134+ /// <summary>
135+ /// https://docs.siliconflow.cn/
136+ /// </summary>
137+ public const string SiliconFlowBaseUrl = "https://api.siliconflow.cn/v1" ;
138+
134139 /// <summary>
135140 /// Creates an API to use for GitHub Models: https://github.com/marketplace/models
136141 /// </summary>
@@ -364,4 +369,13 @@ public static OpenAiClient Cleanlab(string apiKey)
364369 {
365370 return new OpenAiClient ( apiKey , baseUri : new Uri ( CleanlabBaseUrl ) ) ;
366371 }
372+
373+ /// <summary>
374+ /// Create an API to use for SiliconFlow.
375+ /// </summary>
376+ /// <returns></returns>
377+ public static OpenAiClient SiliconFlow ( string apiKey )
378+ {
379+ return new OpenAiClient ( apiKey , baseUri : new Uri ( SiliconFlowBaseUrl ) ) ;
380+ }
367381}
You can’t perform that action at this time.
0 commit comments