This is an automated email from the ASF dual-hosted git repository.

amoghdesai pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 93a46e5002a Migrate OpenAI connection UI metadata to YAML (#62669)
93a46e5002a is described below

commit 93a46e5002af4afd6499eabb65f8c25033394c3d
Author: yuseok89 <[email protected]>
AuthorDate: Wed Mar 11 19:52:43 2026 +0900

    Migrate OpenAI connection UI metadata to YAML (#62669)
    
    Co-authored-by: Amogh Desai <[email protected]>
---
 providers/openai/provider.yaml                                    | 8 ++++++++
 .../openai/src/airflow/providers/openai/get_provider_info.py      | 5 +++++
 2 files changed, 13 insertions(+)

diff --git a/providers/openai/provider.yaml b/providers/openai/provider.yaml
index 8c21326abdb..96194461b4d 100644
--- a/providers/openai/provider.yaml
+++ b/providers/openai/provider.yaml
@@ -80,3 +80,11 @@ triggers:
 connection-types:
   - hook-class-name: airflow.providers.openai.hooks.openai.OpenAIHook
     connection-type: openai
+    ui-field-behaviour:
+      hidden-fields:
+        - schema
+        - port
+        - login
+      relabeling:
+        password: API Key
+      placeholders: {}
diff --git a/providers/openai/src/airflow/providers/openai/get_provider_info.py 
b/providers/openai/src/airflow/providers/openai/get_provider_info.py
index c8e7c264b31..3b6eff9bfb7 100644
--- a/providers/openai/src/airflow/providers/openai/get_provider_info.py
+++ b/providers/openai/src/airflow/providers/openai/get_provider_info.py
@@ -48,6 +48,11 @@ def get_provider_info():
             {
                 "hook-class-name": 
"airflow.providers.openai.hooks.openai.OpenAIHook",
                 "connection-type": "openai",
+                "ui-field-behaviour": {
+                    "hidden-fields": ["schema", "port", "login"],
+                    "relabeling": {"password": "API Key"},
+                    "placeholders": {},
+                },
             }
         ],
     }

Reply via email to