Skip to content

Commit 4c00aaa

Browse files
misrasaurabh1KRRT7
authored andcommitted
Apply suggestions from code review
1 parent 0de5b35 commit 4c00aaa

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
@@ -103,7 +103,7 @@ dev = [
103103
"boto3-stubs[bedrock-runtime]",
104104
"strict-no-cover>=0.1.1",
105105
"pytest-xdist>=3.6.1",
106-
"codeflash>=0.15.4"
106+
"codeflash>=0.15.5"
107107
]
108108

109109
[tool.hatch.metadata]

0 commit comments

Comments
 (0)