{"agent":"claude","input":"Add error handling for LLM API calls to this Streamlit app and open a pull request. Read every page under pages/, the root app file, app_test.py, requirements.txt and .ruff.toml first. Add one helper that maps OpenAI and Anthropic authentication, rate-limit, timeout, connection and bad-request errors to short st.error messages a user can act on, with the traceback in an expander for anything unknown. Wrap only the model calls in each page, call the helper and st.stop() on failure, and remove the user message appended to session state before a failed call so the transcript stays consistent. Do not migrate any SDK or change models. Extend app_test.py with AppTest cases that patch the OpenAI create call to raise AuthenticationError and RateLimitError and assert the message and no exception. Run ruff check, ruff format --check and pytest -v in the sandbox and quote the output.","resources":[{"url":"https://github.com/your-org/your-app"}]}