Skip to content
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

Merged
merged 3 commits into from
Dec 9, 2024
Merged

chore: bump version #155

merged 3 commits into from
Dec 9, 2024

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

@@ -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
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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants