Skip to content

Commit

Permalink
Merge pull request vanna-ai#3 from sthakur369/main
Browse files Browse the repository at this point in the history
Addressing Missing 'sql' Parameter in generate_followup_questions Method
  • Loading branch information
zainhoda authored Mar 5, 2024
2 parents 1984f65 + e3c659f commit c2e6e49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ def add_training_data():
return jsonify({"type": "error", "error": str(e)})

@app.route('/api/v0/generate_followup_questions', methods=['GET'])
@requires_cache(['df', 'question'])
def generate_followup_questions(id: str, df, question):
followup_questions = vn.generate_followup_questions(question=question, df=df)
@requires_cache(['df', 'question', 'sql'])
def generate_followup_questions(id: str, df, question, sql):
followup_questions = vn.generate_followup_questions(question=question, sql=sql, df=df)

cache.set(id=id, field='followup_questions', value=followup_questions)

Expand Down

0 comments on commit c2e6e49

Please sign in to comment.