Skip to content

Commit d81b0a0

Browse files
Otijomtrashercconard96
authored
add plugin GLPI AI (#105)
* 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>
1 parent 22311ca commit d81b0a0

23 files changed

Lines changed: 184 additions & 0 deletions

.tx/config

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,3 +345,56 @@ source_file = build/locale/oauthsso/source.pot
345345
source_lang = en
346346
type = PO
347347

348+
[o:teclib:p:glpi-plugins-documentation:r:glpiai--index]
349+
file_filter = source/locale/<lang>/LC_MESSAGES/glpiai/index.po
350+
source_file = build/locale/glpiai/index.pot
351+
source_lang = en
352+
type = PO
353+
354+
[o:teclib:p:glpi-plugins-documentation:r:glpiai--requirements]
355+
file_filter = source/locale/<lang>/LC_MESSAGES/glpiai/requirements.po
356+
source_file = build/locale/glpiai/requirements.pot
357+
source_lang = en
358+
type = PO
359+
360+
[o:teclib:p:glpi-plugins-documentation:r:glpiai--installation]
361+
file_filter = source/locale/<lang>/LC_MESSAGES/glpiai/installation.po
362+
source_file = build/locale/glpiai/installation.pot
363+
source_lang = en
364+
type = PO
365+
366+
[o:teclib:p:glpi-plugins-documentation:r:glpiai--organization]
367+
file_filter = source/locale/<lang>/LC_MESSAGES/glpiai/organization.po
368+
source_file = build/locale/glpiai/organization.pot
369+
source_lang = en
370+
type = PO
371+
372+
[o:teclib:p:glpi-plugins-documentation:r:glpiai--secret]
373+
file_filter = source/locale/<lang>/LC_MESSAGES/glpiai/secret.po
374+
source_file = build/locale/glpiai/secret.pot
375+
source_lang = en
376+
type = PO
377+
378+
[o:teclib:p:glpi-plugins-documentation:r:glpiai--setup_glpi]
379+
file_filter = source/locale/<lang>/LC_MESSAGES/glpiai/setup_glpi.po
380+
source_file = build/locale/glpiai/setup_glpi.pot
381+
source_lang = en
382+
type = PO
383+
384+
[o:teclib:p:glpi-plugins-documentation:r:glpiai--consumtpion]
385+
file_filter = source/locale/<lang>/LC_MESSAGES/glpiai/consumtpion.po
386+
source_file = build/locale/glpiai/consumtpion.pot
387+
source_lang = en
388+
type = PO
389+
390+
[o:teclib:p:glpi-plugins-documentation:r:glpiai--preferences]
391+
file_filter = source/locale/<lang>/LC_MESSAGES/glpiai/preferences.po
392+
source_file = build/locale/glpiai/preferences.pot
393+
source_lang = en
394+
type = PO
395+
396+
[o:teclib:p:glpi-plugins-documentation:r:glpiai--example]
397+
file_filter = source/locale/<lang>/LC_MESSAGES/glpiai/example.po
398+
source_file = build/locale/glpiai/example.pot
399+
source_lang = en
400+
type = PO

source/glpiai/consumption.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Consumption
2+
-----------
3+
4+
It is possible to limit the use of the API by specifying a limit that must not be exceeded.
5+
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.
6+
7+
.. figure:: images/glpiai-8.png
8+
:alt: see the usage
9+
:scale: 100 %
10+
11+
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.
12+
2. Enter the custom usage if you want to account for previous usage outside of the plugin.
13+
14+
.. figure:: images/glpiai-9.png
15+
:alt: real usage
16+
:scale: 100 %

source/glpiai/example.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Example
2+
-------
3+
4+
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.
5+
6+
7+
.. figure:: images/glpiai-12.gif
8+
:alt: glpiai in action
9+
:scale: 40 %
10+
11+
If you want another result, you can click on **Refresh**.

source/glpiai/images/glpiai-1.png

15.1 KB
Loading

source/glpiai/images/glpiai-10.png

8.59 KB
Loading

source/glpiai/images/glpiai-11.png

52.7 KB
Loading

source/glpiai/images/glpiai-12.gif

435 KB
Loading

source/glpiai/images/glpiai-2.png

31.8 KB
Loading

source/glpiai/images/glpiai-3.png

41.7 KB
Loading

source/glpiai/images/glpiai-4.png

8.99 KB
Loading

0 commit comments

Comments
 (0)