File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -126,6 +126,11 @@ public static class CustomProviders
126126 /// </summary>
127127 public const string LeptonAIBaseUrl = "https://api.lepton.ai/v1" ;
128128
129+ /// <summary>
130+ /// https://cleanlab.ai/docs/
131+ /// </summary>
132+ public const string CleanlabBaseUrl = "https://api.cleanlab.ai/api/v1/openai_trustworthy_llm/" ;
133+
129134 /// <summary>
130135 /// Creates an API to use for GitHub Models: https://github.com/marketplace/models
131136 /// </summary>
@@ -350,4 +355,13 @@ public static OpenAiClient LeptonAI(string apiKey)
350355 {
351356 return new OpenAiClient ( apiKey , baseUri : new Uri ( LeptonAIBaseUrl ) ) ;
352357 }
358+
359+ /// <summary>
360+ /// Create an API to use for Cleanlab TLM.
361+ /// </summary>
362+ /// <returns></returns>
363+ public static OpenAiClient Cleanlab ( string apiKey )
364+ {
365+ return new OpenAiClient ( apiKey , baseUri : new Uri ( CleanlabBaseUrl ) ) ;
366+ }
353367}
You can’t perform that action at this time.
0 commit comments