mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-14 05:43:51 +00:00
(improvement)(chat) Add unit tests for each chatModel and embeddingModel. (#1582)
This commit is contained in:
@@ -15,6 +15,7 @@ import java.time.Duration;
|
||||
public class LocalAiModelFactory implements ModelFactory, InitializingBean {
|
||||
public static final String PROVIDER = "LOCAL_AI";
|
||||
public static final String DEFAULT_BASE_URL = "http://localhost:8080";
|
||||
public static final String DEFAULT_MODEL_NAME = "ggml-gpt4all-j";
|
||||
@Override
|
||||
public ChatLanguageModel createChatModel(ChatModelConfig modelConfig) {
|
||||
return LocalAiChatModel
|
||||
|
||||
Reference in New Issue
Block a user