Skip to content

Commit

Permalink
fix: linters
Browse files Browse the repository at this point in the history
  • Loading branch information
dvilelaf committed May 31, 2024
1 parent 2aa82ce commit 274b07f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/test_prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@


def timer(func):
"""Timer decorator"""

def wrapper(*args, **kwargs):
"""Wrapper"""
start_time = time.time()
result = func(*args, **kwargs)
end_time = time.time()
Expand All @@ -53,6 +56,7 @@ def wrapper(*args, **kwargs):

@timer
def run_llm():
"""Run LLM"""
output = llm.create_chat_completion(
messages=[
{"role": "system", "content": SYSTEM_PROMPTS[-1]}, # type: ignore
Expand Down

0 comments on commit 274b07f

Please sign in to comment.