Skip to content

Releases: leafo/lua-openai

v1.4.3

05 Dec 20:55
Compare
Choose a tag to compare
  • Better support for API compatible endpoints like ollm
  • Don't send values where defaults are available (fixes issue with o1-preview failing due to temperature parameter)5

Improved support for images & assistants

30 Jul 22:56
Compare
Choose a tag to compare

New Features:

  1. Added support for image generation endpoint

    • New method: image_generation(params)
  2. Added new endpoints for Assistants API:

    • assistants(): Get list of assistants
    • threads(): Get list of threads
    • thread_messages(thread_id): Get messages for a specific thread
    • delete_thread(thread_id): Delete a specific thread
  3. Added new endpoints for managing files:

    • files(): Get list of files
    • file(file_id): Get details of a specific file
    • delete_file(file_id): Delete a specific file

Improvements:

  1. Updated content format to support image_url input for GPT Vision

    • Added support for image_url type in content format
  2. Made authorization optional

    • Allows usage with local models that don't require API key

v1.2.0 - Support for chat with functions

16 Jun 17:06
Compare
Choose a tag to compare

OpenAI allows sending a list of function declarations that the LLM can decide to call based on the prompt. The function calling interface must be used with chat completions and the gpt-4-0613 or gpt-3.5-turbo-0613 models or later.

This update supports providing a function schema to the initialization of the chat session object.

The function result is then detected when parsing the response from a chat message.

See https://github.com/leafo/lua-openai/blob/main/examples/example5.lua or the README for a complete example.

v1.1.0 - Improved error message output for bad-status errors

19 May 19:49
Compare
Choose a tag to compare

Returned error messages will include the message from the server if available.

Full Changelog: v1.0.0...v1.1.0

v1.0.0

02 May 06:59
Compare
Choose a tag to compare

Initial release

luarocks install lua-openai

Full Changelog: https://github.com/leafo/lua-openai/commits/v1.0.0