feat: Visualize downloaded models (#543)

* feat: Visualize downloaded models

* Simplify GeneralSettings access
This commit is contained in:
Rene Leonhardt 2024-05-13 09:48:55 +02:00 committed by GitHub
parent fcd0808111
commit 9bd7e6e83a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 135 additions and 89 deletions

View file

@ -49,8 +49,7 @@ public final class ConversationService {
conversation.setClientCode(clientCode);
conversation.setCreatedOn(LocalDateTime.now());
conversation.setUpdatedOn(LocalDateTime.now());
conversation.setModel(getModelForSelectedService(
GeneralSettings.getCurrentState().getSelectedService()));
conversation.setModel(getModelForSelectedService(GeneralSettings.getSelectedService()));
return conversation;
}
@ -113,7 +112,7 @@ public final class ConversationService {
}
public Conversation startConversation() {
var completionCode = GeneralSettings.getCurrentState().getSelectedService().getCompletionCode();
var completionCode = GeneralSettings.getSelectedService().getCompletionCode();
var conversation = createConversation(completionCode);
conversationState.setCurrentConversation(conversation);
addConversation(conversation);