Skip to content

Commit 48e8f73

Browse files
author
patched.codes[bot]
committed
Patched patchwork/steps/CallLLM/typed.py
1 parent a291de2 commit 48e8f73

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

patchwork/steps/CallLLM/typed.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing_extensions import Annotated, Dict, List, TypedDict
1+
from typing_extensions import Annotated, Dict, List, TypedDict, Literal
22

33
from patchwork.common.constants import TOKEN_URL
44
from patchwork.common.utils.step_typing import StepTypeConfig
@@ -12,6 +12,13 @@ class CallLLMInputs(TypedDict, total=False):
1212
allow_truncated: Annotated[bool, StepTypeConfig(is_config=True)]
1313
model_args: Annotated[str, StepTypeConfig(is_config=True)]
1414
client_args: Annotated[str, StepTypeConfig(is_config=True)]
15+
model_max_tokens: Annotated[
16+
int | Literal[-1],
17+
StepTypeConfig(
18+
is_config=True,
19+
description="Maximum number of tokens to generate. Use -1 to use maximum available tokens for the model."
20+
)
21+
]
1522
openai_api_key: Annotated[
1623
str,
1724
StepTypeConfig(

0 commit comments

Comments
 (0)