TextAutoGenerateText::TextAutoGenerateNetworkPluginConfigureWidget Class
The TextAutoGenerateNetworkPluginConfigureWidget class Author: Laurent Montel <montel@kde.org>. More...
| Header: | #include <TextAutoGenerateText/TextAutoGenerateNetworkPluginConfigureWidget> |
| CMake: | find_package(KF6TextAutoGenerateText REQUIRED)target_link_libraries(mytarget PRIVATE KF6::TextAutoGenerateText) |
Public Functions
| TextAutoGenerateNetworkPluginConfigureWidget(QWidget *parent = nullptr) | |
| virtual | ~TextAutoGenerateNetworkPluginConfigureWidget() override |
| QString | apiKey() const |
| QStringList | customModels() const |
| QString | customUrl() const |
| QString | instanceName() const |
| int | maxTokens() const |
| int | seed() const |
| void | setApiKey(const QString &key) |
| void | setCustomModels(const QStringList &models) |
| void | setCustomUrl(const QString &url) |
| void | setDescription(const QString &description) |
| void | setHasCustomUrl(bool b) |
| void | setInstanceName(const QString &name) |
| void | setMaxTokens(int tokens) |
| void | setSeed(int tokens) |
| void | setTemperature(double temp) |
| void | setThinkingLevel(const QString &level) |
| void | setThinkingLevels(const QList<std::pair<QString, QString>> &levels) |
| void | setWebSiteUrl(const QString &url) |
| double | temperature() const |
| QString | thinkingLevel() const |
Signals
| void | enableOkButton(bool state) |
Detailed Description
Member Function Documentation
[explicit] TextAutoGenerateNetworkPluginConfigureWidget::TextAutoGenerateNetworkPluginConfigureWidget(QWidget *parent = nullptr)
Constructs a new TextAutoGenerateNetworkPluginConfigureWidget. parent The parent widget
[override virtual noexcept] TextAutoGenerateNetworkPluginConfigureWidget::~TextAutoGenerateNetworkPluginConfigureWidget()
Destroys the TextAutoGenerateNetworkPluginConfigureWidget.
QString TextAutoGenerateNetworkPluginConfigureWidget::apiKey() const
Returns the API key. Returns The API key
See also setApiKey().
QStringList TextAutoGenerateNetworkPluginConfigureWidget::customModels() const
Returns the models used when the server doesn't provide a list of models. Returns The model identifiers
See also setCustomModels().
QString TextAutoGenerateNetworkPluginConfigureWidget::customUrl() const
customUrl Returns
See also setCustomUrl().
[signal] void TextAutoGenerateNetworkPluginConfigureWidget::enableOkButton(bool state)
send true if we need to update button state
QString TextAutoGenerateNetworkPluginConfigureWidget::instanceName() const
Returns the instance name. Returns The instance name
See also setInstanceName().
int TextAutoGenerateNetworkPluginConfigureWidget::maxTokens() const
Returns the maximum number of tokens. Returns The maximum token count
See also setMaxTokens().
int TextAutoGenerateNetworkPluginConfigureWidget::seed() const
Returns the seed value. Returns The seed value
See also setSeed().
void TextAutoGenerateNetworkPluginConfigureWidget::setApiKey(const QString &key)
Sets the API key. key The API key to set
See also apiKey().
void TextAutoGenerateNetworkPluginConfigureWidget::setCustomModels(const QStringList &models)
Sets the models used when the server doesn't provide a list of models. Only visible when the instance has a custom url. models The model identifiers
See also customModels().
void TextAutoGenerateNetworkPluginConfigureWidget::setCustomUrl(const QString &url)
setCustomUrl url
See also customUrl().
void TextAutoGenerateNetworkPluginConfigureWidget::setDescription(const QString &description)
Sets the description text. description The description to set
void TextAutoGenerateNetworkPluginConfigureWidget::setHasCustomUrl(bool b)
setHasCustomUrl b
void TextAutoGenerateNetworkPluginConfigureWidget::setInstanceName(const QString &name)
Sets the instance name. name The instance name to set
See also instanceName().
void TextAutoGenerateNetworkPluginConfigureWidget::setMaxTokens(int tokens)
Sets the maximum number of tokens. tokens The maximum token count to set
See also maxTokens().
void TextAutoGenerateNetworkPluginConfigureWidget::setSeed(int tokens)
Sets the seed value for random number generation. tokens The seed value to set
See also seed().
void TextAutoGenerateNetworkPluginConfigureWidget::setTemperature(double temp)
Sets the temperature parameter. temp The temperature value to set
See also temperature().
void TextAutoGenerateNetworkPluginConfigureWidget::setThinkingLevel(const QString &level)
Selects the thinking level. Selects the first entry if level is unknown. level The value sent to the server
See also thinkingLevel().
void TextAutoGenerateNetworkPluginConfigureWidget::setThinkingLevels(const QList<std::pair<QString, QString>> &levels)
Sets the thinking levels shown in the "Thinking" combobox. The combobox is hidden when levels is empty (default). levels List of pairs (value sent to the server, translated label)
void TextAutoGenerateNetworkPluginConfigureWidget::setWebSiteUrl(const QString &url)
Sets the website URL. url The website URL to set
double TextAutoGenerateNetworkPluginConfigureWidget::temperature() const
Returns the temperature parameter. Returns The temperature value
See also setTemperature().
QString TextAutoGenerateNetworkPluginConfigureWidget::thinkingLevel() const
Returns the value of the selected thinking level, or an empty string if no level is available.
See also setThinkingLevel().