AI config file
AI parameters are set in a JSON config file
Within OSAIS, each AI has its own configuration file. The syntax is shared all accross OSAIS to simplify AI onboarding and also for allowing AI chains.
1/ General section
The top section of the JSON config is about the AI itself, with general information such as its name, description, version (of the JSON file), where the AI is running (local port), where it was found, and the expected cost for running it on a generic hardware (we need to initiate the cost with a value anyway).
For example, see the top section of the JSON configuration file for PING AI.
2/ Params section
Then, a section defines ALL parameters for this AI. It is an unordered list of parameters. Some are specific to the AI, and some are specific to OSAIS.
The format for describing a parameter is generally made of the following general parameters:
Then, more specific parameters regarding the possible values, the UI, and the restriction of usage to apply when the AI runs in "demo" mode.
There are various widgets for displaying all sorts of parameters. Here is the list of UI available by y OSAIS:
uiEdit: an edit field entry, which can take parameters such as strings or int.
uiSelectPicture: an image selection widget which can be set to filter image extensions and file size (in width, height, and/or kb)
uiRangeSlider: a slider which generally works for selecting int or float values in a range. The slider can display real values or percentage of target values.
uiMultiToggle: a set of buttons, each displaying a text representing a particular value, which is defined in the set.
uiSwitch: used to represent a boolean (toggle yes/no)
Last updated