mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-17 00:08:39 +00:00
llmodel: constify LLModel::threadCount()
This commit is contained in:
@@ -32,7 +32,7 @@ void ChatGPT::setThreadCount(int32_t n_threads)
|
||||
qt_noop();
|
||||
}
|
||||
|
||||
int32_t ChatGPT::threadCount()
|
||||
int32_t ChatGPT::threadCount() const
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@@ -25,7 +25,7 @@ public:
|
||||
std::function<bool(bool)> recalculateCallback,
|
||||
PromptContext &ctx) override;
|
||||
void setThreadCount(int32_t n_threads) override;
|
||||
int32_t threadCount() override;
|
||||
int32_t threadCount() const override;
|
||||
|
||||
void setModelName(const QString &modelName) { m_modelName = modelName; }
|
||||
void setAPIKey(const QString &apiKey) { m_apiKey = apiKey; }
|
||||
|
Reference in New Issue
Block a user