Skip to content

Conversation

@louis-jan
Copy link
Contributor

Describe Your Changes

This is to synchronize the latest changes from the main branch into the development branch.

Self Checklist

This pull request includes several changes to enhance the functionality and organization of the codebase, particularly focusing on inference handling, engine management, and provider configuration. The most important changes include modifying error handling in the requestInference function, updating engine configuration files, and introducing a new SWRConfigProvider for caching.

Inference Handling:

Engine Management:

  • extensions/engine-management-extension/models/anthropic.json: Enabled streaming for the anthropic engine by setting "stream": true in the inference parameters. [1] [2]
  • extensions/engine-management-extension/models/martian.json, extensions/engine-management-extension/models/mistral.json, extensions/engine-management-extension/models/nvidia.json, extensions/engine-management-extension/models/openrouter.json: Renamed the parameters field to inference_params for consistency across different models. [1] [2] [3] [4] [5] [6]
  • extensions/engine-management-extension/resources/anthropic.json, extensions/engine-management-extension/resources/mistral.json: Simplified the response transformation templates. [1] [2]

Provider Configuration:

Hook and Atom Usage:

  • web/containers/Layout/BottomPanel/SystemMonitor/TableActiveModel/index.tsx, web/containers/ModelDropdown/index.tsx, web/containers/Providers/DataLoader.tsx, web/containers/Providers/ModelHandler.tsx: Replaced direct atom usage with the useGetEngines hook for better engine management. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14]

@github-actions
Copy link
Contributor

Barecheck - Code coverage report

Total: 67.98%

Your code coverage diff: -1.26% ▾

Uncovered files and lines
FileLines
core/src/browser/extensions/engines/helpers/sse.ts39-40, 58-60, 88-89, 99-101, 105, 111, 118
web/containers/Layout/BottomPanel/SystemMonitor/TableActiveModel/index.tsx51-53
web/containers/ModelDropdown/index.tsx126-127, 137, 146, 150, 152, 154-155, 157-158, 160-163, 165, 187-188, 198, 202, 217-218, 225-228, 230, 232, 251, 256, 266, 273, 276-277, 298, 322, 345, 366, 375, 381, 389, 392, 394, 398, 400-405, 408, 411, 468-469, 471, 497, 505, 507, 532, 537-538, 540, 544-546, 548-549, 551, 561-564, 595, 603, 605
web/hooks/useActiveModel.ts45, 49-50, 53-54, 56, 58, 60, 62, 64, 66-67, 72, 78, 82-83, 92, 94, 97-99, 102-103, 108, 115, 121-122, 125, 130-131, 137-139, 141-142, 144, 146-148, 156-158, 160, 162-163
web/hooks/useRecommendedModel.ts39, 52, 59-60, 62-63, 66, 68-70, 74, 76-77, 81, 85-87, 90-91, 94, 97-98, 101
web/hooks/useStarterScreen.ts15-16, 18, 21, 23-24, 26, 28, 32-33, 37, 39, 43
web/screens/Thread/ThreadCenterPanel/AssistantSetting/index.tsx45, 49, 52, 56-57, 61
web/screens/Thread/ThreadCenterPanel/ChatBody/EmptyThread/index.tsx18-21, 23-24, 35
web/screens/Thread/ThreadCenterPanel/ChatBody/OnDeviceStarterScreen/index.tsx66, 99, 105, 129, 150-151, 153, 176, 185, 187, 215, 238, 240, 271, 297, 305, 309, 313, 318-319, 348
web/screens/Thread/ThreadCenterPanel/ChatInput/index.tsx79, 85, 91, 96, 110-114, 124-126, 131, 134, 160, 169, 175, 177, 240-242, 260-262, 291, 313, 365-367, 369-371, 373-375, 377-379, 392
web/screens/Thread/ThreadCenterPanel/LoadModelError/index.tsx17-21, 23-24, 35-37, 40, 59
web/screens/Thread/ThreadRightPanel/index.tsx89, 102, 106, 109, 114-118, 122-123, 129, 133, 136, 162-163, 177, 182, 184-185, 187, 191, 195, 199, 205, 209, 248
web/utils/messageRequestBuilder.ts37-38, 50-53, 55, 62, 67-68, 75, 80, 95-96, 101, 117-118, 122-123, 128, 131, 137-141, 143, 145, 147, 155, 158, 162

@github-actions
Copy link
Contributor

This is the build for this pull request. You can download it from the Artifacts section here: Build URL.

@louis-jan louis-jan merged commit 105a1c3 into dev Jan 20, 2025
40 checks passed
@github-actions github-actions bot added this to the v0.5.14 milestone Jan 20, 2025
@hantran-co hantran-co modified the milestones: v0.5.14, v0.5.15 Jan 21, 2025
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.

4 participants