Skip to content

Commit 2fb9428

Browse files
HavenDVclaude
andcommitted
Add Cleanlab TLM CustomProvider
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e29f289 commit 2fb9428

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/libs/tryAGI.OpenAI/CustomProviders.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)