Revert "feat(#445): full Models tab parity — settings, aux tasks, MOA config"
This reverts commit dc808daee8.
This commit is contained in:
1 parent
dc808daee8
commit
0ee24144c0
5 files changed
+394
-1671
No files matched your search
@@ -1,64 +0,0 @@
|
||||
package com.m57.hermescontrol.data.model
|
||||
|
||||
data class AuxiliaryTaskAssignment(
|
||||
val task: String,
|
||||
val provider: String,
|
||||
val model: String,
|
||||
val base_url: String? = null,
|
||||
)
|
||||
|
||||
data class AuxiliaryModelsResponse(
|
||||
val tasks: List<AuxiliaryTaskAssignment>,
|
||||
val main: MainModelAssignment,
|
||||
)
|
||||
|
||||
data class MainModelAssignment(
|
||||
val provider: String,
|
||||
val model: String,
|
||||
)
|
||||
|
||||
data class MoaModelSlot(
|
||||
val provider: String,
|
||||
val model: String,
|
||||
)
|
||||
|
||||
data class MoaConfigPreset(
|
||||
val reference_models: List<MoaModelSlot>,
|
||||
val aggregator: MoaModelSlot,
|
||||
val reference_temperature: Double = 0.7,
|
||||
val aggregator_temperature: Double = 0.3,
|
||||
val max_tokens: Int = 4096,
|
||||
val enabled: Boolean = true,
|
||||
)
|
||||
|
||||
data class MoaConfigResponse(
|
||||
val default_preset: String = "",
|
||||
val active_preset: String = "",
|
||||
val presets: Map<String, MoaConfigPreset> = emptyMap(),
|
||||
val reference_models: List<MoaModelSlot> = emptyList(),
|
||||
val aggregator: MoaModelSlot = MoaModelSlot("", ""),
|
||||
val reference_temperature: Double = 0.7,
|
||||
val aggregator_temperature: Double = 0.3,
|
||||
val max_tokens: Int = 4096,
|
||||
val enabled: Boolean = true,
|
||||
)
|
||||
|
||||
data class ModelAssignmentRequest(
|
||||
val confirm_expensive_model: Boolean = false,
|
||||
val scope: String,
|
||||
val provider: String,
|
||||
val model: String,
|
||||
val base_url: String? = null,
|
||||
val task: String? = null,
|
||||
)
|
||||
|
||||
data class ModelAssignmentResponse(
|
||||
val confirm_message: String? = null,
|
||||
val confirm_required: Boolean? = null,
|
||||
val ok: Boolean = false,
|
||||
val scope: String? = null,
|
||||
val provider: String? = null,
|
||||
val model: String? = null,
|
||||
val tasks: List<String>? = null,
|
||||
val reset: Boolean? = null,
|
||||
)
|
||||
@@ -4,7 +4,6 @@ import com.google.gson.JsonElement
|
||||
import com.m57.hermescontrol.data.model.AchievementsResponse
|
||||
import com.m57.hermescontrol.data.model.ActiveProfileResponse
|
||||
import com.m57.hermescontrol.data.model.AgentPluginInstallBody
|
||||
import com.m57.hermescontrol.data.model.AuxiliaryModelsResponse
|
||||
import com.m57.hermescontrol.data.model.ConfigSchemaResponse
|
||||
import com.m57.hermescontrol.data.model.ConfigUpdateRequest
|
||||
import com.m57.hermescontrol.data.model.CreateCronJobRequest
|
||||
@@ -26,9 +25,6 @@ import com.m57.hermescontrol.data.model.McpServersResponse
|
||||
import com.m57.hermescontrol.data.model.MessagingPlatformResponse
|
||||
import com.m57.hermescontrol.data.model.MessagingPlatformTestResult
|
||||
import com.m57.hermescontrol.data.model.MessagingPlatformUpdate
|
||||
import com.m57.hermescontrol.data.model.MoaConfigResponse
|
||||
import com.m57.hermescontrol.data.model.ModelAssignmentRequest
|
||||
import com.m57.hermescontrol.data.model.ModelAssignmentResponse
|
||||
import com.m57.hermescontrol.data.model.ModelOptionsResponse
|
||||
import com.m57.hermescontrol.data.model.PairingApproveRequest
|
||||
import com.m57.hermescontrol.data.model.PairingResponse
|
||||
@@ -289,22 +285,6 @@ interface HermesApiService {
|
||||
@GET("api/model/options")
|
||||
suspend fun getModelOptions(): Response<ModelOptionsResponse>
|
||||
|
||||
@GET("api/model/auxiliary")
|
||||
suspend fun getAuxiliaryModels(): Response<AuxiliaryModelsResponse>
|
||||
|
||||
@GET("api/model/moa")
|
||||
suspend fun getMoaModels(): Response<MoaConfigResponse>
|
||||
|
||||
@PUT("api/model/moa")
|
||||
suspend fun saveMoaModels(
|
||||
@Body body: MoaConfigResponse,
|
||||
): Response<MoaConfigResponse>
|
||||
|
||||
@POST("api/model/set")
|
||||
suspend fun setModelAssignment(
|
||||
@Body body: ModelAssignmentRequest,
|
||||
): Response<ModelAssignmentResponse>
|
||||
|
||||
@GET("api/logs")
|
||||
suspend fun getLogs(
|
||||
@Query("limit") limit: Int? = null,
|
||||
|
||||
Reference in new issue
Block a user