Skip to content

Commit

Permalink
revert action planner sample
Browse files Browse the repository at this point in the history
  • Loading branch information
awharrison-28 committed Oct 9, 2023
1 parent b62e175 commit 4d536d7
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions python/samples/kernel-syntax-examples/action_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,18 @@

import semantic_kernel as sk
from semantic_kernel.connectors.ai.open_ai import (
AzureChatCompletion,
OpenAIChatCompletion,
)
from semantic_kernel.core_skills import FileIOSkill, MathSkill, TextSkill, TimeSkill
from semantic_kernel.planning import ActionPlanner


async def main():
kernel = sk.Kernel()
deployment_name, api_key, endpoint = sk.azure_openai_settings_from_dot_env()
deployment_name = "gpt-35-turbo"
api_key, org_id = sk.openai_settings_from_dot_env()

kernel.add_chat_service(
"chat-gpt",
AzureChatCompletion(
deployment_name=deployment_name, endpoint=endpoint, api_key=api_key
),
"chat-gpt", OpenAIChatCompletion("gpt-3.5-turbo", api_key, org_id)
)
kernel.import_skill(MathSkill(), "math")
kernel.import_skill(FileIOSkill(), "fileIO")
Expand Down

0 comments on commit 4d536d7

Please sign in to comment.