|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>Plugin_AI_Ollama.OllamaInterface.OllamaHistoryEditDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>Plugin_AI_Ollama.OllamaInterface.OllamaHistoryEditDialog</h1> |
|
10 <p> |
|
11 Module implementing a dialog to edit parameters of a chat history. |
|
12 </p> |
|
13 |
|
14 <h3>Global Attributes</h3> |
|
15 <table> |
|
16 <tr><td>None</td></tr> |
|
17 </table> |
|
18 |
|
19 <h3>Classes</h3> |
|
20 <table> |
|
21 <tr> |
|
22 <td><a href="#OllamaHistoryEditDialog">OllamaHistoryEditDialog</a></td> |
|
23 <td>Class implementing a dialog to edit parameters of a chat history.</td> |
|
24 </tr> |
|
25 </table> |
|
26 |
|
27 <h3>Functions</h3> |
|
28 <table> |
|
29 <tr><td>None</td></tr> |
|
30 </table> |
|
31 |
|
32 <hr /> |
|
33 <hr /> |
|
34 <a NAME="OllamaHistoryEditDialog" ID="OllamaHistoryEditDialog"></a> |
|
35 <h2>OllamaHistoryEditDialog</h2> |
|
36 <p> |
|
37 Class implementing a dialog to edit parameters of a chat history. |
|
38 </p> |
|
39 |
|
40 <h3>Derived from</h3> |
|
41 QDialog, Ui_OllamaHistoryEditDialog |
|
42 <h3>Class Attributes</h3> |
|
43 <table> |
|
44 <tr><td>None</td></tr> |
|
45 </table> |
|
46 |
|
47 <h3>Class Methods</h3> |
|
48 <table> |
|
49 <tr><td>None</td></tr> |
|
50 </table> |
|
51 |
|
52 <h3>Methods</h3> |
|
53 <table> |
|
54 <tr> |
|
55 <td><a href="#OllamaHistoryEditDialog.__init__">OllamaHistoryEditDialog</a></td> |
|
56 <td>Constructor</td> |
|
57 </tr> |
|
58 <tr> |
|
59 <td><a href="#OllamaHistoryEditDialog.getData">getData</a></td> |
|
60 <td>Public method to retrieve the entered chat parameters.</td> |
|
61 </tr> |
|
62 <tr> |
|
63 <td><a href="#OllamaHistoryEditDialog.on_chatTitleEdit_textChanged">on_chatTitleEdit_textChanged</a></td> |
|
64 <td>Private slot to handle a change of the chat title.</td> |
|
65 </tr> |
|
66 </table> |
|
67 |
|
68 <h3>Static Methods</h3> |
|
69 <table> |
|
70 <tr><td>None</td></tr> |
|
71 </table> |
|
72 |
|
73 |
|
74 <a NAME="OllamaHistoryEditDialog.__init__" ID="OllamaHistoryEditDialog.__init__"></a> |
|
75 <h4>OllamaHistoryEditDialog (Constructor)</h4> |
|
76 <b>OllamaHistoryEditDialog</b>(<i>title, model, selectableModels, parent=None</i>) |
|
77 <p> |
|
78 Constructor |
|
79 </p> |
|
80 |
|
81 <dl> |
|
82 |
|
83 <dt><i>title</i> (str)</dt> |
|
84 <dd> |
|
85 title of the chat |
|
86 </dd> |
|
87 <dt><i>model</i> (str)</dt> |
|
88 <dd> |
|
89 current model used by the chat |
|
90 </dd> |
|
91 <dt><i>selectableModels</i> (list of str)</dt> |
|
92 <dd> |
|
93 list of available models |
|
94 </dd> |
|
95 <dt><i>parent</i> (QWidget (optional))</dt> |
|
96 <dd> |
|
97 reference to the parent widget (defaults to None) |
|
98 </dd> |
|
99 </dl> |
|
100 <a NAME="OllamaHistoryEditDialog.getData" ID="OllamaHistoryEditDialog.getData"></a> |
|
101 <h4>OllamaHistoryEditDialog.getData</h4> |
|
102 <b>getData</b>(<i></i>) |
|
103 <p> |
|
104 Public method to retrieve the entered chat parameters. |
|
105 </p> |
|
106 |
|
107 <dl> |
|
108 <dt>Return:</dt> |
|
109 <dd> |
|
110 tuple containing the entered chat title and the selected model name |
|
111 </dd> |
|
112 </dl> |
|
113 <dl> |
|
114 <dt>Return Type:</dt> |
|
115 <dd> |
|
116 tuple of (str, str) |
|
117 </dd> |
|
118 </dl> |
|
119 <a NAME="OllamaHistoryEditDialog.on_chatTitleEdit_textChanged" ID="OllamaHistoryEditDialog.on_chatTitleEdit_textChanged"></a> |
|
120 <h4>OllamaHistoryEditDialog.on_chatTitleEdit_textChanged</h4> |
|
121 <b>on_chatTitleEdit_textChanged</b>(<i>title</i>) |
|
122 <p> |
|
123 Private slot to handle a change of the chat title. |
|
124 </p> |
|
125 |
|
126 <dl> |
|
127 |
|
128 <dt><i>title</i> (str)</dt> |
|
129 <dd> |
|
130 entered title text |
|
131 </dd> |
|
132 </dl> |
|
133 <div align="right"><a href="#top">Up</a></div> |
|
134 <hr /> |
|
135 </body></html> |