com.openai.unity

A Non-Official OpenAI Rest Client for Unity (UPM)

MIT License

Stars
455
Committers
4

Bot releases are visible (Hide)

com.openai.unity - com.openai.unity 5.0.4

Published by StephenHodgson about 1 year ago

What's Changed:

  • Updated Message.cs field layout
  • ChatRequest forced function calls

Full Changelog: https://github.com/RageAgainstThePixel/com.openai.unity/compare/5.0.3...5.0.4

com.openai.unity - com.openai.unity 5.0.3

Published by StephenHodgson over 1 year ago

What's Changed

  • Fixed chat streaming message copy from delta

Full Changelog: https://github.com/RageAgainstThePixel/com.openai.unity/compare/5.0.2...5.0.3

com.openai.unity - com.openai.unity 5.0.2

Published by StephenHodgson over 1 year ago

What's Changed

  • fixed streaming chat functions

Full Changelog: https://github.com/RageAgainstThePixel/com.openai.unity/compare/5.0.1...5.0.2

com.openai.unity - com.openai.unity 5.0.1

Published by StephenHodgson over 1 year ago

What's New

Full Changelog: https://github.com/RageAgainstThePixel/com.openai.unity/compare/5.0.0...5.0.1

com.openai.unity - com.openai.unity 5.0.0

Published by StephenHodgson over 1 year ago

What's Changed

⚠️ Breaking Changes! ⚠️

  • enables WebGL support
    • removed httpClient for generic UnityWebRequest
  • removed IAsyncEnumerable methods
  • added chat demo scene
  • refactored authentication classes with new rest package patterns

Migration Guide

  • Some assembly definitions may now also need to reference Utilities.Async and Utilities.Rest
  • OpenAIAuthentication static methods are no longer static, and will need to be called using Default property accessor
    • OpenAIAuthentication.LoadFromEnv() -> OpenAIAuthentication.Default.LoadFromEnvironment()
  • OpenAIConfigurationSettings -> OpenAIConfiguration
  • OpenAIClientSettings -> OpenAISettings

Full Changelog: https://github.com/RageAgainstThePixel/com.openai.unity/compare/4.8.7...5.0.0

com.openai.unity - com.openai.unity 4.8.7

Published by StephenHodgson over 1 year ago

What's Changed

  • Add ToString and string operator to Moderation.Scores by @damiant3

Full Changelog: https://github.com/RageAgainstThePixel/com.openai.unity/compare/4.8.6...4.8.7

com.openai.unity - com.openai.unity 4.8.6

Published by StephenHodgson over 1 year ago

What's Changed

  • Populated finish reason in streaming chat final message content

Full Changelog: https://github.com/RageAgainstThePixel/com.openai.unity/compare/4.8.5...4.6.8

com.openai.unity - com.openai.unity 4.8.5

Published by StephenHodgson over 1 year ago

What's Changed

  • Updated all method calls to take a model as string

New Contributors

  • @damiant3 made their first pull request in #82

Full Changelog: https://github.com/RageAgainstThePixel/com.openai.unity/compare/4.8.4...4.8.5

com.openai.unity - com.openai.unity 4.8.4

Published by StephenHodgson over 1 year ago

What's Changed

  • Revert BaseEndpoint.GetUrl changes

Full Changelog: https://github.com/RageAgainstThePixel/com.openai.unity/compare/4.8.3...4.8.4

com.openai.unity - com.openai.unity 4.8.3

Published by StephenHodgson over 1 year ago

What's Changed

  • updated dependencies
  • misc internal fixes, formatting and docs

Full Changelog: https://github.com/RageAgainstThePixel/com.openai.unity/compare/4.8.1...4.8.3

com.openai.unity - com.openai.unity 4.8.1

Published by StephenHodgson over 1 year ago

What's Changed

  • Updated basic and chat completions choices to default to empty string
  • Fixed Completions.CompletionResult.ToString first completion index lookup

Full Changelog: https://github.com/RageAgainstThePixel/com.openai.unity/compare/4.8.0...4.8.1

