An open API service indexing awesome lists of open source software.

https://github.com/binkylabs/openai-analyzers

Analyzers for the dotnet OpenAI SDK to help you implement better practices with AI
https://github.com/binkylabs/openai-analyzers

analyzers dotnet openai security tooling

Last synced: 3 months ago
JSON representation

Analyzers for the dotnet OpenAI SDK to help you implement better practices with AI

Awesome Lists containing this project

README

          

# OpenAI Analyzers

[![Build, test and publish dotnet](https://github.com/BinkyLabs/openai-analyzers/actions/workflows/dotnet.yml/badge.svg)](https://github.com/BinkyLabs/openai-analyzers/actions/workflows/dotnet.yml)
[![NuGet](https://img.shields.io/nuget/v/BinkyLabs.OpenAI.Analyzers.svg)](https://www.nuget.org/packages/BinkyLabs.OpenAI.Analyzers/)

A collection of Roslyn analyzers for detecting security and best practice issues when using the OpenAI .NET SDK.

## Analyzers

| Code | Title | Severity | Status |
| ---- | ----- | -------- | ------ |
| [BOA001](./rules/BOA001.md) | Avoid inputs in **SystemChatMessage** | ⚠️ | ✔️ |
| [BOA002](./rules/BOA002.md) | A **SystemChatMessage** should be last | ⚠️ | ✔️ |

## Installation

### Via the command line

```shell
dotnet add package BinkyLabs.OpenAI.Analyzers --prerelease
```

### In CSProj file

```xml

```

## Building

```bash
dotnet build
```

## Testing

```bash
dotnet test
```

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md) for contribution guidelines.

## License

See [LICENSE](LICENSE) for license information.