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

LocalAI Integration #254

Closed
wants to merge 3 commits into from
Closed

Conversation

malpou
Copy link
Contributor

@malpou malpou commented Sep 8, 2023

This draft PR introduces support for integrating LocalAI into our application. Users who wish to run the LocalAI model locally can now do so with ease, leveraging the instructions and settings provided in our readme.

Readme Additions:

Use LocalAI

We have added support to use LocalAI as a model. This is a free and open source model that you can run locally. To use this model, you need to have LocalAI running on your machine.

Setup LocalAI

This is the way our team configured our enviroment to run LocalAI. You can follow these steps here:

  1. Follow the LocalAI Getting Started Example
  2. Set the OCO_OPENAI_BASE_PATH to the path of your LocalAI instance. For example, if you are running LocalAI on port 8080, you would set the OCO_OPENAI_BASE_PATH to http://localhost:8080/v1.
  3. Set the OCO_MODEL to whatever model you're using following the getting started example the value will be ggml-gpt4all-j.
  4. Now you can use OpenCommit with LocalAI!

Notes:
I am currently facing some challenges with the LocalAi container, so the full functionality has not been tested exhaustively. I'm trying to resolve the issue and awaiting a response from the team from LocalAi on what could be causing this issue.
Since I've just been following the guide in their documentation. LocalAi Issue

But Local model support should be arriving soon.

Any contributions or feedback on this draft is highly welcome.

Issue #236

…native to OpenAI models

🔧 fix(api.ts): improve error message when apiKey is missing and basePath is not set to localhost or 127.0.0.1
…x link formatting

The commit adds clarifications and updates to the instructions for using the LocalAI model. It also fixes the formatting of the link to the LocalAI repository.
@malpou malpou changed the base branch from master to dev September 8, 2023 14:50
@di-sukharev
Copy link
Owner

@malpou you are superhero!

let me know when you are ready to test this and if any help is needed.

@malpou
Copy link
Contributor Author

malpou commented Sep 9, 2023

Will do, just waiting atm 😀

@github-actions
Copy link

Stale pull request message

@jaroslaw-weber
Copy link
Contributor

No activity? Could i work on itegrating ollama instead? I was able to make it work with another repo.
https://github.com/insulineru/ai-commit/pull/18/files

@intothemoonlite
Copy link

ollama is getting very popular! would be good to have

@di-sukharev
Copy link
Owner

we now have ollama

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