Skip to content

Commit

Permalink
fix conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
generall committed Jan 3, 2025
1 parent 197324c commit d8aac4d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions qdrant_client/conversions/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -2487,7 +2487,9 @@ def convert_optimizers_config(cls, model: rest.OptimizersConfig) -> grpc.Optimiz
indexing_threshold=model.indexing_threshold,
max_optimization_threads=cls.convert_max_optimization_threads(
model.max_optimization_threads
),
)
if model.max_optimization_threads is not None
else None,
max_segment_size=model.max_segment_size,
memmap_threshold=model.memmap_threshold,
vacuum_min_vector_number=model.vacuum_min_vector_number,
Expand All @@ -2509,7 +2511,9 @@ def convert_optimizers_config_diff(
indexing_threshold=model.indexing_threshold,
max_optimization_threads=cls.convert_max_optimization_threads(
model.max_optimization_threads
),
)
if model.max_optimization_threads is not None
else None,
max_segment_size=model.max_segment_size,
memmap_threshold=model.memmap_threshold,
vacuum_min_vector_number=model.vacuum_min_vector_number,
Expand Down

0 comments on commit d8aac4d

Please sign in to comment.