pyflink.dataframe.ai.providers.GenericProvider#
- class GenericProvider(name: str, **options: Any)[source]#
Generic provider for unknown or custom model providers.
Options are passed through to the Java side as-is without any key name translation.
- Parameters:
name – Provider identifier recognized by Flink’s Java runtime.
**options – Arbitrary key-value options.
- Example::
>>> provider = GenericProvider("my-provider", endpoint="https://...", ... **{"api-key": "sk-..."})
Methods
model_option_key()Return the Java-side option key used for a per-call model name.
provider_name()Return the provider identifier recognized by Flink's Java runtime.
to_options()Return all configured options as a dict with Java-side key names.