(content: str = "Hello!", model: str = "gpt-4o")
| 32 | |
| 33 | |
| 34 | def _make_completion(content: str = "Hello!", model: str = "gpt-4o") -> ChatCompletion: |
| 35 | return ChatCompletion( |
| 36 | id="chatcmpl-test", |
| 37 | object="chat.completion", |
| 38 | created=1700000000, |
| 39 | model=model, |
| 40 | choices=[ |
| 41 | Choice( |
| 42 | index=0, |
| 43 | message=ChatCompletionMessage(role="assistant", content=content), |
| 44 | finish_reason="stop", |
| 45 | ) |
| 46 | ], |
| 47 | usage=CompletionUsage(prompt_tokens=10, completion_tokens=5, total_tokens=15), |
| 48 | ) |
| 49 | |
| 50 | |
| 51 | def _make_anthropic_message(content: str = "Hi there", model: str = "claude-sonnet-4-20250514"): |
no outgoing calls
no test coverage detected