sticklight-io / declarai

A Pythonic integration for LLMs.

Home Page:https://declarai.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Task ignores argument default values

giladbarnea opened this issue · comments

Reproduce:

import declarai

gpt_35 = declarai.openai(model="gpt-3.5-turbo")

default_ranking_criterion = "urgency"

@gpt_35.task 
def rank_by(message: str, ranking_criterion: str = default_ranking_criterion) -> int:
    """
    Rank the provided message by the given ranking criterion.
    Ranks range from 1-5, with 5 being the highest.
    :param message: The message to rank
    :return: The rank from 1-5
    """

rank_by(message="The server is down!")
image