Skip to content

Commit 60ed474

Browse files
Updated wrapper
1 parent cc71760 commit 60ed474

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

backend/llm.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ def llm_completion(question):
5353
except Exception as e:
5454
return f"Error calling GROQ API: {str(e)}"
5555

56+
def chat_with_groq(question):
57+
"""Backward-compatible wrapper expected by tests."""
58+
return llm_completion(question)
59+
5660
if __name__ == "__main__":
5761
question = input("Enter your question: ")
5862
answer = llm_completion(question)

0 commit comments

Comments
 (0)