mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 08:43:02 +08:00
refactor(config): adjust declared config location
This commit is contained in:
@@ -19,7 +19,7 @@ object AgentGatewayRegistry : Configurable, ConfigRegistration<AgentGatewayRegis
|
||||
private val runningChannels = linkedMapOf<String, RunningGateway>()
|
||||
|
||||
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
|
||||
|
||||
@@ -60,7 +60,7 @@ object ModelRuntimeRegistry : Configurable, ConfigRegistration<ModelRuntimeRegis
|
||||
}
|
||||
|
||||
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
|
||||
@@ -178,4 +178,3 @@ data class OpenAiCompatibleProviderConfig(
|
||||
val baseUrl: String,
|
||||
val apiKey: String
|
||||
) : ProviderConfig()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user