Skip to content

Commit

Permalink
Update bot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aacebo committed Feb 5, 2024
1 parent 744b07f commit 1006f03
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions python/samples/04.ai.c.actionMapping.lightBot/src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
Description: initialize the app and listen for `message` activitys
"""

import os
import sys
import time
import traceback
Expand All @@ -15,12 +14,8 @@
from botbuilder.schema import Activity
from teams import (
ActionTurnContext,
AIHistoryOptions,
AIOptions,
Application,
ApplicationOptions,
OpenAIPlanner,
OpenAIPlannerOptions,
ActionTypes,
)

Expand All @@ -42,17 +37,17 @@
app_id=config.app_id,
app_password=config.app_password,
),
ai=AIOptions(
prompt="chatGPT",
planner=OpenAIPlanner(
OpenAIPlannerOptions(
api_key=config.open_ai_key,
default_model="gpt-3.5-turbo",
prompt_folder=f"{os.getcwd()}/src/prompts",
)
),
history=AIHistoryOptions(assistant_history_type="text"),
),
# ai=AIOptions(
# prompt="chatGPT",
# planner=OpenAIPlanner(
# OpenAIPlannerOptions(
# api_key=config.open_ai_key,
# default_model="gpt-3.5-turbo",
# prompt_folder=f"{os.getcwd()}/src/prompts",
# )
# ),
# history=AIHistoryOptions(assistant_history_type="text"),
# ),
)
)

Expand Down

0 comments on commit 1006f03

Please sign in to comment.