Class OpenAiCompatibleModelClientFactory
- java.lang.Object
-
- org.apache.flink.cdc.models.openai.OpenAiCompatibleModelClientFactory
-
- All Implemented Interfaces:
Factory,AiModelClientFactory
public class OpenAiCompatibleModelClientFactory extends Object implements AiModelClientFactory
SPI factory forOpenAiCompatibleModelClient.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.cdc.common.factories.Factory
Factory.Context
-
-
Constructor Summary
Constructors Constructor Description OpenAiCompatibleModelClientFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AiModelClientcreateClient(ModelContext context)Creates a newAiModelClientfrom the given context.Stringidentifier()Returns a unique identifier among same factory interfaces.Set<ConfigOption<?>>optionalOptions()Returns a set ofConfigOptionthat an implementation of this factory consumes in addition toFactory.requiredOptions().Set<ConfigOption<?>>requiredOptions()Returns a set ofConfigOptionthat an implementation of this factory requires in addition toFactory.optionalOptions().
-
-
-
Method Detail
-
identifier
public String identifier()
Description copied from interface:FactoryReturns a unique identifier among same factory interfaces.- Specified by:
identifierin interfaceFactory
-
requiredOptions
public Set<ConfigOption<?>> requiredOptions()
Description copied from interface:FactoryReturns a set ofConfigOptionthat an implementation of this factory requires in addition toFactory.optionalOptions().- Specified by:
requiredOptionsin interfaceFactory
-
optionalOptions
public Set<ConfigOption<?>> optionalOptions()
Description copied from interface:FactoryReturns a set ofConfigOptionthat an implementation of this factory consumes in addition toFactory.requiredOptions().- Specified by:
optionalOptionsin interfaceFactory
-
createClient
public AiModelClient createClient(ModelContext context)
Description copied from interface:AiModelClientFactoryCreates a newAiModelClientfrom the given context. The returned client is serialized with the transform operator and opened on task managers.- Specified by:
createClientin interfaceAiModelClientFactory
-
-