Skip to content

Commit

Permalink
Use batched from more_itertools for compatibility with older Python v…
Browse files Browse the repository at this point in the history
…ersions
  • Loading branch information
silvanocerza committed Nov 14, 2024
1 parent e9a7c7e commit 07029c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haystack/components/embedders/openai_document_embedder.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# SPDX-License-Identifier: Apache-2.0

import os
from itertools import batched
from typing import Any, Dict, List, Optional, Tuple

from more_itertools import batched
from openai import APIError, OpenAI
from tqdm import tqdm

Expand Down

0 comments on commit 07029c8

Please sign in to comment.