Spaces:
Sleeping
Sleeping
Commit History
-
Simplify chatbot to provider switching with concurrency caps.
Remove dataset logging and web search, split Triton/OpenAI/Anthropic API keys, move the Triton endpoint into config.py, and add Gradio queue plus upstream semaphore limits for multi-user load. Co-authored-by: Cursor <cursoragent@cursor.com>34b9ae0
-
Add config-toggled web search via Tavily with query-only egress.
Merge remote config changes while keeping optional litellm_web_search tool loop on TritonAI. Co-authored-by: Cursor <cursoragent@cursor.com>b91e03d -
Update config.py
Verified signature2fa31e4 -
Update config.py
Verified signaturec53c40a
-
Set system prompt to speak only in rhyme
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>f7ee7d4 -
Add config.py for non-secret settings; retire LITELLM_MODEL
Move the model, generation parameters, system prompt, and UI text out of the environment and inline code into a committed, non-secret config.py. Secrets (API keys, endpoint, ALLOWED_USERS, logging tokens) stay in .env. - config.py: MODEL, MAX_TOKENS, TEMPERATURE, REASONING_EFFORT (all None by default = provider default), a simple SYSTEM_PROMPT, and APP_TITLE / APP_DESCRIPTION / INPUT_PLACEHOLDER. - app.py: read config via getattr with fallbacks; the model is now sourced solely from config.py (LITELLM_MODEL is no longer read). Resolve which gen params the chosen model supports via litellm.get_supported_openai_params and send only those; unsupported ones (e.g. reasoning_effort on the openai/ Triton route) are skipped and named in the [config] startup log. Wire UI text and the login heading from config. - Defaults keep behavior identical: with all gen params None, nothing extra is sent to litellm.completion(). - Docs: retire LITELLM_MODEL everywhere (README provider table…224181d -
Log real token usage, fix logging self-test, correct docs
- app.py: request stream_options include_usage so the gateway reports real token counts instead of a local estimate; guard the stream loop against the usage-only chunk, which carries no choices. - verify_logging.py: count only the file the current run wrote, so a repeat run no longer fails with a false "records were lost or duplicated" and orphans the test dataset; add --delete-only for teardown without re-running the checks. - LOGGING_DEMO.md, sample_logs.jsonl: the documented ALLOWED_USERS example doubled as real working credentials on a public Space. Replace with placeholders and rename the demo users to alice/bob/carol. - Docs: standardize on OPENAI_API_BASE (LOGGING.md said OPENAI_BASE_URL), update the HF UI name to "Variables and secrets", document the shutdown-flush hook that already ships in app.py, and add README troubleshooting for the api.openai.com fallback that caused this week's outage. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>4f7a3b9 -
Pass api_base/api_key explicitly to litellm so Space routes to TritonAI
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>667cee5 -
Merge branch 'main' of https://huggingface.co/spaces/keefereuther/TritonAI-chatbot
ea0f1d5 -
Remove hf_oauth so Gradio login is the only gate
fecbfd0 -
Update README.md
Verified signature2adaf77 -
Rename app to TritonAI Chatbot and fix login page i18n labels.
Use explicit English translations for Gradio's auth UI so Spaces no longer show raw login.* keys. Co-authored-by: Cursor <cursoragent@cursor.com>bca0fff -
Merge branch 'main' of https://huggingface.co/spaces/keefereuther/chatbot_template
# Conflicts: # app.py3941dd3 -
Add conversation logging to private HF dataset (CommitScheduler + shutdown flush) and docs
3661884
-
Update app.py
Verified signaturebe51ba7
-
Update app.py
Verified signature7a2f3bd -
Update requirements.txt
Verified signature5856af0 -
Update requirements.txt
Verified signaturef83654d -
Update app.py
Verified signaturee3c784c -
Update app.py
Verified signaturec5e9efa
-
Update app.py
Verified signatureb0256ab -
Update app.py
Verified signature07b65fd -
Create requirements.txt
Verified signaturef40fd56 -
Update README.md
Verified signature5775a38 -
initial commit
Verified signature9cd5d50 -
Duplicate from gradio-templates/chatbot
Co-authored-by: Pete <pngwn@users.noreply.huggingface.co>84306b2