Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
|
@@ -46,13 +46,10 @@ As is, CARROT supports routing to the following collection of large language mod
|
|
| 46 |
<pre><code class="language-python">
|
| 47 |
import carrot_router
|
| 48 |
|
| 49 |
-
# Initialize the router
|
| 50 |
router = carrot_router.Router()
|
| 51 |
|
| 52 |
-
# Define a query
|
| 53 |
query = "What are the latest advancements in AI?"
|
| 54 |
|
| 55 |
-
# Get the best model for cost-performance tradeoff
|
| 56 |
best_model = router.route(query)
|
| 57 |
|
| 58 |
print(f"Recommended Model: {best_model}")
|
|
|
|
| 46 |
<pre><code class="language-python">
|
| 47 |
import carrot_router
|
| 48 |
|
|
|
|
| 49 |
router = carrot_router.Router()
|
| 50 |
|
|
|
|
| 51 |
query = "What are the latest advancements in AI?"
|
| 52 |
|
|
|
|
| 53 |
best_model = router.route(query)
|
| 54 |
|
| 55 |
print(f"Recommended Model: {best_model}")
|