Home Applications iris-openai

iris-openai

This application is not supported by InterSystems Corporation. Please be notified that you use it at your own risk.
5
5 reviews
1
Awards
821
Views
39
IPM installs
1
5
Details
Releases  (4)
Reviews  (5)
Awards  (1)
Issues
Articles  (12)
Dependants  (1)
Library for use Open AI

What's new in this version

Release note

Added the following functionalities

  • Audio speach
  • Text moderation

Fixed issues

  • Dockers ports

iris-openAi

Libraries to use the OpenAI API methods in a simple way and integrated with an IRIS production

The idea

There are some libraries for connecting to the OpenAI API via Python, Java, C#, etc., but no library for ObjectScript.
With these classes, you can connect directly to the OpenAI API, and you can interact with them only using request and response messages prepared to connect to OpenAI.

Prerequisites

Make sure you have git and Docker desktop installed.

Installation

  • Clone/git pull the repo into any local directory

git clone https://github.com/KurroLopez/iris-openai.git .\iris-openai

Open the terminal in this directory and run:

$ docker-compose build
  1. Run the IRIS container with your project:
$ docker-compose up -d

How to use it

Step 1: Create your production and insert a new Business Operation called “St.OpenAi.OpenAi” using the class with the same name.

Step 2: Modify the component’s properties to include the Secret Key and OrganizationID

How to Test it

There is a demo created in this composition to check the connection with OpenAI.

Also, there is a Postman collection exported to test. It’s prepared to connecto with Docker compose.

Made with
Install
zpm install iris-openai download archive
Version
1.2.018 Apr, 2024
Ideas portal
https://ideas.intersystems.com/ideas/DPI-I-337
ObjectScript quality test
Category
Frameworks
Works with
InterSystems IRISInterSystems IRIS for Health
First published
21 May, 2023
Last checked by moderator
25 Aug, 2024Works