Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Conversation

@clementsirieix
Copy link
Contributor

@clementsirieix clementsirieix commented Dec 9, 2024

Changes

  • Bump the sdk version
  • Fix the linter

@clementsirieix clementsirieix self-assigned this Dec 9, 2024
@clementsirieix clementsirieix force-pushed the clement/bump-version-09-12 branch from c345ffc to 2141421 Compare December 9, 2024 10:21
Copy link
Contributor

@Matthieu-OD Matthieu-OD left a 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


class CustomChatPromptTemplate(ChatPromptTemplate):
orig_messages: Optional[List[GenerationMessage]] = Field(
default_factory=list
Copy link
Contributor

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)

Copy link
Contributor Author

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]

@clementsirieix clementsirieix merged commit cd3dc94 into main Dec 9, 2024
2 checks passed
@clementsirieix clementsirieix deleted the clement/bump-version-09-12 branch December 9, 2024 12:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants