AI rule node: remove redundant generic in AiModelConfig.java
This commit is contained in:
parent
c0b44a95b2
commit
201060e268
@ -26,7 +26,7 @@ import org.thingsboard.server.common.data.ai.provider.AiProviderConfig;
|
||||
property = "@type"
|
||||
)
|
||||
@JsonTypeIdResolver(AiModelTypeIdResolver.class)
|
||||
public interface AiModel<C extends AiModelConfig<C>> {
|
||||
public interface AiModel<C extends AiModelConfig> {
|
||||
|
||||
AiProviderConfig providerConfig();
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
*/
|
||||
package org.thingsboard.server.common.data.ai.model;
|
||||
|
||||
public interface AiModelConfig<C extends AiModelConfig<C>> {
|
||||
public interface AiModelConfig {
|
||||
|
||||
String modelId();
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ package org.thingsboard.server.common.data.ai.model.chat;
|
||||
|
||||
import org.thingsboard.server.common.data.ai.model.AiModelConfig;
|
||||
|
||||
public sealed interface AiChatModelConfig<C extends AiChatModelConfig<C>> extends AiModelConfig<C>
|
||||
public sealed interface AiChatModelConfig<C extends AiChatModelConfig<C>> extends AiModelConfig
|
||||
permits
|
||||
OpenAiChatModel.Config, AzureOpenAiChatModel.Config, GoogleAiGeminiChatModel.Config,
|
||||
GoogleVertexAiGeminiChatModel.Config, MistralAiChatModel.Config, AnthropicChatModel.Config,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user