We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2319d6 commit a13f279Copy full SHA for a13f279
1 file changed
clarifai_datautils/text/prompt_factory.py
@@ -2,7 +2,7 @@
2
3
import json
4
from enum import Enum
5
-from typing import Any, List, Optional
+from typing import Any, Optional
6
7
import requests
8
from jinja2.sandbox import ImmutableSandboxedEnvironment
@@ -381,8 +381,8 @@ def gemini_text_image_pt(messages: list):
381
382
def hf_chat_template(model: str,
383
messages: list,
384
- hf_token: str,
385
- chat_template: Optional[Any] = None) -> List[str, Any]:
+ hf_token: Optional[str] = None,
+ chat_template: Optional[Any] = None):
386
## get the tokenizer config from huggingface
387
bos_token = ""
388
eos_token = ""
0 commit comments