Skip to content

Commit effda63

Browse files
committed
Try to fix tests
1 parent 9939f52 commit effda63

File tree

2 files changed

+9
-43
lines changed

2 files changed

+9
-43
lines changed

pydantic_ai_slim/pydantic_ai/models/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ def tool_defs(self) -> dict[str, ToolDefinition]:
389389
class Model(ABC):
390390
"""Abstract class for a model."""
391391

392-
_profile: ModelProfileSpec | None
393-
_settings: ModelSettings | None
392+
_profile: ModelProfileSpec | None = None
393+
_settings: ModelSettings | None = None
394394

395395
def __init__(
396396
self,

tests/models/cassettes/test_model_names/test_known_model_names.yaml

Lines changed: 7 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -99,53 +99,19 @@ interactions:
9999
alt-svc:
100100
- h3=":443"; ma=86400
101101
content-length:
102-
- '762'
102+
- '99'
103103
content-type:
104104
- application/json
105105
referrer-policy:
106106
- strict-origin-when-cross-origin
107107
strict-transport-security:
108108
- max-age=3600; includeSubDomains
109109
parsed_body:
110-
data:
111-
- created: 0
112-
id: qwen-3-32b
113-
object: model
114-
owned_by: Cerebras
115-
- created: 0
116-
id: qwen-3-coder-480b
117-
object: model
118-
owned_by: Cerebras
119-
- created: 0
120-
id: qwen-3-235b-a22b-thinking-2507
121-
object: model
122-
owned_by: Cerebras
123-
- created: 0
124-
id: qwen-3-235b-a22b-instruct-2507
125-
object: model
126-
owned_by: Cerebras
127-
- created: 0
128-
id: gpt-oss-120b
129-
object: model
130-
owned_by: Cerebras
131-
- created: 0
132-
id: llama-3.3-70b
133-
object: model
134-
owned_by: Cerebras
135-
- created: 0
136-
id: llama-4-scout-17b-16e-instruct
137-
object: model
138-
owned_by: Cerebras
139-
- created: 0
140-
id: llama-4-maverick-17b-128e-instruct
141-
object: model
142-
owned_by: Cerebras
143-
- created: 0
144-
id: llama3.1-8b
145-
object: model
146-
owned_by: Cerebras
147-
object: list
110+
code: wrong_api_key
111+
message: Wrong API Key
112+
param: api_key
113+
type: invalid_request_error
148114
status:
149-
code: 200
150-
message: OK
115+
code: 401
116+
message: Unauthorized
151117
version: 1

0 commit comments

Comments
 (0)