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

release: 1.72.0 #326

Merged
merged 2 commits into from
Mar 1, 2025
Merged

Conversation

stainless-app[bot]
Copy link
Contributor

@stainless-app stainless-app bot commented Mar 1, 2025

Automated Release PR

1.72.0 (2025-03-01)

Full Changelog: v1.71.0...v1.72.0

Features


This pull request is managed by Stainless's GitHub App.

The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.

For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.

🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions


EntelligenceAI PR Summary

The Julep Python SDK has been updated from version 1.71.0 to 1.72.0, incorporating API and structural changes. Key updates include the removal of the message_param module, now integrated into session_chat_params, and a simplification of the RecallOptions type across multiple files. Test cases have been adjusted for compatibility, and documentation such as the changelog and OpenAPI specification has been updated to reflect these changes.

@stainless-app stainless-app bot merged commit 1daf5ca into main Mar 1, 2025
@stainless-app stainless-app bot deleted the release-please--branches--main--changes--next branch March 1, 2025 10:13
Copy link
Contributor Author

stainless-app bot commented Mar 1, 2025

Copy link

Walkthrough

The pull request updates the Julep Python SDK from version 1.71.0 to 1.72.0, reflecting API and internal structure changes. Key modifications include the removal of the message_param module, with its functionality now integrated into session_chat_params. The RecallOptions type is simplified across several files, and test cases are updated to ensure compatibility with these changes. Additionally, the changelog and OpenAPI specification are updated to reflect these enhancements.

Changes

File(s) Summary
.release-please-manifest.json, pyproject.toml, src/julep/_version.py Updated version from 1.71.0 to 1.72.0.
src/julep/types/message_param.py, src/julep/types/session_chat_params.py Removed MessageParam and integrated its functionality into session_chat_params.
src/julep/types/session.py, src/julep/types/session_create_or_update_params.py, src/julep/types/session_create_params.py, src/julep/types/session_reset_params.py, src/julep/types/session_update_params.py Simplified RecallOptions type.
tests/api_resources/test_sessions.py Updated test cases to include alpha in recall_options.
CHANGELOG.md, .stats.yml, api.md Added changelog entry for version 1.72.0, updated OpenAPI URL, and refactored import statements.
Entelligence.ai can learn from your feedback. Simply add 👍 / 👎 emojis to teach it your preferences. More shortcuts below

Emoji Descriptions:

  • ⚠️ Potential Issue - May require further investigation.
  • 🔒 Security Vulnerability - Fix to ensure system safety.
  • 💻 Code Improvement - Suggestions to enhance code quality.
  • 🔨 Refactor Suggestion - Recommendations for restructuring code.
  • ℹ️ Others - General comments and information.

Interact with the Bot:

  • Send a message or request using the format:
    @bot + *your message*
Example: @bot Can you suggest improvements for this code?
  • Help the Bot learn by providing feedback on its responses.
    @bot + *feedback*
Example: @bot Do not comment on `save_auth` function !

Comment on lines 137 to +138

tools: Iterable[Tool]
tools: Optional[Iterable[Tool]]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tools field in SessionChatParams was changed from Required[Iterable[Tool]] to Optional[Iterable[Tool]] which could cause runtime errors if tools are expected to be present but are missing.

📝 Committable Code Suggestion

‼️ Ensure you review the code suggestion before committing it to the branch. Make sure it replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
tools: Iterable[Tool]
tools: Optional[Iterable[Tool]]
tools: Required[Iterable[Tool]]

Comment on lines 54 to 56
mode: str

num_search_messages: int

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merging all recall option types into a single RecallOptions class allows invalid combinations of fields that were previously prevented by the type system. For example, mmr_strength is only valid for vector search.

📝 Committable Code Suggestion

‼️ Ensure you review the code suggestion before committing it to the branch. Make sure it replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
mode: str
num_search_messages: int
class VectorRecallOptions(TypedDict, total=False):
mmr_strength: float
class TextRecallOptions(TypedDict, total=False):
alpha: float
confidence: float
lang: str
limit: int
max_query_length: int
metadata_filter: object
mode: str
num_search_messages: int

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants