Commit Graph

17 Commits

Author SHA1 Message Date
Simon Larsen
39ff367afe
refactor: Update LLMBase.ts and OpenAI.ts to import CopilotActionPrompt from the new location 2024-09-04 14:52:32 +01:00
Simon Larsen
012c9299ed
refactor: Fix typo in CopilotActionType enum values and update related code 2024-09-04 12:50:46 +01:00
Simon Larsen
0559997c01
refactor: Update LlmType enum values and improve error message for OneUptime LLM server not reachable 2024-09-04 11:51:56 +01:00
Simon Larsen
5e486e4ce6
chore: Update LlmType enum and related code 2024-07-10 21:33:38 +01:00
Simon Larsen
43a22d9973
chore: Update LlmType enum and related code
- Update LlmType enum values to match the new naming convention.
- Update references to Llama to LLM in various files.
- Update CopilotActionsBase.ts to set the llmType to LLM in the constructor.
- Update Init.ts to use the llmServerUrl instead of llamaServerUrl.
- Update LLM.ts to use LLMServer class instead of Llama class.
- Add OpenAI class and update LLM.ts to handle OpenAI LLM type.
- Update Config.ts to handle OpenAI API key and model.
- Add OpenAI.ts file to handle OpenAI LLM responses.
2024-07-10 18:36:00 +01:00
Simon Larsen
bd8ed04e1b
refactor: Extract code from CopilotActionBase to separate functions
This commit extracts code from the `CopilotActionBase.ts` file into separate functions for better code organization and readability. The extracted code includes the logic for ordering SSL certificates, checking the order status, and handling domain removal. This refactoring improves the maintainability and modularity of the codebase.
2024-06-26 19:33:01 +01:00
Simon Larsen
a4c5354152
refactor: Improve comments in ImproveComments.ts 2024-06-23 20:58:21 +01:00
Simon Larsen
d22b40e91a
refactor: Improve comments in ImproveComments.ts 2024-06-23 18:00:16 +01:00
Simon Larsen
27ef73be20
refactor: Execute CopilotAction and update currentFixCount
This commit modifies the `Copilot/Init.ts` file to execute the `CopilotActionService.execute` method for each event that needs fixing. It also updates the `currentFixCount` variable to keep track of the number of fixes performed. This refactor improves the functionality of the Copilot service by ensuring that all necessary actions are executed and the fix count is accurately maintained.
2024-06-22 13:34:54 +01:00
Simon Larsen
369bdfc841
```text
refactor: Add FixGrammarAndSpelling action to CopilotActionType and CopilotActions

This commit adds the `FixGrammarAndSpelling` action to the `CopilotActionType` enum and the `CopilotActions` dictionary. The action is now available for execution in the Copilot service. This enhancement improves the codebase by providing a new action that can be used to fix grammar and spelling errors in the application.
2024-06-22 12:50:54 +01:00
Simon Larsen
6be976102c
refactor: Remove commented out code and unused imports 2024-06-21 18:53:11 +01:00
Simon Larsen
6e5081a4e3
refactor: Remove unused CopilotEvent and CopilotEventService 2024-06-20 12:30:06 +01:00
Simon Larsen
dd93998296
refactor: Remove unused CopilotEvent and CopilotEventService
This commit removes the unused CopilotEvent enum and CopilotEventService class. These files are no longer needed in the codebase and can be safely deleted. Removing unused code improves the maintainability and reduces the complexity of the project.
2024-06-20 11:41:04 +01:00
Simon Larsen
98fbbe301e
refactor: Update variable types in Copilot/Init.ts and Copilot/Utils/Prompts.ts 2024-06-19 21:03:54 +01:00
Simon Larsen
27213fa235
refactor: Add FixNumberOfCodeEventsInEachRun constant to Config.ts
This commit adds the FixNumberOfCodeEventsInEachRun constant to the Config.ts file. The constant is set to 5 and is used to determine the number of code events to fix in each run. This change improves the flexibility and configurability of the code events handling in the application.
2024-06-19 16:29:25 +01:00
Simon Larsen
baa98e333e
refactor: Update LlmType export in Config.ts and LlmType.ts 2024-06-19 15:36:24 +01:00
Simon Larsen
ccdcf2c679
refactor: Update Llama app to use local model path instead of model ID 2024-06-19 15:06:36 +01:00