-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: bump version #155
chore: bump version #155
Conversation
c345ffc
to
2141421
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure we want to replace dict
with lambda: {}
they both do the same but the first option is easier to read
@@ -214,9 +214,9 @@ def to_langchain_chat_prompt_template(self, additional_messages=[]): | |||
|
|||
class CustomChatPromptTemplate(ChatPromptTemplate): | |||
orig_messages: Optional[List[GenerationMessage]] = Field( | |||
default_factory=list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they both do the same thing I would keep list though (it seems easier to read)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No they do not as per the linter error:
literalai/observability/generation.py:75: error: Argument "default_factory" to "Field" has incompatible type "type[dict[Any, Any]]"; expected "Union[Callable[[], Never], Callable[[dict[str, Any]], Never]]" [arg-type]
Changes