fix ui and tests
This commit is contained in:
@@ -11,7 +11,7 @@ class LLMOptionsTest {
|
||||
LLMOptions options = LLMOptions.builder().build();
|
||||
|
||||
assertEquals(0.9, options.getTemperature());
|
||||
assertEquals(4096, options.getMaxTokens());
|
||||
assertEquals(16384, options.getMaxTokens());
|
||||
assertEquals(60, options.getTimeoutSeconds());
|
||||
}
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ class ProviderFactoryTest {
|
||||
"https://generativelanguage.googleapis.com/v1beta/models",
|
||||
"gpt-4o-mini",
|
||||
"https://api.openai.com/v1/chat/completions",
|
||||
Duration.ofSeconds(180),
|
||||
restTemplateBuilder
|
||||
);
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ public class FakeProviderFactory extends ProviderFactory {
|
||||
public FakeProviderFactory() {
|
||||
super("gemini-2.0-flash", "https://generativelanguage.googleapis.com/v1beta/models",
|
||||
"gpt-4o-mini", "https://api.openai.com/v1/chat/completions",
|
||||
null);
|
||||
null, null);
|
||||
}
|
||||
|
||||
public FakeProviderFactory withProvider(String name, FakeLLMProvider provider) {
|
||||
|
||||
Reference in New Issue
Block a user