Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /GRID-INTELLIGENCE_GRID /tests /unit /test_models.py
| import pytest | |
| from tests.utils.path_manager import PathManager | |
| # Setup paths atomically to prevent race conditions | |
| PathManager.setup_test_paths(__file__) | |
| from grid.services.inference import InferenceService | |
| async def test_local_model_processing() -> None: | |
| service = InferenceService() | |
| from grid.models.inference import InferenceRequest | |
| request = InferenceRequest(prompt="Test prompt", model="local-model") | |
| result = await service._call_local_model(request) | |
| assert "response" in result.result | |
| assert result.model == "local-model" | |
| async def test_openai_model_processing() -> None: | |
| service = InferenceService() | |
| from grid.models.inference import InferenceRequest | |
| request = InferenceRequest(prompt="Test prompt", model="gpt-3.5-turbo") | |
| result = await service._call_openai_model(request) | |
| assert "response" in result.result | |
| assert "gpt-3.5-turbo" in result.model | |
Xet Storage Details
- Size:
- 954 Bytes
- Xet hash:
- b9b74137c0029debf1ca9c98af23419e8f1e886ac08aa791d61f3e30c6715a9d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.