Skip to content

Task ignores argument default values #134

@giladbarnea

Description

@giladbarnea

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginternalInternal core code stuff

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions