WoltLab Cloud [Developer] OpenAI SDK 1.4.2

OpenAI PHP SDK for WoltLab Suite Core.

The OpenAI PHP SDK extension for the WoltLab Suite enables developers to access and seamlessly integrate the powerful OpenAI GPT-3 API into their forum and community platforms. With this extension, developers can now use APIs for text search, response, and classification to enhance the user experience.


Thanks to the OpenAI PHP SDK, you can access the latest features and integrate them into your WoltLab Suite. By integrating GPT-3, you can provide your users with high-quality language processing. You can use the SDK to generate automated responses, classify texts, and intelligently search for relevant content.


It is important to note, however, that this extension is intended solely for third-party developers. The extension has no direct function or application for end-users.


Usage Example:



Approximate result:



A standalone version of this library, as well as other examples, can be found here:


GitHub - SoftCreatR/php-openai-sdk: A powerful and easy-to-use PHP SDK for the OpenAI API, allowing seamless integration of advanced AI-powered features into your PHP projects.
A powerful and easy-to-use PHP SDK for the OpenAI API, allowing seamless integration of advanced AI-powered features into your PHP projects. - GitHub -…
github.com

  • Version 1.4.2

    Preparations for extensions

  • Version 1.4.1

    - Option OPENAI_USER_ID removed. This should be provided in extensions if needed

    - The individual methods createChatCompletion and createCompletion have been eliminated to decrease the overall complexity. Although these methods can still be invoked, it is now necessary to explicitly set the method option.

  • Version 1.3.0

    Various code optimizations and improvements.

  • Version 1.2.2

    • Incorrect or obsolete method annotations updated
    • Exception handling improved
    • Corrected routes/methods:
      • createModeration
  • Version 1.2.1

    Incorrect or obsolete method annotations updated

  • Version 1.2.0

    • Added support for file uploads (e.g. for transcription)
    • Fixed error in __call.

    New Routes/Methods:

    • deleteModel
    • retrieveModel

    Corrected routes/methods:

    • deleteFile
    • retrieveFile

    Changed routes/methods:


    Old name New name
    chatCompletion createChatCompletion
    completion createCompletion
    embeddings createEmbedding
    image createImage
    imageEdit createImageEdit
    moderation createModeration
    retrieveFileContent downloadFile
    transcribe createTranscription
    translate createTranslation
    uploadFile createFile
  • Version 1.1.1

    • Streaming options removed for now
    • Added invalidation of clients when setting/overwriting the timeout
  • Version 1.1.0

    • Fixed a bug that prevented completion from being executed
    • Missing method setTimeout added
    • HTTP client creation improved
  • Version 1.0.0

    Initial release