com.openai.unity - com.openai.unity 4.8.0

Published by StephenHodgson over 1 year ago

What's Changed

  • Removed Obsolete ChatPrompt.
  • Removed Obsolete FileEndpoint.DownloadFileAsync(string fileId, IProgress<float> progress).
  • ChatEndpoint.StreamCompletionAsync will now also raise additional ChatResponse with completed Message.
  • ChatEndpoint.StreamCompletionEnumerableAsync will now also raise additional ChatResponse with completed Message.
  • Refactored all streaming endpoints to use a new string extension for centralized parsing of event stream data
  • Added optional parameter cancelJob to FineTuningEndpoint.StreamFineTuneEventsEnumerableAsync. Default is
    false.
  • Added optional parameter cancelJob to FineTuningEndpoint.StreamFineTuneEventsAsync. Default is false.
  • Updated Completions.LogProbabilities.TopLogProbabilities to properly use immutable IReadOnlyList<IReadOnlyDictionary<string, double>>.

Full Changelog: https://github.com/RageAgainstThePixel/com.openai.unity/compare/4.7.4...4.8.0

com.openai.unity - com.openai.unity 4.7.4

Published by StephenHodgson over 1 year ago

What's Changed

  • fixed Model.Permissions
  • added Model.CreatedAt

Full Changelog: https://github.com/RageAgainstThePixel/com.openai.unity/compare/4.7.3...4.7.4

com.openai.unity - com.openai.unity 4.7.3

Published by StephenHodgson over 1 year ago

What's changed

  • fixed serialization of empty strings, they are now treated as null
  • fixed missing name assignment to Chat.Delta
  • updated docs

Full Changelog: https://github.com/RageAgainstThePixel/com.openai.unity/compare/4.7.2...4.7.3

com.openai.unity - com.openai.unity 4.7.2

Published by StephenHodgson over 1 year ago

What's Changed

  • Made it easier to specify a specific configuration file path
  • Added optional author name property to chat message
  • Added implicit string conversions to make ChatResponses easier to work with
  • Updated docs
  • Updated deps

Full Changelog: https://github.com/RageAgainstThePixel/com.openai.unity/compare/4.7.1...4.7.2

com.openai.unity - com.openai.unity 4.7.1

Published by StephenHodgson over 1 year ago

What's Changed

  • Clarify authentication documentation with recommended usage of API keys
  • Fixed parsing old env file format
  • Fixed parsing missing ORGANIZATION env vars
  • Fixed checking of CancellationToken.IsCancellationRequested in streaming endpoints

Full Changelog: https://github.com/RageAgainstThePixel/com.openai.unity/compare/4.7.0...4.7.1

com.openai.unity - com.openai.unity 4.7.0

Published by StephenHodgson over 1 year ago

What's Changed

  • Deprecated ChatPrompt -> Message
  • Added Role enum for Chat.Messages and Chat.Delta
  • Updated ChatRequest constructor to use IEnumerable<Message> messages
  • Updated ChatRequest.Messages to IReadonlyList<Message>
  • Updated unit tests

Full Changelog: https://github.com/RageAgainstThePixel/com.openai.unity/compare/4.6.0...4.7.0

com.openai.unity - com.openai.unity 4.6.0

Published by StephenHodgson over 1 year ago

What's Changed

  • Added response_format to ImageGenerationRequest
  • Refactored Image Requests with AbstractBaseImageRequest

Special thanks to @johnkors for updates in OpenAI-DotNet

Full Changelog: https://github.com/RageAgainstThePixel/com.openai.unity/compare/4.5.4...4.6.0

com.openai.unity - com.openai.unity 4.5.4

Published by StephenHodgson over 1 year ago

What's Changed

  • Updated dependencies

Full Changelog: https://github.com/RageAgainstThePixel/com.openai.unity/compare/4.5.3...4.5.4

com.openai.unity - com.openai.unity 4.5.3

Published by StephenHodgson over 1 year ago

Badges
Extracted from project README
Discord openupm openupm NuGet version (OpenAI-DotNet-Proxy)