inspect-ai 0.3.101__py3-none-any.whl → 0.3.103__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- inspect_ai/_cli/eval.py +1 -1
- inspect_ai/model/_openai.py +4 -0
- inspect_ai/model/_providers/openai.py +8 -2
- {inspect_ai-0.3.101.dist-info → inspect_ai-0.3.103.dist-info}/METADATA +1 -1
- {inspect_ai-0.3.101.dist-info → inspect_ai-0.3.103.dist-info}/RECORD +9 -9
- {inspect_ai-0.3.101.dist-info → inspect_ai-0.3.103.dist-info}/WHEEL +0 -0
- {inspect_ai-0.3.101.dist-info → inspect_ai-0.3.103.dist-info}/entry_points.txt +0 -0
- {inspect_ai-0.3.101.dist-info → inspect_ai-0.3.103.dist-info}/licenses/LICENSE +0 -0
- {inspect_ai-0.3.101.dist-info → inspect_ai-0.3.103.dist-info}/top_level.txt +0 -0
inspect_ai/_cli/eval.py
CHANGED
@@ -949,7 +949,6 @@ def eval_exec(
|
|
949
949
|
log_images=log_images,
|
950
950
|
log_buffer=log_buffer,
|
951
951
|
log_shared=log_shared,
|
952
|
-
log_header_only=True, # cli invocation doesn't need full log
|
953
952
|
score=score,
|
954
953
|
score_display=score_display,
|
955
954
|
)
|
@@ -967,6 +966,7 @@ def eval_exec(
|
|
967
966
|
success, _ = eval_set(**params)
|
968
967
|
return success
|
969
968
|
else:
|
969
|
+
params["log_header_only"] = (True,) # cli invocation doesn't need full log
|
970
970
|
eval(**params)
|
971
971
|
return True
|
972
972
|
|
inspect_ai/model/_openai.py
CHANGED
@@ -27,6 +27,7 @@ from .._model_call import ModelCall
|
|
27
27
|
from .._model_output import ModelOutput
|
28
28
|
from .._openai import (
|
29
29
|
OpenAIAsyncHttpxClient,
|
30
|
+
is_codex,
|
30
31
|
is_computer_use_preview,
|
31
32
|
is_gpt,
|
32
33
|
is_o1,
|
@@ -88,8 +89,10 @@ class OpenAIAPI(ModelAPI):
|
|
88
89
|
|
89
90
|
# is this a model we use responses api by default for?
|
90
91
|
responses_model = (
|
91
|
-
self.is_o_series() and not self.is_o1_early()
|
92
|
-
|
92
|
+
(self.is_o_series() and not self.is_o1_early())
|
93
|
+
or self.is_computer_use_preview()
|
94
|
+
or self.is_codex()
|
95
|
+
)
|
93
96
|
|
94
97
|
# resolve whether we are forcing the responses api
|
95
98
|
self.responses_api = responses_api or responses_model
|
@@ -193,6 +196,9 @@ class OpenAIAPI(ModelAPI):
|
|
193
196
|
def is_computer_use_preview(self) -> bool:
|
194
197
|
return is_computer_use_preview(self.service_model_name())
|
195
198
|
|
199
|
+
def is_codex(self) -> bool:
|
200
|
+
return is_codex(self.service_model_name())
|
201
|
+
|
196
202
|
def is_gpt(self) -> bool:
|
197
203
|
return is_gpt(self.service_model_name())
|
198
204
|
|
@@ -3,7 +3,7 @@ inspect_ai/__main__.py,sha256=oWX4YwDZDg3GS3-IG0yPGoSEOfSzWihELg7QmrUlxjM,67
|
|
3
3
|
inspect_ai/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
inspect_ai/_cli/cache.py,sha256=RVGuBYwwk3c45JfyfcSFJ419etSsv3-Z7AyfQE-Hul0,3912
|
5
5
|
inspect_ai/_cli/common.py,sha256=WbAgGbLcxABcWoEWiGCWSbkkxYr2jmL9i0cyseWHmRA,4165
|
6
|
-
inspect_ai/_cli/eval.py,sha256=
|
6
|
+
inspect_ai/_cli/eval.py,sha256=H1UBbStuwX28f0fDf3hs7UF3xqD5U-M9WcS0JyvK4sI,39478
|
7
7
|
inspect_ai/_cli/info.py,sha256=QMxaTG9TmzW95EiLrOgkzubvavoR-VHxo3eV7ppmrzI,1789
|
8
8
|
inspect_ai/_cli/list.py,sha256=M8mazI8Zuq8Hp99YWKnxQd9UWx1Qi87zfXRzZYAAakk,2459
|
9
9
|
inspect_ai/_cli/log.py,sha256=Ko4TLqoy1jD3DoL50EkcQMVc16BzkjYo8qrZBakC4e8,5818
|
@@ -611,7 +611,7 @@ inspect_ai/model/_generate_config.py,sha256=17QzzPlLvAxmC7uOPAikTaJoNecvZn_7xTgX
|
|
611
611
|
inspect_ai/model/_model.py,sha256=DOM65CcUcVi6np0fctSOW3RnroBZHeVgIK2e8tg-EzQ,53101
|
612
612
|
inspect_ai/model/_model_call.py,sha256=VJ8wnl9Y81JaiClBYM8eyt1jVb3n-yc6Dd88ofRiJDc,2234
|
613
613
|
inspect_ai/model/_model_output.py,sha256=1CLAt0JKsv9NYbN93-i5Fl0K035cxoO3bP_q19234Y8,8812
|
614
|
-
inspect_ai/model/_openai.py,sha256=
|
614
|
+
inspect_ai/model/_openai.py,sha256=iJV716nI_3boHEHQa_gMj6_Ri3eu5bshqTcU1jWpn4Y,24529
|
615
615
|
inspect_ai/model/_openai_computer_use.py,sha256=vbKkYLhqNuX16zuWfg5MaGp9H8URrPcLhKQ1pDsZtPo,5943
|
616
616
|
inspect_ai/model/_openai_responses.py,sha256=cychfKxyxxWltd_kDiX1oCfN6hvBH-A1_muxRwvGwvg,23854
|
617
617
|
inspect_ai/model/_openai_web_search.py,sha256=tKxoRHc8gHIt8kgIdp6eM_Ak62inGRTxdUe1JNJV0b8,1195
|
@@ -632,7 +632,7 @@ inspect_ai/model/_providers/mistral.py,sha256=RLJ0ymOHxDWyVJfF-7UeskkjPg7DefBipR
|
|
632
632
|
inspect_ai/model/_providers/mockllm.py,sha256=gL9f-f5TOdE4a0GVENr3cOIIp2kv8zVXWPZ608rouGk,2440
|
633
633
|
inspect_ai/model/_providers/none.py,sha256=6qLbZpHSoEZaaxFO7luieFjqig2Ju8Fu00DlRngAry8,935
|
634
634
|
inspect_ai/model/_providers/ollama.py,sha256=eWhsVoZ8k_3zYpdDoZWcPN9rGly6Ha4O49N99EJfycs,591
|
635
|
-
inspect_ai/model/_providers/openai.py,sha256=
|
635
|
+
inspect_ai/model/_providers/openai.py,sha256=WKf_54AIl6poQKaSv3QbLTQWDsNG1H9vYKfR4NTCQUY,13759
|
636
636
|
inspect_ai/model/_providers/openai_compatible.py,sha256=OO7VoZA8RQb6y6iaRXMHabCOG4wWQfhsxJLD5wB38co,6592
|
637
637
|
inspect_ai/model/_providers/openai_o1.py,sha256=ahdXt2TFtPTdDvSGVQw7EaVindfbFbY2pLZrrB45rFg,13305
|
638
638
|
inspect_ai/model/_providers/openai_responses.py,sha256=hHnx5fgok_doLHmLVrfib6VYkrqUezwD7HlkIrCaKqY,6764
|
@@ -758,9 +758,9 @@ inspect_ai/util/_sandbox/docker/internal.py,sha256=c8X8TLrBPOvsfnq5TkMlb_bzTALyc
|
|
758
758
|
inspect_ai/util/_sandbox/docker/prereqs.py,sha256=0j6_OauBBnVlpBleADcZavIAAQZy4WewVjbRn9c0stg,3355
|
759
759
|
inspect_ai/util/_sandbox/docker/service.py,sha256=hhHIWH1VDFLwehdGd19aUBD_VKfDO3GCPxpw1HSwVQk,2437
|
760
760
|
inspect_ai/util/_sandbox/docker/util.py,sha256=EeInihCNXgUWxaqZ4dNOJd719kXL2_jr63QCoXn68vA,3154
|
761
|
-
inspect_ai-0.3.
|
762
|
-
inspect_ai-0.3.
|
763
|
-
inspect_ai-0.3.
|
764
|
-
inspect_ai-0.3.
|
765
|
-
inspect_ai-0.3.
|
766
|
-
inspect_ai-0.3.
|
761
|
+
inspect_ai-0.3.103.dist-info/licenses/LICENSE,sha256=xZPCr8gTiFIerrA_DRpLAbw-UUftnLFsHxKeW-NTtq8,1081
|
762
|
+
inspect_ai-0.3.103.dist-info/METADATA,sha256=IELaF2h46Zjz8Saj1dK6_qqjQPyg_kFej7zvfH7uO8s,5460
|
763
|
+
inspect_ai-0.3.103.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
764
|
+
inspect_ai-0.3.103.dist-info/entry_points.txt,sha256=WGGLmzTzDWLzYfiyovSY6oEKuf-gqzSDNOb5V-hk3fM,54
|
765
|
+
inspect_ai-0.3.103.dist-info/top_level.txt,sha256=Tp3za30CHXJEKLk8xLe9qGsW4pBzJpEIOMHOHNCXiVo,11
|
766
|
+
inspect_ai-0.3.103.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|