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

feat:delete ollama models #458

Merged
merged 17 commits into from
Oct 18, 2024

Conversation

Bhavyajain21
Copy link
Collaborator

@Bhavyajain21 Bhavyajain21 commented Oct 17, 2024

fixes #452
/claim #452

@Bhavyajain21 Bhavyajain21 requested review from samlhuillier and joseplayero and removed request for samlhuillier October 17, 2024 04:45
Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This pull request implements the ability to delete Ollama models, addressing issue #452 by adding new IPC handlers and UI components for model deletion.

  • Added new IPC handlers in electron/main/llm/ipcHandlers.ts for fetching available models and deleting LLMs
  • Exposed new functions deleteLLM and getAvailableModels to the renderer process in electron/preload/index.ts
  • Updated DefaultLLMSelector component in src/components/Settings/LLMSettings/DefaultLLMSelector.tsx to include a delete option for Ollama models
  • Modified useLLMConfigs hook in src/components/Settings/LLMSettings/hooks/use-llm-configs.ts to allow direct updates to LLM configurations
  • Consider improving error handling and user feedback for model deletion operations

4 file(s) reviewed, 7 comment(s)
Edit PR Review Bot Settings | Greptile

electron/main/llm/ipcHandlers.ts Outdated Show resolved Hide resolved
electron/main/llm/ipcHandlers.ts Outdated Show resolved Hide resolved
src/components/Settings/LLMSettings/DefaultLLMSelector.tsx Outdated Show resolved Hide resolved
src/components/Settings/LLMSettings/DefaultLLMSelector.tsx Outdated Show resolved Hide resolved
src/components/Settings/LLMSettings/DefaultLLMSelector.tsx Outdated Show resolved Hide resolved
@Bhavyajain21 Bhavyajain21 changed the title feat/delete ollama models feat:delete ollama models Oct 17, 2024
src/components/Settings/LLMSettings/DefaultLLMSelector.tsx Outdated Show resolved Hide resolved
electron/main/llm/ipcHandlers.ts Outdated Show resolved Hide resolved
electron/main/llm/ipcHandlers.ts Outdated Show resolved Hide resolved
electron/main/llm/ipcHandlers.ts Outdated Show resolved Hide resolved
electron/main/llm/ipcHandlers.ts Outdated Show resolved Hide resolved
src/components/Settings/LLMSettings/DefaultLLMSelector.tsx Outdated Show resolved Hide resolved
@Bhavyajain21
Copy link
Collaborator Author

@joseplayero , I've worked on the addressed review comments. Please take a look!

@joseplayero joseplayero merged commit 393805d into reorproject:main Oct 18, 2024
4 checks passed
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.

allow for deletion of ollama models
2 participants