Skip to content

Commit def0e9e

Browse files
committed
Refactor README and tests, add new screenshots, and update setup script
- Cleaned up README.md by removing unnecessary blank lines. - Updated test_llm_service.py to mock OpenAI API key for better error handling. - Added multiple new screenshot files for documentation and demo purposes. - Minor formatting adjustments in setup.sh to remove extra blank lines. - Changed app.spec.js to wait for the full page load instead of DOM content loaded for more reliable test execution. Signed-off-by: Andre Bossard <anbossar@microsoft.com>
2 parents 854097a + f1da9b8 commit def0e9e

12 files changed

Lines changed: 212 additions & 12 deletions

CSV/data.csv

Lines changed: 207 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ All deep-dive guides now live under `docs/` for easier discovery:
4343
- **[Publishing Guide](docs/KBA_PUBLISHING.md)** – How to publish KBAs to different KB systems
4444

4545

46-
47-
48-
49-
5046
### DSPy Prompt Tuning Playground
5147

5248
> **NEW:** Interactive Jupyter notebook series teaching prompt optimization with DSPy
@@ -72,7 +68,6 @@ Open `00_introduction.ipynb` and follow the 8-notebook learning path. The notebo
7268
- Uses the same `LITELLM_MODEL` / `LITELLM_FALLBACK_MODELS` env vars as the backend
7369

7470

75-
7671
## 5-minute quick start (TL;DR)
7772
1. Clone the repo: `git clone <your-fork-url> && cd python-quart-vite-react`
7873
2. Run the automated bootstrap: `./setup.sh` (creates the repo-level `.venv`, installs frontend deps, installs Playwright)

backend/tests/test_llm_service.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ def test_service_defaults_to_litellm(self):
6666

6767
def test_service_forced_openai_without_key_raises(self):
6868
"""Test that forcing openai backend without key raises error"""
69-
with pytest.raises(LLMAuthenticationError, match="OpenAI API key not set"):
70-
LLMService(backend="openai") # No api_key, env cleared won't help since module-level loaded
69+
with patch('llm_service.OPENAI_API_KEY', ''):
70+
with pytest.raises(LLMAuthenticationError, match="OpenAI API key not set"):
71+
LLMService(backend="openai")
7172

7273
def test_service_forced_litellm_backend(self):
7374
"""Test forcing LiteLLM backend even with API key"""

screenshot-agent.png

51 KB
Loading

screenshot-fields.png

31.7 KB
Loading

screenshot-kitchen-sink.png

220 KB
Loading

screenshot-ops-demo.png

110 KB
Loading

screenshot-sla-breach-risk.png

124 KB
Loading

screenshot-tickets.png

37.8 KB
Loading

screenshot-usecase-demo.png

112 KB
Loading

0 commit comments

Comments
 (0)