Spaces:
Running
Running
Commit History
-
Move vars to dynamic, add metrics (#1085)
Unverified signature* Add healthcheck route * Add prom client with basic metrics * wip: serve metrics on a different port * exclude server from tsconfig * latest * refacto(all): use class & singleton * refacto(all): use class & singleton * refacto(all): add request logs * Make all the env vars dynamic (#1092) * Add truncate to task model (#1090) * retry text area height (#1091) * Make all the env vars dynamic * only check for db at runtime * remove secret from build step * improve dockerfile * Wrap db in singleton * add .env.local to dockerignore * changes to dockerfile * lint * aborted generations * move collections build check * Use a single dockerfile * lint * fixes * lint * don't return db during building * remove dev --------- Co-authored-by: Victor Muštar <victor.mustar@gmail.com> * refacto(all): update default metrics port * fix recursion error * add version check * revert vite preview * Move request …98b1c51
-
retry text area height (#1091)
Unverified signature1b24189 -
Use pino for logs (#1086)
Unverified signature* Use pino for logs * Use logger for info * Add errorId to the logsddbe7d2
-
set `sameSite` to `lax` when allowing insecure cookies (#1078)
Unverified signaturebc30bd1
-
🎨 Add color for copy icon (#1070)
Damián PumarUnverified signature745e51e -
Add `ALLOW_INSECURE_COOKIES` feature flag (#1076)
Unverified signaturede2df1a
-
Use TEI space in prod (#1051)
Unverified signature9567da6 -
Support Gemini 1.5 Pro from Vertex AI (#1041)
Luke +1: nsarrazin Unverified signature* fix support for gemini on vertex ai - use native messages api - provide full content - hide "Continue" button - support "safety settings" - fix confusion in readme * respect new lines in model description * ignore google service accounts matching `gcp-*.json` * type checks * copy service account, if exists, to container * narrow response type * fix streaming generation --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>2ce3b4b
-
Always dispose of pipeline for embeddings after use (#1048)
Unverified signature95ffbe4 -
Dispose of embeddings pipeline occasionally to clear memory (#1047)
Unverified signature6d253ff
-
Kill app on tokenizer load fail (#1044)
Unverified signature4af31ae
-
return empty if error on hfapi endpoint (#1038)
Unverified signature29f5c0c -
Use inference API for embeddings in huggingchat prod (#1037)
Unverified signature* Let the user use HF_TOKEN as auth bearer token in TEI endpoint * Use inference API for embeddings in huggingchat prod04b77a5 -
Switch task model and add max tokens limits (#1036)
Unverified signatureSwitch task modle and add max tokens limits86bc2ea
-
Add logs to tokenizer fetch (#1030)
Unverified signaturecc79662 -
Add support for Meta Llama 3 70B in HuggingChat (#1029)
Unverified signature8582ce1
-
Update marked from v4 to v12 (#1015)
Liam DyerUnverified signaturefeat: update marked from v4 to v12305971b -
Add langserve endpoint (#1009)
Antonio Ramos +1: antonioraUnverified signature* Add support for langserve endpoints * Add support for langserve endpoints * Fix linting * Fix linting issues * Fix issue import --------- Co-authored-by: antoniora <antonio.ramos@adyen.com>f12455d
-
Show the assistant model name in the chat input (#1006)
Unverified signature2435b95
-
modal wording (#1000)
Unverified signature* wording * format --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>fe072ba
-
Update models and add check for assistants model on startup (#998)
Unverified signature* Remove old models from .env.template * Make sure we always have a visible model in assistant settings * Always show correct info in chat window * Add migration that runs on every server start to update assistant model * change key * fix tests * Update src/lib/migrations/migrations.ts Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> * review * Update src/lib/components/chat/ChatWindow.svelte Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> * revert duplicate Model: * simplify deprecated check --------- Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu>29b7d2a
-
Move default template so it doesn't override tokenizer (#987)
Unverified signature9437108 -
Set ChatML as default chat prompt template (#985)
Unverified signature619722b
-
quick fix error message (#977)
Unverified signatured323cb0 -
Add support for cohere endpoints (#976)
Unverified signature* Add support for cohere endpoints * readme updatea99cca3 -
Use jinja template for chat formatting (#730) (#744)
Unverified signature* Use jinja template for chat formatting * Add support for transformers js chat template * update to latest transformers version * Make sure to `add_generation_prompt` * unindent0819256
-
Implement Cloudflare Workers AI endpoint (#907) (#972)
Unverified signature* Implement Cloudflare Workers AI endpoint (#907) * Renamed to Cloudflare Workers AI in docs * Add note about sampling parameters * clean up env examplecb000d3
-
User count update (#970)
Unverified signature* add more range * display on assitant page tooeb956bc -
Fix button placement on assistant edit/create form (#962)
Unverified signature* Fix button placement on assistant edit/create form * rm unnecessary changes * Fix alignmentdf27d77 -
Add share button for assistant intro page (#960) (#965)
Unverified signature* Add share button for assistant intro page * Fix padding on share assistant * gap --------- Co-authored-by: Victor Mustar <victor.mustar@gmail.com>55af70d -
Google Vertex API support (#950)
Unverified signature* Added Google Vertex API support Google Application credentials can be set via GOOGLE_APPLICATION_CREDENTIALS = clientid.json * Updated the readme file * Updated the package-lock file * Updated the package-lock file Fixed minor issues * Moved "@google-cloud/vertexai" to optional dependencies * Updated for lint checker3ebd3a8
-
[Assistants] trending feature (#938)
Mishig +1: coyotte508Unverified signature* [Assistants] trending feature * cleaner sort query * create & use `AssistantStats` collection * fix grouping * rm usage of migration * ♻️ Refacto lock usage / AssistantStat * 🩹 Fix last24HoursCount.count => last24HoursCount * 🐛 Fix collection name * 🐛 Fix DB query * 🐛 Fix rate limit on assitant creation * 🐛 Fix aggregation query * ✨ Only run refreshAssistants if assistants are enabled * hide UI until we have enough stats collection --------- Co-authored-by: coyotte508 <coyotte508@gmail.com>a4c3fca
-
Expose sampling controls in assistants (#955) (#959)
Unverified signature* Expose sampling controls in assistants (#955) * Make sure all labels have the same font size * styling * Add better tooltips * better padding & wrapping * Revert "better padding & wrapping" This reverts commit 1b44086465040f2cb6bc906983cfc8d95820d6fe. * ui update * tooltip on mobile * lint * Update src/lib/components/AssistantSettings.svelte Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> --------- Co-authored-by: Victor Mustar <victor.mustar@gmail.com> Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu>d4016bc
-
Dynamic system instructions (#949)
Unverified signature* Dynamic system instructions * disable tag rendering if the feature is disabled * make time & date tags bold * fix bug enabling dynamic prompt on assistant creation * Move fetching at prompt building time * get rid of date & time tags * use `url=` for tags * add env flag check * Add more detailed errors in prompt * wording * token counter * modal update * wording * hide disabled if dynamic prompt is enabled * add template variables parsing * regex update * same regex * regex again * sys prompt max height * rm unused * Always use absolute URL in links * trying something * Revert "trying something" This reverts commit e30ab33f801fad31cbcaa7b89c47c79d4aca86a6. * wording * remove debug log * last wording tweak --------- Co-authored-by: Victor Mustar <victor.mustar@gmail.com>6887755 -
[Websearch] change context schema (#944)
MishigUnverified signature2e2f16c
-
Count system prompt tokens (#850)
Mishig +1: nsarrazin Unverified signature* Count sysmte prompt tokens * show error only once * fix * fix css * simplify * fix * simplify * Revert "simplify" This reverts commit 61c0a2281f9795c4a4351d9ad473993a3c01c59f. * `model.tokenizer` config & fix reactivity issues * rm gated tokenizer * use `truncate` --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>50d8483 -
Enhance Dynamic User Attribute Handling in OIDC Integration (#885)
Chang Chi, Meng +2: nsarrazin, ‘XGungo’ Unverified signature* Refactor `updateUser` to Support Dynamic `nameClaim` Configuration * style: run Prettier to fix lint errors * Validate NAME_CLAIM in OIDConfig schema * Refactor userData parsing --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com> Co-authored-by: ‘XGungo’ <‘daniel2000890311g@gmail.com’>c6129c3 -
feat: smooth and combine token output (#936)
Liam DyerUnverified signature* feat: smooth and combine token output * fix: stop generating button not triggering message updates abort8583cf1
-
Modals: dont close if text is selected (#943)
Unverified signaturedont close if text is selected999407a
-
Update AssistantSettings.svelte (#941)
Unverified signature2ce726f -
Store user agent in conversation (#940)
Unverified signature* Store user agent on conversation creation * casing headerd196c64
-
Prepend domain filters in search query generation (#932)
Unverified signature233d2a9 -
Show error when webpage cannot be reached or parsed (#930)
Unverified signaturee04d4e8 -
Fix multi domains for assistants (#929)
Unverified signaturecbf4205 -
Remove extra > in URLs (#931)
Unverified signature89f9b29 -
Anthropic Endpoint Support (#923)
Liam DyerUnverified signaturefeat: anthropic endpoint5a31018
-
Add websearch controls for assistants (#812)
Unverified signature* remove query modifiers from generateQuery * Add backend for assistant RAG * Add front-end for updating RAG assistant * enable web parser to return plaintext directly for matching headers * Update websearch flow for handling assistant rag preferences * Add our old blocklist to .env.template * Enable websearch to run on messages depending on assistant requirements * reorganized imports * Rename vars * use projection * Add environment variable for assistant rag * fix assistant rag on runwebsearch * fix styling if rag is disabled * make sure we always omit credentials when fetching web pages * Add new checks for SSRF, with a new env var `ENABLE_LOCAL_FETCH` * Use DNS to check if the links are local or not * Add a websearch indicator * Add more tags to parser * Add indicators * Display RAG options in settings view * ui * fix rag detection * bit more spacing * fix button position in assistant form * wording (mainly) …3f5871c
-
Fix prompt caching on llama.cpp endpoints (#920)
Unverified signatureExplicitly enable prompt caching on llama.cpp endpoints Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>eb071be -
fix: Prompt bypasses login (#921)
Kartik ShettyUnverified signatureFixes#879 checking login requirement in chat window2edb278
-
Add openai embeddings (#915)
Martok88 +1: nsarrazin Unverified signature* Add OpenAI embedding compatibility * Use OPENAI_API_KEY by default * lint * Add default OpenAI URL replace `authorization` by `apiKey` * Add a note in readme --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>f7db219