()
| 41 | |
| 42 | |
| 43 | def stream_error() -> None: |
| 44 | try: |
| 45 | client.completions.create( |
| 46 | prompt=f"{HUMAN_PROMPT} {question}{AI_PROMPT}", |
| 47 | model="claude-unknown-model", |
| 48 | stream=True, |
| 49 | max_tokens_to_sample=300, |
| 50 | ) |
| 51 | except APIStatusError as err: |
| 52 | print(f"Caught API status error with response body: {err.response.text}") |
| 53 | |
| 54 | |
| 55 | sync_stream() |
no test coverage detected