diff --git a/azure/functions/decorators/constants.py b/azure/functions/decorators/constants.py index 0948bc58..2787cb27 100644 --- a/azure/functions/decorators/constants.py +++ b/azure/functions/decorators/constants.py @@ -33,7 +33,7 @@ ACTIVITY_TRIGGER = "activityTrigger" ENTITY_TRIGGER = "entityTrigger" DURABLE_CLIENT = "durableClient" -ASSISTANT_SKILLS_TRIGGER = "assistantSkillsTrigger" +ASSISTANT_SKILL_TRIGGER = "assistantSkillTrigger" TEXT_COMPLETION = "textCompletion" ASSISTANT_QUERY = "assistantQuery" EMBEDDINGS = "embeddings" diff --git a/azure/functions/decorators/openai.py b/azure/functions/decorators/openai.py index 546a87e4..df459c1c 100644 --- a/azure/functions/decorators/openai.py +++ b/azure/functions/decorators/openai.py @@ -1,6 +1,6 @@ from typing import Optional -from azure.functions.decorators.constants import (ASSISTANT_SKILLS_TRIGGER, +from azure.functions.decorators.constants import (ASSISTANT_SKILL_TRIGGER, TEXT_COMPLETION, ASSISTANT_QUERY, EMBEDDINGS, EMBEDDINGS_STORE, @@ -27,7 +27,7 @@ class AssistantSkillTrigger(Trigger): @staticmethod def get_binding_name() -> str: - return ASSISTANT_SKILLS_TRIGGER + return ASSISTANT_SKILL_TRIGGER def __init__(self, name: str, diff --git a/tests/decorators/test_openai.py b/tests/decorators/test_openai.py index 9727890f..f2ebdaca 100644 --- a/tests/decorators/test_openai.py +++ b/tests/decorators/test_openai.py @@ -10,7 +10,7 @@ class TestOpenAI(unittest.TestCase): - def test_assistant_skills_trigger_valid_creation(self): + def test_assistant_skill_trigger_valid_creation(self): trigger = AssistantSkillTrigger(name="test", function_description="description", function_name="test_function_name", @@ -19,7 +19,7 @@ def test_assistant_skills_trigger_valid_creation(self): data_type=DataType.UNDEFINED, dummy_field="dummy") self.assertEqual(trigger.get_binding_name(), - "assistantSkillsTrigger") + "assistantSkillTrigger") self.assertEqual( trigger.get_dict_repr(), {"name": "test", "functionDescription": "description", @@ -27,7 +27,7 @@ def test_assistant_skills_trigger_valid_creation(self): "parameterDescriptionJson": "test_json", "model": OpenAIModels.DefaultChatModel, "dataType": DataType.UNDEFINED, - 'type': 'assistantSkillsTrigger', + 'type': 'assistantSkillTrigger', 'dummyField': 'dummy', "direction": BindingDirection.IN, })