Mon, 07 Apr 2025 18:22:30 +0200
Created global tag <release-10.1.8>.
<!DOCTYPE html> <html><head> <title>Plugin_AI_Ollama.OllamaInterface.OllamaHistoryEditDialog</title> <meta charset="UTF-8"> <link rel="stylesheet" href="styles.css"> </head> <body> <a NAME="top" ID="top"></a> <h1>Plugin_AI_Ollama.OllamaInterface.OllamaHistoryEditDialog</h1> <p> Module implementing a dialog to edit parameters of a chat history. </p> <h3>Global Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#OllamaHistoryEditDialog">OllamaHistoryEditDialog</a></td> <td>Class implementing a dialog to edit parameters of a chat history.</td> </tr> </table> <h3>Functions</h3> <table> <tr><td>None</td></tr> </table> <hr /> <hr /> <a NAME="OllamaHistoryEditDialog" ID="OllamaHistoryEditDialog"></a> <h2>OllamaHistoryEditDialog</h2> <p> Class implementing a dialog to edit parameters of a chat history. </p> <h3>Derived from</h3> QDialog, Ui_OllamaHistoryEditDialog <h3>Class Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Class Methods</h3> <table> <tr><td>None</td></tr> </table> <h3>Methods</h3> <table> <tr> <td><a href="#OllamaHistoryEditDialog.__init__">OllamaHistoryEditDialog</a></td> <td>Constructor</td> </tr> <tr> <td><a href="#OllamaHistoryEditDialog.getData">getData</a></td> <td>Public method to retrieve the entered chat parameters.</td> </tr> <tr> <td><a href="#OllamaHistoryEditDialog.on_chatTitleEdit_textChanged">on_chatTitleEdit_textChanged</a></td> <td>Private slot to handle a change of the chat title.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <a NAME="OllamaHistoryEditDialog.__init__" ID="OllamaHistoryEditDialog.__init__"></a> <h4>OllamaHistoryEditDialog (Constructor)</h4> <b>OllamaHistoryEditDialog</b>(<i>title, model, selectableModels, parent=None</i>) <p> Constructor </p> <dl> <dt><i>title</i> (str)</dt> <dd> title of the chat </dd> <dt><i>model</i> (str)</dt> <dd> current model used by the chat </dd> <dt><i>selectableModels</i> (list of str)</dt> <dd> list of available models </dd> <dt><i>parent</i> (QWidget (optional))</dt> <dd> reference to the parent widget (defaults to None) </dd> </dl> <a NAME="OllamaHistoryEditDialog.getData" ID="OllamaHistoryEditDialog.getData"></a> <h4>OllamaHistoryEditDialog.getData</h4> <b>getData</b>(<i></i>) <p> Public method to retrieve the entered chat parameters. </p> <dl> <dt>Return:</dt> <dd> tuple containing the entered chat title and the selected model name </dd> </dl> <dl> <dt>Return Type:</dt> <dd> tuple of (str, str) </dd> </dl> <a NAME="OllamaHistoryEditDialog.on_chatTitleEdit_textChanged" ID="OllamaHistoryEditDialog.on_chatTitleEdit_textChanged"></a> <h4>OllamaHistoryEditDialog.on_chatTitleEdit_textChanged</h4> <b>on_chatTitleEdit_textChanged</b>(<i>title</i>) <p> Private slot to handle a change of the chat title. </p> <dl> <dt><i>title</i> (str)</dt> <dd> entered title text </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>