41 lines
845 B
C++
41 lines
845 B
C++
#ifndef CTAI_SESSION_SETTING_H
|
|
#define CTAI_SESSION_SETTING_H
|
|
|
|
#include <QWidget>
|
|
#include <QLabel>
|
|
#include <QTextEdit>
|
|
#include <QVBoxLayout>
|
|
#include <QHBoxLayout>
|
|
|
|
class ctai_session_setting : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ctai_session_setting(QWidget *parent = nullptr);
|
|
~ctai_session_setting();
|
|
|
|
private:
|
|
// 布局
|
|
QVBoxLayout* mainLayout;
|
|
|
|
// 标签
|
|
QLabel* labelModelName;
|
|
QLabel* labelFreqPenalty;
|
|
QLabel* labelMaxTokens;
|
|
QLabel* labelPresencePenalty;
|
|
QLabel* labelTemperature;
|
|
QLabel* labelTopP;
|
|
|
|
// 输入框
|
|
QTextEdit* editModelName;
|
|
QTextEdit* editFreqPenalty;
|
|
QTextEdit* editMaxTokens;
|
|
QTextEdit* editPresencePenalty;
|
|
QTextEdit* editTemperature;
|
|
QTextEdit* editTopP;
|
|
|
|
private:
|
|
void initUI();
|
|
void setupConnections();
|
|
};
|
|
#endif |