-
Notifications
You must be signed in to change notification settings - Fork 33
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
[WIP] v2 #1005
Open
Undertone0809
wants to merge
10
commits into
main
Choose a base branch
from
v2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[WIP] v2 #1005
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Add information about the built-in log system - Include log storage path for macOS This update provides clearer documentation on where and how logs are stored, including the addition of the macOS path.
- Remove dependency on BaseLLM class - Update description to clarify input requirements - Simplify initialization method - Modify _run method to directly evaluate expressions This refactor simplifies the Calculator class by removing unnecessary dependencies and clarifying its purpose. It now directly evaluates mathematical expressions without relying on an LLM for input processing.
Undertone0809
requested review from
ruanrongman,
Luffy2004-c,
Hizeros and
longsihua2003
October 23, 2024 09:36
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
- Remove caching logic from Config class - Simplify OpenAI API key retrieval to only use environment variables - Update ErnieBot API wrapper to use listdict_messages directly - Remove retry logic and caching from API key retrieval methods This refactor improves code readability and maintainability by removing unnecessary caching and retry mechanisms, simplifying the API key retrieval process, and updating the ErnieBot API wrapper to use a more straightforward approach.
- Removed logging of model configuration to avoid redundancy. chore: remove OpenAI key management module - Deleted the `openai_key_pool.py` file and related imports. - Removed associated test cases and references. This change simplifies the codebase by eliminating unused functionality. chore: update contact email in core utilities - Changed contact email from `[email protected]` to `[email protected]`. chore: reorganize imports in utility module - Removed unused imports from `__init__.py`. - Ensured only necessary modules are exposed in the `__all__` list. This change improves code readability and maintainability.
- Change domain from 'www.promptulate.cn' to 'promptulate.cn' This change updates the custom domain configuration to reflect the new domain name. It ensures that the project is accessible via the correct domain without the 'www' prefix.
- Add 'Version' dropdown to navigation bar - Update home page title to 'Promptulate v2' This commit updates the documentation to reflect the changes for the v2 release, including adding version-specific links in the navigation bar and updating the home page title.
- Delete conversation logic and prompt templates - Remove schema definitions for conversation framework - Deprecate Conversation class in favor of new approach This refactor removes the existing conversation framework to streamline the codebase and prepare for integration with a new system or approach. The changes include deleting the main conversation logic, prompt templates, and schema definitions, and marking the Conversation class as deprecated.
- Change output_schema type in chat.py to Type[BaseModel] - Update parse_content return type in _litellm.py to Tuple[str, dict] These changes improve type safety and align with best practices for type annotations in Python.
- Move MESSAGE_TYPE dictionary to MessageSet class - Remove unused init_chat_message_history function This refactor improves code organization by centralizing message type mappings within the MessageSet class and removes dead code, enhancing maintainability.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.