1 line
2.0 KiB
JSON
1 line
2.0 KiB
JSON
{"repo": "adamt-eng/ai-content-moderation", "files": {"src/ContentModeration.Core/Options/LlmClassifierOptions.cs": {"0a5659f1f5772503931bd4d7db3d09b155380399": {"t": 1785746208.3744235, "n": 829, "h": "d2377735d3010591", "c": "namespace ContentModeration.Options;\n\n/// <summary>\n/// LLM classifier configuration. The classifier speaks the OpenAI-compatible\n/// chat-completions protocol, so it works against any provider that exposes one —\n/// DeepSeek (the default), OpenAI, a local server, etc. — just by changing\n/// <see cref=\"BaseUrl\"/> and <see cref=\"Model\"/>. <see cref=\"ApiKey\"/> should come\n/// from a secret store; an empty key makes the classifier fall back to local\n/// keyword heuristics so moderation degrades rather than breaks.\n/// </summary>\npublic sealed class LlmClassifierOptions\n{\n public string ApiKey { get; init; } = \"\";\n\n // OpenAI-compatible base. \"deepseek-chat\" is the fast, cheap default.\n public string BaseUrl { get; init; } = \"https://api.deepseek.com/\";\n public string Model { get; init; } = \"deepseek-chat\";\n}\n"}, "fd4022c9d336fa2ff3ca56e56a2fd92123551c19": {"t": 1785760627.127165, "n": 829, "h": "d2377735d3010591", "c": "namespace ContentModeration.Options;\n\n/// <summary>\n/// LLM classifier configuration. The classifier speaks the OpenAI-compatible\n/// chat-completions protocol, so it works against any provider that exposes one —\n/// DeepSeek (the default), OpenAI, a local server, etc. — just by changing\n/// <see cref=\"BaseUrl\"/> and <see cref=\"Model\"/>. <see cref=\"ApiKey\"/> should come\n/// from a secret store; an empty key makes the classifier fall back to local\n/// keyword heuristics so moderation degrades rather than breaks.\n/// </summary>\npublic sealed class LlmClassifierOptions\n{\n public string ApiKey { get; init; } = \"\";\n\n // OpenAI-compatible base. \"deepseek-chat\" is the fast, cheap default.\n public string BaseUrl { get; init; } = \"https://api.deepseek.com/\";\n public string Model { get; init; } = \"deepseek-chat\";\n}\n"}}}} |