Skip to main content
OpenAI.Constants package icon

OpenAI.Constants

Static classes that provide actual constants(models/context lengts/prices) for the OpenAI API. Available types in OpenAI.Constants namespace: - AudioModel - AudioPrices - ChatModel - ChatPrices - EmbeddingModel - EmbeddingPrices - ImageModel - ImagePrices - ImageQuality - ImageResolution - ModerationModel

Total Downloads
158.0K
158,007
Published
Nov 16, 2023
Latest stable version

Install

.NET CLI
dotnet add package OpenAI.Constants --version 2.0.0-alpha.2
Package Manager Console
Install-Package OpenAI.Constants -Version 2.0.0-alpha.2
PackageReference
<PackageReference Include="OpenAI.Constants" Version="2.0.0-alpha.2" />

Frameworks

.NETFramework4.6.2 net6.0 net7.0 net8.0 .NETStandard2.0

Dependencies

System.ValueTuple
.NETFramework4.6.2
[4.5.0, )

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

This version is marked prerelease. Validate its API and upgrade path before production use.

NuGet marks this package as deprecated and points to tryAGI.OpenAI as an alternative.

Compatibility metadata lists 5 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.