https://github.com/againstentropy/trio-ollama
https://github.com/againstentropy/trio-ollama
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/againstentropy/trio-ollama
- Owner: AgainstEntropy
- Created: 2024-08-10T20:34:44.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-11T18:24:51.000Z (almost 2 years ago)
- Last Synced: 2025-02-12T09:58:18.784Z (over 1 year ago)
- Language: TypeScript
- Size: 160 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Trio-Ollama
Trio consists of three parts: to-do, note and chat!
## Getting Started
### Package installation
```shell
npm i
pip install -r requirements.txt
```
### Database ProtoType
Create a `.env.local` file first and write in
```
NEXT_PORT=3030
FASTAPI_PORT=8080
DATABASE_URL=sqlite.db
```
then run the following line:
```shell
npx drizzle-kit push:sqlite
```
### Start Trio
```shell
python src-fastapi/main_ollama.py # start FastAPI backend
npm run dev # start next.js frontend
```
## Trouble Shooting
To make `ollama` works with `FastAPI`, one needs to import `TypedDict` from `typing_extensions` (instead of `typing`), maybe via adding the following line to `ollama._types`:
```python
from typing_extensions import TypedDict
```