Skip to content

Commit

Permalink
fix missing param
Browse files Browse the repository at this point in the history
  • Loading branch information
lakhoune committed Mar 3, 2024
1 parent ba56499 commit 15bcf87
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bot_blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,13 @@ def get_custom_improvements(botName):
return {
"error": "event-log-url parameter is missing"
}, 400
event_log = fetch_event_log(botName, event_log_generator_url)
if 'bot-manager-url' not in request.args:
return {
"error": "bot-manager-url parameter is missing"
}, 400
bot_manager_url = request.args['bot-manager-url']
event_log = fetch_event_log(
botName, event_log_generator_url, botManagerUrl=bot_manager_url)

prompt = llm.custom_prompt(inputPrompt, average_intent_confidence_df,
event_log, net, initial_marking, final_marking)
Expand Down

0 comments on commit 15bcf87

Please sign in to comment.