Closed royerloic closed 2 months ago
The changes involve various modifications across multiple files, focusing on code organization, error handling improvements, and the introduction of new functionalities. Key updates include the dynamic retrieval of model lists, enhanced server port management, and refined error handling in test cases. Additionally, several functions have been updated to allow for better usability, including specifying plugins when opening files in Napari.
Files | Change Summary |
---|---|
src/napari_chatgpt/chat_server/static/marked-highlight.js , src/napari_chatgpt/utils/anthropic/model_list.py |
Adjusted import statements and transitioned to function expressions for better organization. |
src/napari_chatgpt/_widget.py , src/napari_chatgpt/utils/anthropic/model_list.py |
Replaced manual model list population with dynamic retrieval functions for improved flexibility. |
src/napari_chatgpt/chat_server/chat_server.py |
Added functionality to check for available server ports, incrementing if necessary. |
src/napari_chatgpt/omega/tools/napari/file_open_tool.py , src/napari_chatgpt/utils/napari/open_in_napari.py |
Updated to allow specification of reader plugins when opening files in Napari. |
src/napari_chatgpt/utils/network/demo/port_available_demo.py , src/napari_chatgpt/utils/network/port_available.py |
Introduced new functionality for checking and demonstrating available TCP ports. |
src/napari_chatgpt/utils/openai/model_list.py |
Added postprocess_openai_model_list() for filtering and sorting OpenAI models. |
src/napari_chatgpt/utils/python/test/python_lang_utils_test.py |
Updated test assertions for numpy.zeros_like to accommodate signature changes. |
src/napari_chatgpt/utils/web/test/duckduckgo_test.py , src/napari_chatgpt/utils/web/test/google_test.py , src/napari_chatgpt/utils/web/test/metasearch_test.py , src/napari_chatgpt/utils/web/test/wikipedia_test.py |
Added error handling for rate limits in various web search tests. |
sequenceDiagram
participant User
participant Server
participant PluginManager
participant ModelRetriever
User->>Server: Start server
Server->>PluginManager: Check port availability
PluginManager-->>Server: Return available port
Server->>User: Server started on port
User->>ModelRetriever: Request model list
ModelRetriever-->>User: Return available models
π° In the code, I hop and play,
With plugins and models, bright as day.
From ports to highlights, all in a row,
My changes make everything flow!
So letβs rejoice, with a leap and a bound,
In this coding garden, joy is found! πΌ
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Attention: Patch coverage is 22.22222%
with 231 lines
in your changes missing coverage. Please review.
Project coverage is 37.35%. Comparing base (
1764486
) to head (9a90f70
). Report is 19 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Refactor