@@ -3217,6 +3217,7 @@ def decorator():
32173217 def text_completion_input (self ,
32183218 arg_name : str ,
32193219 prompt : str ,
3220+ ai_connection_name : Optional [str ] = "" ,
32203221 chat_model : Optional
32213222 [Union [str , OpenAIModels ]]
32223223 = OpenAIModels .DefaultChatModel ,
@@ -3243,6 +3244,14 @@ def text_completion_input(self,
32433244 :param arg_name: The name of binding parameter in the function code.
32443245 :param prompt: The prompt to generate completions for, encoded as a
32453246 string.
3247+ :param ai_connection_name: The name of the configuration section for
3248+ AI service connectivity settings. For Azure OpenAI: If specified, looks
3249+ for "Endpoint" and/or "Key" values in this configuration section. If
3250+ not specified or the section doesn't exist, falls back to environment
3251+ variables: AZURE_OPENAI_ENDPOINT and AZURE_OPENAI_KEY. For
3252+ user-assigned managed identity authentication, this property is
3253+ required. For OpenAI service (non-Azure), set the OPENAI_API_KEY
3254+ environment variable.
32463255 :param model: @deprecated. Use chat_model instead. The model parameter
32473256 is unused and will be removed in future versions.
32483257 :param chat_model: The deployment name or model name of OpenAI Chat
@@ -3277,6 +3286,7 @@ def decorator():
32773286 binding = TextCompletionInput (
32783287 name = arg_name ,
32793288 prompt = prompt ,
3289+ ai_connection_name = ai_connection_name ,
32803290 chat_model = chat_model ,
32813291 temperature = temperature ,
32823292 top_p = top_p ,
@@ -3378,6 +3388,7 @@ def decorator():
33783388 def assistant_post_input (self , arg_name : str ,
33793389 id : str ,
33803390 user_message : str ,
3391+ ai_connection_name : Optional [str ] = "" ,
33813392 chat_model : Optional
33823393 [Union [str , OpenAIModels ]]
33833394 = OpenAIModels .DefaultChatModel ,
@@ -3399,6 +3410,14 @@ def assistant_post_input(self, arg_name: str,
33993410 :param id: The ID of the assistant to update.
34003411 :param user_message: The user message that user has entered for
34013412 assistant to respond to.
3413+ :param ai_connection_name: The name of the configuration section for
3414+ AI service connectivity settings. For Azure OpenAI: If specified, looks
3415+ for "Endpoint" and/or "Key" values in this configuration section. If
3416+ not specified or the section doesn't exist, falls back to environment
3417+ variables: AZURE_OPENAI_ENDPOINT and AZURE_OPENAI_KEY. For
3418+ user-assigned managed identity authentication, this property is
3419+ required. For OpenAI service (non-Azure), set the OPENAI_API_KEY
3420+ environment variable.
34023421 :param model: @deprecated. Use chat_model instead. The model parameter
34033422 is unused and will be removed in future versions.
34043423 :param chat_model: The deployment name or model name of OpenAI Chat
@@ -3439,6 +3458,7 @@ def decorator():
34393458 name = arg_name ,
34403459 id = id ,
34413460 user_message = user_message ,
3461+ ai_connection_name = ai_connection_name ,
34423462 chat_model = chat_model ,
34433463 chat_storage_connection_setting = chat_storage_connection_setting , # noqa: E501
34443464 collection_name = collection_name ,
@@ -3459,6 +3479,7 @@ def embeddings_input(self,
34593479 arg_name : str ,
34603480 input : str ,
34613481 input_type : InputType ,
3482+ ai_connection_name : Optional [str ] = "" ,
34623483 embeddings_model : Optional
34633484 [Union [str , OpenAIModels ]]
34643485 = OpenAIModels .DefaultEmbeddingsModel ,
@@ -3478,6 +3499,14 @@ def embeddings_input(self,
34783499 :param input: The input source containing the data to generate
34793500 embeddings for.
34803501 :param input_type: The type of the input.
3502+ :param ai_connection_name: The name of the configuration section for
3503+ AI service connectivity settings. For Azure OpenAI: If specified, looks
3504+ for "Endpoint" and/or "Key" values in this configuration section. If
3505+ not specified or the section doesn't exist, falls back to environment
3506+ variables: AZURE_OPENAI_ENDPOINT and AZURE_OPENAI_KEY. For
3507+ user-assigned managed identity authentication, this property is
3508+ required. For OpenAI service (non-Azure), set the OPENAI_API_KEY
3509+ environment variable.
34813510 :param model: @deprecated. Use embeddings_model instead. The model
34823511 parameter is unused and will be removed in future versions.
34833512 :param embeddings_model: The deployment name or model name for OpenAI
@@ -3502,6 +3531,7 @@ def decorator():
35023531 name = arg_name ,
35033532 input = input ,
35043533 input_type = input_type ,
3534+ ai_connection_name = ai_connection_name ,
35053535 embeddings_model = embeddings_model ,
35063536 max_chunk_length = max_chunk_length ,
35073537 max_overlap = max_overlap ,
@@ -3519,6 +3549,7 @@ def semantic_search_input(self,
35193549 search_connection_name : str ,
35203550 collection : str ,
35213551 query : Optional [str ] = None ,
3552+ ai_connection_name : Optional [str ] = "" ,
35223553 embeddings_model : Optional
35233554 [Union [str , OpenAIModels ]]
35243555 = OpenAIModels .DefaultEmbeddingsModel ,
@@ -3552,6 +3583,14 @@ def semantic_search_input(self,
35523583 :param collection: The name of the collection or table to search or
35533584 store.
35543585 :param query: The semantic query text to use for searching.
3586+ :param ai_connection_name: The name of the configuration section for
3587+ AI service connectivity settings. For Azure OpenAI: If specified, looks
3588+ for "Endpoint" and/or "Key" values in this configuration section. If
3589+ not specified or the section doesn't exist, falls back to environment
3590+ variables: AZURE_OPENAI_ENDPOINT and AZURE_OPENAI_KEY. For
3591+ user-assigned managed identity authentication, this property is
3592+ required. For OpenAI service (non-Azure), set the OPENAI_API_KEY
3593+ environment variable.
35553594 :param embeddings_model: The deployment name or model name for OpenAI
35563595 Embeddings. The default value is "text-embedding-ada-002".
35573596 :param chat_model: The deployment name or model name of OpenAI Chat
@@ -3592,6 +3631,7 @@ def decorator():
35923631 search_connection_name = search_connection_name ,
35933632 collection = collection ,
35943633 query = query ,
3634+ ai_connection_name = ai_connection_name ,
35953635 embeddings_model = embeddings_model ,
35963636 chat_model = chat_model ,
35973637 system_prompt = system_prompt ,
@@ -3615,6 +3655,7 @@ def embeddings_store_output(self,
36153655 input_type : InputType ,
36163656 store_connection_name : str ,
36173657 collection : str ,
3658+ ai_connection_name : Optional [str ] = "" ,
36183659 embeddings_model : Optional
36193660 [Union [str , OpenAIModels ]]
36203661 = OpenAIModels .DefaultEmbeddingsModel ,
@@ -3640,6 +3681,14 @@ def embeddings_store_output(self,
36403681 :param store_connection_name: The name of an app setting or environment
36413682 variable which contains a vectore store connection setting value
36423683 :param collection: The collection or table to search.
3684+ :param ai_connection_name: The name of the configuration section for
3685+ AI service connectivity settings. For Azure OpenAI: If specified, looks
3686+ for "Endpoint" and/or "Key" values in this configuration section. If
3687+ not specified or the section doesn't exist, falls back to environment
3688+ variables: AZURE_OPENAI_ENDPOINT and AZURE_OPENAI_KEY. For
3689+ user-assigned managed identity authentication, this property is
3690+ required. For OpenAI service (non-Azure), set the OPENAI_API_KEY
3691+ environment variable.
36433692 :param model: @deprecated. Use embeddings_model instead. The model
36443693 parameter is unused and will be removed in future versions.
36453694 :param embeddings_model: The deployment name or model name for OpenAI
@@ -3666,6 +3715,7 @@ def decorator():
36663715 input_type = input_type ,
36673716 store_connection_name = store_connection_name ,
36683717 collection = collection ,
3718+ ai_connection_name = ai_connection_name ,
36693719 embeddings_model = embeddings_model ,
36703720 max_chunk_length = max_chunk_length ,
36713721 max_overlap = max_overlap ,
0 commit comments