modified: guarded_ai.py
This commit is contained in:
parent
4f7caffe17
commit
87faba6379
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ def generate_ai_feedback(category, question, user_response, tokens_for_ai):
|
|||
def provide_feedback(transition, category, question, user_response, user_language, tokens_for_ai):
|
||||
feedback = ""
|
||||
if "ai_feedback" in transition:
|
||||
tokens_for_ai += f" Provide the feedback in {user_language}. {transition.get('ai_feedback',{}).get('tokens_for_ai', '')}."
|
||||
tokens_for_ai += f" Provide the feedback in {user_language}. {transition['ai_feedback'].get('tokens_for_ai', '')}."
|
||||
ai_feedback = generate_ai_feedback(
|
||||
category, question, user_response, tokens_for_ai
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue