mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 16:53:04 +08:00
refactor(config): adjust declared config location
This commit is contained in:
@@ -44,8 +44,7 @@ public class VectorClientRegistry implements Configurable, ConfigRegistration<Ve
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public @NotNull Map<Path, ConfigRegistration<? extends Config>> declare() {
|
public @NotNull Map<Path, ConfigRegistration<? extends Config>> declare() {
|
||||||
return Map.of(Path.of("vector", "config.json"), this);
|
return Map.of(Path.of("vector.json"), this);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ object ExecutionPolicyRegistry : Configurable, ConfigRegistration<ExecutionPolic
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun declare(): Map<Path, ConfigRegistration<out Config>> {
|
override fun declare(): Map<Path, ConfigRegistration<out Config>> {
|
||||||
return mapOf(Path.of("core", "action", "runner_policy.json") to this)
|
return mapOf(Path.of("action", "runner_policy.json") to this)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun type(): Class<ExecutionPolicy> {
|
override fun type(): Class<ExecutionPolicy> {
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ object AgentGatewayRegistry : Configurable, ConfigRegistration<AgentGatewayRegis
|
|||||||
private val runningChannels = linkedMapOf<String, RunningGateway>()
|
private val runningChannels = linkedMapOf<String, RunningGateway>()
|
||||||
|
|
||||||
override fun declare(): Map<Path, ConfigRegistration<out Config>> {
|
override fun declare(): Map<Path, ConfigRegistration<out Config>> {
|
||||||
return mapOf(Path.of("gateway", "gateway.json") to this)
|
return mapOf(Path.of("gateway.json") to this)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun type(): Class<AgentGatewayRegistryConfig> = AgentGatewayRegistryConfig::class.java
|
override fun type(): Class<AgentGatewayRegistryConfig> = AgentGatewayRegistryConfig::class.java
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ object ModelRuntimeRegistry : Configurable, ConfigRegistration<ModelRuntimeRegis
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun declare(): Map<Path, ConfigRegistration<out Config>> {
|
override fun declare(): Map<Path, ConfigRegistration<out Config>> {
|
||||||
return mapOf(Path.of("model", "model.json") to this)
|
return mapOf(Path.of("model.json") to this)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun type(): Class<ModelRuntimeRegistryConfig> = ModelRuntimeRegistryConfig::class.java
|
override fun type(): Class<ModelRuntimeRegistryConfig> = ModelRuntimeRegistryConfig::class.java
|
||||||
@@ -178,4 +178,3 @@ data class OpenAiCompatibleProviderConfig(
|
|||||||
val baseUrl: String,
|
val baseUrl: String,
|
||||||
val apiKey: String
|
val apiKey: String
|
||||||
) : ProviderConfig()
|
) : ProviderConfig()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user