Skip to content

Python: Fix typo #6409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
# when the function_call parameter is set to "auto" the model will decide which function to use, if any.
# if you only want to use a specific function, set the name of that function in this parameter,
# the format for that is 'PluginName-FunctionName', (i.e. 'math-Add').
# if the model or api version do not support this you will get an error.
# if the model or api version does not support this you will get an error.

# Note: the number of responses for auto inoking tool calls is limited to 1.
# Note: the number of responses for auto invoking tool calls is limited to 1.
# If configured to be greater than one, this value will be overridden to 1.
execution_settings = OpenAIChatPromptExecutionSettings(
service_id="chat",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async def main():
service_id=service_id
)
settings.function_call_behavior = FunctionCallBehavior.EnableFunctions(
auto_invoke=True, filters={"include_plugin": ["weather", "time"]}
auto_invoke=True, filters={"included_plugins": ["weather", "time"]}
)

print(
Expand All @@ -83,7 +83,7 @@ async def main():
service_id=service_id
)
settings.function_call_behavior = FunctionCallBehavior.EnableFunctions(
auto_invoke=True, filters={"include_plugin": ["weather", "time"]}
auto_invoke=True, filters={"included_plugins": ["weather", "time"]}
)

result = kernel.invoke_prompt_stream(
Expand All @@ -106,7 +106,7 @@ async def main():
service_id=service_id
)
settings.function_call_behavior = FunctionCallBehavior.EnableFunctions(
auto_invoke=True, filters={"include_plugin": ["weather", "time"]}
auto_invoke=True, filters={"included_plugins": ["weather", "time"]}
)
chat_history.add_user_message(
"Given the current time of day and weather, what is the likely color of the sky in Boston?"
Expand Down
Loading