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

Refactor Stage 1 API and implement stage 2 API #26

Merged
merged 15 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
8709a6b
refactor: update pdf2Text to read from ArrayBuffer and integrate Llam…
TakalaWang Dec 16, 2024
dfa896a
fix: support script for pdf2text
TakalaWang Dec 17, 2024
c8ba2b6
feat: add concept generation for in individual summary stage
TakalaWang Dec 17, 2024
44f70dd
refactor: refactor chat and summary functions to use ChatCompletionMe…
TakalaWang Dec 18, 2024
8c2737b
feat: introduce LLMChatMessage and DBChatMessage types; refactor conv…
TakalaWang Dec 18, 2024
e0b242e
feat: implement conversation creation and discussion addition endpoin…
TakalaWang Dec 18, 2024
7f782ca
feat: add endpoint documentation for adding discussions in a group
TakalaWang Dec 18, 2024
5d700d1
feat: refactor add discussion endpoint to use Firestore transactions …
TakalaWang Dec 18, 2024
8ff6d6a
feat: add summarizeGroupOpinions endpoint and refactor discussion han…
TakalaWang Dec 19, 2024
82994fd
feat: refactor request data validation for discussions and summaries;…
TakalaWang Dec 19, 2024
16b8bd8
Update src/routes/api/session/[id]/group/[group_number]/add_discussio…
TakalaWang Dec 19, 2024
2086261
Update src/routes/api/session/[id]/group/[group_number]/conversations…
TakalaWang Dec 19, 2024
c0f1510
Update src/routes/api/session/[id]/group/[group_number]/conversations…
TakalaWang Dec 19, 2024
59084ab
Merge branch 'stage-2-api' of https://github.com/hinagiku-dev/Hinagik…
TakalaWang Dec 19, 2024
6014356
fix: improve error handling for missing parameters in request data va…
TakalaWang Dec 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ CLOUDFLARE_R2_SECRET_ACCESS_KEY="CLOUDFLARE_R2_SECRET_ACCESS_KEY"
CLOUDFLARE_PUBLIC_URL="https://hinagiku-dev-storage.csie.cool"

GOOGLE_APPLICATION_CREDENTIALS="service-account-file.example.json"
HUGGINGFACE_TOKEN="hf_xxx"
OPENAI_BASE_URL="https://api.openai.com/v1"
OPENAI_API_KEY=""
OPENAI_API_KEY="sk-xxx"
HUGGINGFACE_TOKEN="hf_xxx"
LLAMA_CLOUD_API_KEY="llx-xxx"

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@tailwindcss/typography": "^0.5.15",
"@types/debug": "^4.1.12",
"@types/eslint": "^9.6.1",
"@types/node": "^22.10.2",
"@types/pdf-parse": "^1.1.4",
"@types/qrcode": "^1.5.5",
"@types/rfc2047": "^2.0.3",
Expand Down Expand Up @@ -67,6 +68,7 @@
},
"packageManager": "[email protected]",
"dependencies": {
"llamaindex": "^0.8.29",
"parse": "^5.3.0",
"pdf-parse": "^1.1.1"
}
Expand Down
Loading
Loading