Backend commit 37a4cf900 (hermes-agent) flipped the default of GET /api/model/options's include_unconfigured parameter from true to false, so the mobile Models picker was silently regressing to showing only configured/authenticated providers — the skeleton rows for unconfigured providers (with setup-hint warnings) stopped arriving. Add include_unconfigured as a @Query param defaulting to true so the full provider universe is restored on the Models screen. Both current call sites (ModelViewModel + ProfilesViewModel) invoke the API without passing the new param, so they automatically pick up the true default.
This commit is contained in:
2 files changed
+4
-3
No files matched your search
@@ -1285,7 +1285,7 @@ class E2eIntegrationTest {
|
||||
val provider = ModelProvider("ollama", "Ollama", false, true, listOf("llama3"), 1, null, true, null, null)
|
||||
val profile = ProfileInfo("default", null, true, "llama3", "ollama", null, null, null, null)
|
||||
|
||||
coEvery { mockApiService.getModelOptions(any()) } returns
|
||||
coEvery { mockApiService.getModelOptions(any(), any()) } returns
|
||||
Response.success(ModelOptionsResponse(listOf(provider)))
|
||||
coEvery { mockApiService.getActiveProfile() } returns
|
||||
Response.success(ActiveProfileResponse("default", null))
|
||||
@@ -1340,7 +1340,7 @@ class E2eIntegrationTest {
|
||||
val provider = ModelProvider("ollama", "Ollama", false, true, listOf("llama3"), 1, null, true, null, null)
|
||||
val profile = ProfileInfo("default", null, true, "llama3", "ollama", null, null, null, null)
|
||||
|
||||
coEvery { mockApiService.getModelOptions(any()) } returns
|
||||
coEvery { mockApiService.getModelOptions(any(), any()) } returns
|
||||
Response.success(ModelOptionsResponse(listOf(provider)))
|
||||
coEvery { mockApiService.getActiveProfile() } returns
|
||||
Response.success(ActiveProfileResponse("default", null))
|
||||
@@ -1364,7 +1364,7 @@ class E2eIntegrationTest {
|
||||
)
|
||||
|
||||
val capturedRefresh = mutableListOf<Boolean>()
|
||||
coEvery { mockApiService.getModelOptions(any()) } answers {
|
||||
coEvery { mockApiService.getModelOptions(any(), any()) } answers {
|
||||
capturedRefresh.add(firstArg())
|
||||
Response.success(ModelOptionsResponse(listOf(provider)))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user