@@ -3217,6 +3217,7 @@ def decorator():
3217
3217
def text_completion_input (self ,
3218
3218
arg_name : str ,
3219
3219
prompt : str ,
3220
+ ai_connection_name : Optional [str ] = "" ,
3220
3221
chat_model : Optional
3221
3222
[Union [str , OpenAIModels ]]
3222
3223
= OpenAIModels .DefaultChatModel ,
@@ -3243,6 +3244,14 @@ def text_completion_input(self,
3243
3244
:param arg_name: The name of binding parameter in the function code.
3244
3245
:param prompt: The prompt to generate completions for, encoded as a
3245
3246
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.
3246
3255
:param model: @deprecated. Use chat_model instead. The model parameter
3247
3256
is unused and will be removed in future versions.
3248
3257
:param chat_model: The deployment name or model name of OpenAI Chat
@@ -3277,6 +3286,7 @@ def decorator():
3277
3286
binding = TextCompletionInput (
3278
3287
name = arg_name ,
3279
3288
prompt = prompt ,
3289
+ ai_connection_name = ai_connection_name ,
3280
3290
chat_model = chat_model ,
3281
3291
temperature = temperature ,
3282
3292
top_p = top_p ,
@@ -3378,6 +3388,7 @@ def decorator():
3378
3388
def assistant_post_input (self , arg_name : str ,
3379
3389
id : str ,
3380
3390
user_message : str ,
3391
+ ai_connection_name : Optional [str ] = "" ,
3381
3392
chat_model : Optional
3382
3393
[Union [str , OpenAIModels ]]
3383
3394
= OpenAIModels .DefaultChatModel ,
@@ -3399,6 +3410,14 @@ def assistant_post_input(self, arg_name: str,
3399
3410
:param id: The ID of the assistant to update.
3400
3411
:param user_message: The user message that user has entered for
3401
3412
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.
3402
3421
:param model: @deprecated. Use chat_model instead. The model parameter
3403
3422
is unused and will be removed in future versions.
3404
3423
:param chat_model: The deployment name or model name of OpenAI Chat
@@ -3439,6 +3458,7 @@ def decorator():
3439
3458
name = arg_name ,
3440
3459
id = id ,
3441
3460
user_message = user_message ,
3461
+ ai_connection_name = ai_connection_name ,
3442
3462
chat_model = chat_model ,
3443
3463
chat_storage_connection_setting = chat_storage_connection_setting , # noqa: E501
3444
3464
collection_name = collection_name ,
@@ -3459,6 +3479,7 @@ def embeddings_input(self,
3459
3479
arg_name : str ,
3460
3480
input : str ,
3461
3481
input_type : InputType ,
3482
+ ai_connection_name : Optional [str ] = "" ,
3462
3483
embeddings_model : Optional
3463
3484
[Union [str , OpenAIModels ]]
3464
3485
= OpenAIModels .DefaultEmbeddingsModel ,
@@ -3478,6 +3499,14 @@ def embeddings_input(self,
3478
3499
:param input: The input source containing the data to generate
3479
3500
embeddings for.
3480
3501
: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.
3481
3510
:param model: @deprecated. Use embeddings_model instead. The model
3482
3511
parameter is unused and will be removed in future versions.
3483
3512
:param embeddings_model: The deployment name or model name for OpenAI
@@ -3502,6 +3531,7 @@ def decorator():
3502
3531
name = arg_name ,
3503
3532
input = input ,
3504
3533
input_type = input_type ,
3534
+ ai_connection_name = ai_connection_name ,
3505
3535
embeddings_model = embeddings_model ,
3506
3536
max_chunk_length = max_chunk_length ,
3507
3537
max_overlap = max_overlap ,
@@ -3519,6 +3549,7 @@ def semantic_search_input(self,
3519
3549
search_connection_name : str ,
3520
3550
collection : str ,
3521
3551
query : Optional [str ] = None ,
3552
+ ai_connection_name : Optional [str ] = "" ,
3522
3553
embeddings_model : Optional
3523
3554
[Union [str , OpenAIModels ]]
3524
3555
= OpenAIModels .DefaultEmbeddingsModel ,
@@ -3552,6 +3583,14 @@ def semantic_search_input(self,
3552
3583
:param collection: The name of the collection or table to search or
3553
3584
store.
3554
3585
: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.
3555
3594
:param embeddings_model: The deployment name or model name for OpenAI
3556
3595
Embeddings. The default value is "text-embedding-ada-002".
3557
3596
:param chat_model: The deployment name or model name of OpenAI Chat
@@ -3592,6 +3631,7 @@ def decorator():
3592
3631
search_connection_name = search_connection_name ,
3593
3632
collection = collection ,
3594
3633
query = query ,
3634
+ ai_connection_name = ai_connection_name ,
3595
3635
embeddings_model = embeddings_model ,
3596
3636
chat_model = chat_model ,
3597
3637
system_prompt = system_prompt ,
@@ -3615,6 +3655,7 @@ def embeddings_store_output(self,
3615
3655
input_type : InputType ,
3616
3656
store_connection_name : str ,
3617
3657
collection : str ,
3658
+ ai_connection_name : Optional [str ] = "" ,
3618
3659
embeddings_model : Optional
3619
3660
[Union [str , OpenAIModels ]]
3620
3661
= OpenAIModels .DefaultEmbeddingsModel ,
@@ -3640,6 +3681,14 @@ def embeddings_store_output(self,
3640
3681
:param store_connection_name: The name of an app setting or environment
3641
3682
variable which contains a vectore store connection setting value
3642
3683
: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.
3643
3692
:param model: @deprecated. Use embeddings_model instead. The model
3644
3693
parameter is unused and will be removed in future versions.
3645
3694
:param embeddings_model: The deployment name or model name for OpenAI
@@ -3666,6 +3715,7 @@ def decorator():
3666
3715
input_type = input_type ,
3667
3716
store_connection_name = store_connection_name ,
3668
3717
collection = collection ,
3718
+ ai_connection_name = ai_connection_name ,
3669
3719
embeddings_model = embeddings_model ,
3670
3720
max_chunk_length = max_chunk_length ,
3671
3721
max_overlap = max_overlap ,
0 commit comments