mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-08 08:08:37 +00:00
* test: move packaging and install tests to unit and integration * test: move packaging and install checks to smoke and integration * test: keep the boot check proxy on its scratch database in replica mode * test: restore install imports and address review findings on packaging checks --------- Co-authored-by: yuneng <yuneng@berri.ai>
17 lines
517 B
Python
17 lines
517 B
Python
from typing import Final
|
|
|
|
import litellm
|
|
|
|
MOCK_REPLY: Final = "windows runtime reply"
|
|
|
|
|
|
def test_using_litellm_on_windows() -> None:
|
|
response: Final = litellm.completion(
|
|
model="gpt-4o",
|
|
messages=[{"role": "user", "content": "windows smoke"}],
|
|
mock_response=MOCK_REPLY,
|
|
)
|
|
assert response.choices[0].message.content == MOCK_REPLY
|
|
assert response.choices[0].message.role == "assistant"
|
|
assert response.choices[0].finish_reason == "stop"
|
|
assert response.model == "gpt-4o"
|