magic.lambda.openai 17.2.0

dotnet add package magic.lambda.openai --version 17.2.0
NuGet\Install-Package magic.lambda.openai -Version 17.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="magic.lambda.openai" Version="17.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add magic.lambda.openai --version 17.2.0
#r "nuget: magic.lambda.openai, 17.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install magic.lambda.openai as a Cake Addin
#addin nuget:?package=magic.lambda.openai&version=17.2.0

// Install magic.lambda.openai as a Cake Tool
#tool nuget:?package=magic.lambda.openai&version=17.2.0

This project provides OpenAI related slots for Magic. More specifically, it provides the following slots.

  • [openai.tokenize] - Returns how many tokens the specified text will consume from OpenAI

The above slot will calculate how many tokens the specified input requires from the OpenAI endpoints.

openai.tokenize:This is some query

Credits

Thx to Devis Lucato for publishing the original work under CC0 here.

Magic's GitHub project page

Magic is 100% Open Source and you can find the primary project GitHub page here.

Project website for magic.lambda.openai

The source code for this repository can be found at github.com/polterguy/magic.lambda.openai, and you can provide feedback, provide bug reports, etc at the same place.

  • Build status
  • Quality Gate Status
  • Bugs
  • Code Smells
  • Coverage
  • Duplicated Lines (%)
  • Lines of Code
  • Maintainability Rating
  • Reliability Rating
  • Security Rating
  • Technical Debt
  • Vulnerabilities

The projects is copyright Thomas Hansen 2023 - 2024, and professionally maintained by AINIRO.IO.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on magic.lambda.openai:

Package Downloads
magic.library

Helper project for Magic to wire up everything easily by simply adding one package, and invoking two simple methods. When using Magic, this is (probably) the only package you should actually add, since this package pulls in everything else you'll need automatically, and wires up everything sanely by default. To use package go to https://polterguy.github.io

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
17.2.0 272 1/22/2024
17.1.7 158 1/12/2024
17.1.6 127 1/11/2024
17.1.5 136 1/5/2024
17.0.1 190 1/1/2024
17.0.0 309 12/14/2023
16.11.5 303 11/12/2023
16.9.0 285 10/9/2023
16.7.0 507 7/11/2023
16.4.1 333 7/2/2023
16.4.0 321 6/22/2023
16.3.1 278 6/7/2023
16.3.0 273 5/28/2023
16.1.9 563 4/30/2023
15.10.11 414 4/13/2023
15.9.1 526 3/27/2023
15.9.0 400 3/24/2023
15.8.2 439 3/20/2023
15.7.0 309 3/6/2023
15.5.0 653 2/23/2023