2026-04-22 16:03:51 +02:00
|
|
|
from __future__ import annotations
|
2026-04-21 17:42:37 +02:00
|
|
|
|
2026-04-22 15:47:46 +02:00
|
|
|
from chromy.chroma_functions import create_collection
|
2026-04-21 17:42:37 +02:00
|
|
|
|
|
|
|
|
|
2026-04-22 22:14:26 +02:00
|
|
|
def handle_create_collection(collection: str) -> int:
|
|
|
|
|
collection_name = create_collection(collection)
|
2026-04-21 17:42:37 +02:00
|
|
|
print(f"Created collection '{collection_name}'.")
|
|
|
|
|
return 0
|