mirror of
https://github.com/celesrenata/end-4-flakes.git
synced 2026-06-06 10:49:26 -05:00
33 lines
1.1 KiB
QML
33 lines
1.1 KiB
QML
import QtQuick;
|
|
|
|
/**
|
|
* An AI model representation.
|
|
* - name: Friendly name of the model
|
|
* - icon: Icon name of the model
|
|
* - description: Description of the model
|
|
* - endpoint: Endpoint of the model
|
|
* - model: Model code (like gpt-4.1 or gemini-2.5-flash)
|
|
* - requires_key: Whether the model requires an API key
|
|
* - key_id: The identifier of the API key. Use the same identifier for models that can be accessed with the same key.
|
|
* - key_get_link: Link to get an API key
|
|
* - key_get_description: Description of pricing and how to get an API key
|
|
* - api_format: The API format of the model. Can be "openai" or "gemini". Default is "openai".
|
|
* - extraParams: Extra parameters to be passed to the model. This is a JSON object.
|
|
*/
|
|
|
|
QtObject {
|
|
property string name
|
|
property string icon
|
|
property string description
|
|
property string homepage
|
|
property string endpoint
|
|
property string model
|
|
property bool requires_key: true
|
|
property string key_id
|
|
property string key_get_link
|
|
property string key_get_description
|
|
property string api_format: "openai"
|
|
property var tools
|
|
property var extraParams: ({})
|
|
}
|