File tree 4 files changed +16
-8
lines changed
instrumentation/openinference-instrumentation-mistralai
src/openinference/instrumentation/mistralai
4 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,6 @@ instruments = [
37
37
" mistralai >= 1.0.2" ,
38
38
]
39
39
test = [
40
- " mistralai == 1.0.2" ,
41
- " opentelemetry-sdk" ,
42
- " opentelemetry-instrumentation-httpx" ,
43
- " respx" ,
44
- " pytest-asyncio" ,
45
- " pytest.recording" ,
46
40
]
47
41
48
42
[project .urls ]
Original file line number Diff line number Diff line change
1
+ from __future__ import annotations
2
+
1
3
import logging
2
4
from typing import (
5
+ TYPE_CHECKING ,
3
6
Any ,
4
7
AsyncIterator ,
5
8
Generator ,
13
16
from opentelemetry .util .types import AttributeValue
14
17
from wrapt import ObjectProxy
15
18
16
- from mistralai .models import CompletionEvent
17
19
from openinference .instrumentation .mistralai ._utils import _finish_tracing
18
20
from openinference .instrumentation .mistralai ._with_span import _WithSpan
19
21
22
+ if TYPE_CHECKING :
23
+ from mistralai .models import CompletionEvent
24
+
20
25
__all__ = (
21
26
"_Stream" ,
22
27
"_ResponseAccumulator" ,
Original file line number Diff line number Diff line change
1
+ mistralai == 1.0.2
2
+ opentelemetry-sdk
3
+ opentelemetry-instrumentation-httpx
4
+ respx
5
+ pytest-asyncio
6
+ pytest.recording
Original file line number Diff line number Diff line change @@ -52,7 +52,10 @@ commands_pre =
52
52
semconv: uv pip install --reinstall {toxinidir}/openinference-semantic-conventions
53
53
bedrock: uv pip install --reinstall {toxinidir}/instrumentation/openinference-instrumentation-bedrock[test]
54
54
bedrock-latest: uv pip install -U boto3 anthropic
55
- mistralai: uv pip install --reinstall {toxinidir}/instrumentation/openinference-instrumentation-mistralai[test]
55
+ mistralai: uv pip uninstall -r test-requirements.txt
56
+ mistralai: uv pip install --reinstall-package openinference-instrumentation-mistralai .
57
+ mistralai: python -c ' import openinference.instrumentation.mistralai'
58
+ mistralai: uv pip install -r test-requirements.txt
56
59
mistralai-latest: uv pip install -U mistralai
57
60
openai: uv pip uninstall -r test-requirements.txt
58
61
openai: uv pip install --reinstall-package openinference-instrumentation-openai .
You can’t perform that action at this time.
0 commit comments