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

categorisation via locally hosted llm service such as ollama #166

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ChristopherJohnston
Copy link
Contributor

@ChristopherJohnston ChristopherJohnston commented Jun 4, 2024

Adding support to use a non-chatGPT service for category extract from title. For example, https://github.com/ollama/ollama provides an openai-like REST API for running against downloaded models such as llama3.

Modified the expense form category extraction method and added LOCAL_AI_MODEL and LOCAL_AI_URL env variables, e.g.:

NEXT_PUBLIC_ENABLE_CATEGORY_EXTRACT=true
LOCAL_AI_URL=http://127.0.0.1:11434/api/chat
LOCAL_AI_MODEL=llama3

When set, the messages are sent to this service instead of OpenAI/ChatGPT.

@ChristopherJohnston
Copy link
Contributor Author

@scastiel I think this one is ready to go now

@ChristopherJohnston
Copy link
Contributor Author

@scastiel this is ready to go unless you have comments.

@ChristopherJohnston
Copy link
Contributor Author

@scastiel bump

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.

1 participant