-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add plugin GLPI AI * add transifex conf * Apply suggestions from code review Co-authored-by: Curtis Conard <cconard96@gmail.com> * modify consumption * Update source/glpiai/consumption.rst Co-authored-by: Curtis Conard <cconard96@gmail.com> --------- Co-authored-by: Johan Cwiklinski <johan@x-tnd.be> Co-authored-by: Curtis Conard <cconard96@gmail.com>
- Loading branch information
1 parent
22311ca
commit d81b0a0
Showing
23 changed files
with
184 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Consumption | ||
----------- | ||
|
||
It is possible to limit the use of the API by specifying a limit that must not be exceeded. | ||
This plugin tracks usage based on each response from OpenAI. Therefore, you may need to utilize the "Custom usage" field in the configuration to account for usage outside of the plugin if you want the plugin to account for that in its usage limitation. | ||
|
||
.. figure:: images/glpiai-8.png | ||
:alt: see the usage | ||
:scale: 100 % | ||
|
||
1. To limit usage and avoid overruns, specify a value that must not be exceeded. If this limit is exceeded, the plugin will no longer function until this value is increased. | ||
2. Enter the custom usage if you want to account for previous usage outside of the plugin. | ||
|
||
.. figure:: images/glpiai-9.png | ||
:alt: real usage | ||
:scale: 100 % |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Example | ||
------- | ||
|
||
You can see an example of what can be achieved with an exchange that includes a lot of followups. The GLPI AI plugin summarizes all of the followups to highlight the main information. | ||
|
||
|
||
.. figure:: images/glpiai-12.gif | ||
:alt: glpiai in action | ||
:scale: 40 % | ||
|
||
If you want another result, you can click on **Refresh**. |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
GLPI AI | ||
======== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
requirements | ||
installation | ||
organization | ||
secret | ||
setup_glpi | ||
consumption | ||
preferences | ||
example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Install the plugin | ||
------------------ | ||
|
||
- Go to the marketplace. Download and install the **GLPI AI** plugin. | ||
|
||
.. figure:: images/glpiai-1.png | ||
:alt: Install the plugin | ||
:scale: 100 % |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Create an organization | ||
---------------------- | ||
|
||
After creating an OpenAI account, your can create an organization from your account settings under the **Organization** tab or by accessing the page directly at https://platform.openai.com/account/organization. | ||
|
||
Keep the **Organization ID** value, as you will need to insert it in the GLPI AI plugin configuration. | ||
|
||
.. figure:: images/glpiai-2.png | ||
:alt: create organization | ||
:scale: 78 % | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Preferences | ||
----------- | ||
|
||
In preferences, you can set up the response model. In Free mode, you can use the GPT-3.5 Turbo 16K model. | ||
|
||
.. figure:: images/glpiai-10.png | ||
:alt: field check | ||
:scale: 100 % | ||
|
||
You can find information regarding the other plans and plan limits `here <https://platform.openai.com/account/limits>`_ | ||
|
||
By clicking on **Configure preferences**, you can setup a context and a role. | ||
|
||
- The **Context** can be a description of your company, your mission, your job in the company. AI needs to understand your context if it is to respond as pertinently as possible (there is a context by default that you can change). | ||
- The **Role** is how the AI should respond. Does it have a teaching, advisory or expert role? The role can influence the tone and level of detail of the response (there is a role by default that you can change). | ||
|
||
.. figure:: images/glpiai-11.png | ||
:alt: field check | ||
:scale: 71 % |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Requirements | ||
------------ | ||
|
||
============ =========== =========== | ||
GLPI Version Minimum PHP Recommended | ||
============ =========== =========== | ||
10.0.x 8.1 8.2 | ||
============ =========== =========== | ||
|
||
- Open AI API key (free or paid plan) (https://platform.openai.com/api-keys) | ||
- Open AI organization ID (https://platform.openai.com/account/organization) | ||
|
||
.. Note:: A `basic license <https://services.glpi-network.com/#offers>`_ (or higher) is required. This plugin is not available from the `Cloud <https://glpi-network.cloud/fr/>`_. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Create a secret | ||
---------------- | ||
|
||
- From this URL https://platform.openai.com/api-keys | ||
- Click on **Create a new secret** | ||
|
||
.. figure:: images/glpiai-3.png | ||
:alt: create secret | ||
:scale: 55 % | ||
|
||
- Give a name to your secret | ||
- Click on **Create secret key** | ||
|
||
.. figure:: images/glpiai-4.png | ||
:alt: create key | ||
:scale: 100 % | ||
|
||
Copy the secret value that is generated as you will need it later to configure the plugin. | ||
|
||
.. figure:: images/glpiai-5.png | ||
:alt: copy key | ||
:scale: 100 % |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Set up GLPI | ||
----------- | ||
|
||
- In GLPI, go to **Setup > General > GLPI AI** | ||
- Fill in the fields with the values copied previously | ||
|
||
.. figure:: images/glpiai-6.png | ||
:alt: fill fields | ||
:scale: 67 % | ||
|
||
- If your configuration is correct, you will be able to see your account entries, your consumption and your preferences. | ||
|
||
.. figure:: images/glpiai-7.png | ||
:alt: field check | ||
:scale: 70 % |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters