Skip to content

Commit 67e0bf6

Browse files
Apply suggestions from code review
1 parent 41ec833 commit 67e0bf6

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

.github/workflows/codeflash.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Codeflash
22
on:
33
pull_request:
44
paths:
5-
# So that this workflow only runs when code within the target module is modified
65
- 'pydantic_ai_slim/pydantic_ai/**'
76
workflow_dispatch:
87
concurrency:

pydantic_ai_slim/pydantic_ai/profiles/openai.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ class OpenAIModelProfile(ModelProfile):
2424

2525
def openai_model_profile(model_name: str) -> ModelProfile:
2626
"""Get the model profile for an OpenAI model."""
27-
import time
28-
time.sleep(0.002)
2927
is_reasoning_model = model_name.startswith('o')
3028
# Structured Outputs (output mode 'native') is only supported with the gpt-4o-mini, gpt-4o-mini-2024-07-18, and gpt-4o-2024-08-06 model snapshots and later.
3129
# We leave it in here for all models because the `default_structured_output_mode` is `'tool'`, so `native` is only used

pydantic_ai_slim/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ dev = [
9898
"boto3-stubs[bedrock-runtime]",
9999
"strict-no-cover>=0.1.1",
100100
"pytest-xdist>=3.6.1",
101-
"codeflash>=0.15.4"
101+
"codeflash>=0.15.5"
102102
]
103103

104104
[tool.hatch.metadata]

0 commit comments

Comments
 (0)