Skip to content

Commit 7977da0

Browse files
committed
move the mistralai import into a function, for python 3.8
1 parent 936bcf5 commit 7977da0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

aikido_zen/sinks/tests/mistralai_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import pytest
44
import aikido_zen.sinks.mistralai
5-
import mistralai
65

76
from aikido_zen.thread.thread_cache import get_cache
87

@@ -21,6 +20,8 @@ def setup():
2120

2221
@pytest.fixture
2322
def mistral():
23+
import mistralai
24+
2425
return mistralai.Mistral(api_key=os.getenv("MISTRAL_API_KEY", ""))
2526

2627

0 commit comments

Comments
 (0)