pydantic-ai/tests/models
2026-11-20 02:06:41 +00:00
..
anthropic Warn with DeprecatedModelWarning when a request targets a model Anthropic or OpenAI has deprecated (#14038) 2026-11-20 01:09:12 +00:00
bedrock Add ModelResponse.model_id recording the model the agent sent each request to (#11807) 2026-10-29 22:50:50 +00:00
cassettes Check the OpenAI conversation before openai_conversation_id trims history through a response whose stream dropped (#14055) 2026-11-20 02:06:41 +00:00
google Support Gemini 4 Neon (gemini-4-neon) on GoogleModel (#13928) 2026-11-19 00:51:24 +00:00
groq Fix Groq JSON output and reasoning flags, and raise UserError for NativeOutput with function tools on GroqModel (#12667) 2026-11-17 16:38:28 +00:00
openrouter Stop counting OpenRouter's is_byok flag as a usage detail (#13025) 2026-11-15 22:54:47 +00:00
xai Keep the stored xAI function name when replaying WebSearchTool calls (#10021) 2026-11-17 23:30:44 +00:00
__init__.py Gemini model (#6) 2024-10-17 07:06:35 +01:00
citation_utils.py Add structured citations to TextPart (#7434) 2026-10-23 15:27:13 +00:00
conftest.py Cache uploaded documents per XaiModel instance (#12485) 2026-11-17 18:46:28 +00:00
mock_async_stream.py fix: Clean up streaming responses on cancellation (#5313) 2026-05-07 18:57:44 -06:00
mock_openai.py Add anthropic_previous_message_id setting for Anthropic message threads (#12259) 2026-11-18 05:26:44 +00:00
mock_xai.py Store a failed non-streamed XaiModel native tool call as a call part and one return part (#11164) 2026-10-23 20:28:46 +00:00
test_anthropic.py Skip Anthropic content blocks and deltas of a type the SDK doesn't know, with a warning (#13836) 2026-11-18 15:01:16 +00:00
test_anthropic_batch.py Make the typesafe, CodeMode remote and Anthropic batch tests pass on the newest typesafe-sdk, pydantic-monty and anthropic (#13610) 2026-11-17 02:14:54 +00:00
test_anthropic_batch_vcr.py Make the typesafe, CodeMode remote and Anthropic batch tests pass on the newest typesafe-sdk, pydantic-monty and anthropic (#13610) 2026-11-17 02:14:54 +00:00
test_anthropic_bedrock_count_tokens.py Re-record Claude VCR tests on 5-family models and drop tests recorded on retired Claude Sonnet 4 (#11232) 2026-10-26 18:31:21 +00:00
test_anthropic_loaded_capability_instructions.py State loaded deferred capabilities' instructions in the system voice, append their changes, and show them to before_model_request (#11103) 2026-10-26 18:11:40 +00:00
test_anthropic_mid_conversation_system.py [voice-authority] Note text that looks like an application frame in user and tool content instead of escaping it (#11813) 2026-11-12 01:07:45 +00:00
test_azure_grok_schema.py Inline tool schema definitions for Azure Grok deployments (#11155) 2026-10-26 19:42:11 +00:00
test_batch.py Give AgentRunError the failed run's conversation, and add capture_run_conversation(), so a failed turn can be stored (#12324) 2026-11-17 21:22:23 +00:00
test_batch_resume.py Send documents of any media type mimetypes knows, with the format taken from it (#12365) 2026-11-05 14:41:52 +00:00
test_batch_runs.py Give AgentRunError the failed run's conversation, and add capture_run_conversation(), so a failed turn can be stored (#12324) 2026-11-17 21:22:23 +00:00
test_bedrock.py Drop stop_sequences with a warning on Bedrock Converse models that reject it (#13762) 2026-11-17 20:11:23 +00:00
test_bedrock_mantle.py Generalize response-scoped tool call IDs into the tool_call_ids_are_response_scoped profile flag (#13128) 2026-11-13 19:56:57 +00:00
test_bedrock_thread_cancellation.py Stop waiting for a stalled BedrockConverseModel call or stream read when its request is cancelled or times out (#11850) 2026-10-29 22:50:54 +00:00
test_boolean_schema_defs.py Preserve boolean $defs semantics during schema transformation (#10714) 2026-10-20 13:22:35 -05:00
test_cerebras.py Update CerebrasProvider reasoning flags for Qwen 3.8, Kimi K3 and GLM-5.3 (#12746) 2026-11-06 22:17:27 +00:00
test_citations.py Re-record Claude VCR tests on 5-family models and drop tests recorded on retired Claude Sonnet 4 (#11232) 2026-10-26 18:31:21 +00:00
test_cohere.py Preserve Cohere tool_plan in message history and replay it on follow-up requests (#13148) 2026-11-17 18:06:32 +00:00
test_context_lookalike_note.py [voice-authority] Note text that looks like an application frame in user and tool content instead of escaping it (#11813) 2026-11-12 01:07:45 +00:00
test_continuation_stream.py Fail CI when a change adds a real-clock wait to a test or an asyncio primitive to backend-neutral code (#13969) 2026-11-19 13:17:10 +00:00
test_crusoe.py Add ModelResponse.model_id recording the model the agent sent each request to (#11807) 2026-10-29 22:50:50 +00:00
test_decision.py Offer each on-demand capability as a route of its own on a DecisionModel, and keep the capability catalog out of its question framing (#8759) 2026-11-13 02:29:18 +00:00
test_decision_instrumentation.py Add ModelRequestRejectedError, ModelAuthenticationError and ModelNotFoundError model error categories (#11081) 2026-10-26 16:45:19 +00:00
test_deepseek.py Send the max_tokens setting to DeepSeek as max_tokens instead of max_completion_tokens (#12385) 2026-11-04 23:43:00 +00:00
test_deepseek_responses.py Add ModelResponse.model_id recording the model the agent sent each request to (#11807) 2026-10-29 22:50:50 +00:00
test_deprecated_model_warning.py Warn with DeprecatedModelWarning when a request targets a model Anthropic or OpenAI has deprecated (#14038) 2026-11-20 01:09:12 +00:00
test_download_item.py Cache uploaded documents per XaiModel instance (#12485) 2026-11-17 18:46:28 +00:00
test_error_categories.py Raise an HTTP 408 from a provider as ModelTimeoutError (#13838) 2026-11-18 16:30:49 +00:00
test_extra_headers_user_agent.py [extra-headers] Send an extra_headers user-agent in any spelling in place of ours on OpenAI, Anthropic and Groq requests (#12871) 2026-11-09 13:41:35 +00:00
test_fallback.py Count a nested FallbackModel's rejected responses when an outer fallback handles the error it raises (#13325) 2026-11-13 02:47:36 +00:00
test_file_media_types.py Inline +yaml structured-suffix BinaryContent as text in OpenAIChatModel and MistralModel (#12832) 2026-11-19 02:15:07 +00:00
test_finish_reason_maps.py Add tests/manifests.py gates that fail on an unclassified message field, part kind, finish reason, entry-point parameter or span property (#13972) 2026-11-19 07:57:52 +00:00
test_fireworks.py [thinking-profiles] Route Kimi model ids through the Moonshot family profile on FireworksProvider, VercelProvider, OllamaProvider and CerebrasProvider (#12383) 2026-11-16 00:27:59 +00:00
test_github_copilot.py Add framing_announcement setting and only announce the <system> voice tag once a conversation needs it (#12661) 2026-11-10 21:49:11 +00:00
test_google.py Raise a gave-up transport status or connection error from Google embeddings, image generation and GoogleModel.count_tokens as ModelAPIError (#13312) 2026-11-13 00:48:20 +00:00
test_google_batch.py Delete the input file batch_create uploaded when a retrying transport gives up on the job's 4xx (#13479) 2026-11-14 19:23:01 +00:00
test_google_batch_vcr.py Add provider batch API support with a BatchModelRequests capability and a get_wrapper_model capability hook (#10672) 2026-10-27 01:06:09 +00:00
test_google_boolean_schema_defs.py Preserve boolean $defs semantics during schema transformation (#10714) 2026-10-20 13:22:35 -05:00
test_google_decisions.py Add a GoogleDecisionsModel backend for the Gemini Decisions API (#13181) 2026-11-12 01:39:38 +00:00
test_groq.py Add service_tier support to GroqModel (#13521) 2026-11-16 00:06:35 +00:00
test_groq_gateway_cost.py Preserve Gateway costs in Groq streams (#11473) 2026-10-27 00:26:13 +00:00
test_groq_service_tier.py Add service_tier support to GroqModel (#13521) 2026-11-16 00:06:35 +00:00
test_huggingface.py Turn the reasoning field of HuggingFaceModel responses into ThinkingParts (#10910) 2026-11-17 15:46:04 +00:00
test_huggingface_logprobs.py Add huggingface_logprobs and huggingface_top_logprobs to HuggingFaceModelSettings and return logprobs in provider_details (#6855) 2026-11-17 14:31:33 +00:00
test_instrumented.py Add tests/manifests.py gates that fail on an unclassified message field, part kind, finish reason, entry-point parameter or span property (#13972) 2026-11-19 07:57:52 +00:00
test_mcp_sampling.py Fix MCPSamplingModel system prompt separator and conditional <system> announcement (#12488) 2026-11-12 23:58:03 +00:00
test_meta.py Send the least thinking a model accepts for thinking=False on models that can't turn thinking off (#11036) 2026-10-23 21:47:44 +00:00
test_minimax.py Add minimax_model_profile and use it for MiniMax models on Bedrock, OpenAICompatibleProvider, LiteLLMProvider and TogetherProvider (#12693) 2026-11-16 01:15:46 +00:00
test_mistral.py Map Mistral Large 4 thinking levels to its low/medium/high reasoning_effort values (#12876) 2026-11-16 01:37:21 +00:00
test_model.py [voice-authority] Note text that looks like an application frame in user and tool content instead of escaping it (#11813) 2026-11-12 01:07:45 +00:00
test_model_function.py [voice-authority] Note text that looks like an application frame in user and tool content instead of escaping it (#11813) 2026-11-12 01:07:45 +00:00
test_model_names.py Deprecate DEPRECATED_ANTHROPIC_MODELS, which Pydantic AI no longer uses (#13795) 2026-11-18 03:09:55 +00:00
test_model_request_parameters.py Add ToolDefinition.durable to run a tool outside its durable unit on every durable execution engine (#13214) 2026-11-17 20:41:38 +00:00
test_model_settings.py Support top_k in GoogleModel, AnthropicModel, and CohereModel (#5558) 2026-05-21 12:37:52 -06:00
test_model_settings_delta.py List Claude Fable 5.2 on Bedrock (global.anthropic.claude-fable-5-2) and send per-message effort to it on OpenRouter (#13037) 2026-11-10 15:09:17 +00:00
test_model_settings_support.py Add a GoogleDecisionsModel backend for the Gemini Decisions API (#13181) 2026-11-12 01:39:38 +00:00
test_model_test.py Rename $refs under every JSON schema keyword in merge_json_schema_defs, and keep TestModel arguments valid for their schemas (#13993) 2026-11-19 20:54:50 +00:00
test_multimodal_tool_returns.py Send structured tool return items next to a file to the model as JSON, not as escaped JSON strings (#13271) 2026-11-12 23:35:04 +00:00
test_native_tool_settings_support.py Send FileSearchTool.max_num_results to OpenAI Responses (#12728) 2026-11-09 13:26:47 +00:00
test_ollama.py Send Ollama max_tokens setting as max_tokens, not max_completion_tokens (#12552) 2026-11-16 01:44:02 +00:00
test_openai.py Raise ModelRequestRejectedError before OpenAIChatModel sends tools to GPT-6 models with reasoning on (#12264) 2026-11-17 01:45:23 +00:00
test_openai_batch.py Add openai_safety_identifier model setting (#12258) 2026-11-16 22:22:08 +00:00
test_openai_batch_vcr.py Add provider batch API support with a BatchModelRequests capability and a get_wrapper_model capability hook (#10672) 2026-10-27 01:06:09 +00:00
test_openai_chat_finish_reason.py [complexity] Split models/openai.py into a models/openai/ package (#13102) 2026-11-11 01:55:33 +00:00
test_openai_chat_stream_parity.py Speed up CI by fixing the slowest tests, balancing shards by measured duration, and guarding test cost (#10054) 2026-10-09 14:05:31 -06:00
test_openai_code_interpreter_stream.py Preserve initial code in streamed code_interpreter_call events (#11166) 2026-10-26 22:40:35 +00:00
test_openai_codex.py Stop sending explicit prompt caching fields to the openai-codex backend (#10103) 2026-10-12 11:28:55 +02:00
test_openai_decisions.py Fail CI when a change adds a real-clock wait to a test or an asyncio primitive to backend-neutral code (#13969) 2026-11-19 13:17:10 +00:00
test_openai_json_pointer_refs.py Handle JSON-pointer $refs and draft-07 definitions in MCP TypeScript SDK tool schemas (#9643) 2026-10-06 15:12:07 -05:00
test_openai_legacy_timeout.py Bump anyio dev floor to 4.11 and run async tests via anyio_mode = "auto" (#8874) 2026-09-28 08:45:29 +00:00
test_openai_prompt_cache.py [voice-authority] Note text that looks like an application frame in user and tool content instead of escaping it (#11813) 2026-11-12 01:07:45 +00:00
test_openai_responses.py Check the OpenAI conversation before openai_conversation_id trims history through a response whose stream dropped (#14055) 2026-11-20 02:06:41 +00:00
test_openai_responses_stream_parity.py Verify and document explicit prompt caching for GPT-5.6 and later on the Azure OpenAI v1 API (#11524) 2026-10-28 22:19:28 +00:00
test_openai_responses_ws.py Fail CI when a change adds a real-clock wait to a test or an asyncio primitive to backend-neutral code (#13969) 2026-11-19 13:17:10 +00:00
test_openai_safety_identifier.py Add openai_safety_identifier model setting (#12258) 2026-11-16 22:22:08 +00:00
test_openai_stream.py Build the same ModelResponse from streamed and complete OpenAIChatModel and OpenRouterModel responses (#9418) 2026-10-01 17:16:30 -06:00
test_openai_stream_part_boundaries.py Preserve text and reasoning part boundaries in OpenAIChatModel streams (#8729) 2026-10-02 20:28:31 -05:00
test_openai_strict_schema.py Raise UserError from JsonSchemaTransformer on nodes that are not JSON Schemas (#8620) 2026-11-05 00:00:14 +00:00
test_openai_tool_availability_delta.py Let OpenAIResponsesModel force a tool revealed mid-run on models before GPT-5.6 (#10273) 2026-10-23 20:57:27 +00:00
test_openrouter.py Fall back to 'auto' or raise ModelRequestRejectedError for forced tool choice on OpenRouter's qwen/qwen3.8-flash, which rejects forcing while reasoning (#12262) 2026-11-17 18:05:39 +00:00
test_pptx_document_input.py Send documents of any media type mimetypes knows, with the format taken from it (#12365) 2026-11-05 14:41:52 +00:00
test_prompt_cache_retention.py Add unified cache setting and Caching capability for cross-provider prompt caching (#7560) 2026-10-08 09:57:56 -06:00
test_request_scoped_system_prompts.py [voice-authority] Add CapabilityPart, a request part for what a capability tells the model, rendered by the framework before any model sees it (#11935) 2026-11-17 18:29:35 +00:00
test_response_scoped_tool_call_ids.py Generalize response-scoped tool call IDs into the tool_call_ids_are_response_scoped profile flag (#13128) 2026-11-13 19:56:57 +00:00
test_snowflake.py Carry non-native thinking in a user turn for Claude on OpenAI-compatible providers via OpenAIChatModel and OpenAIResponsesModel (#11410) 2026-10-26 21:52:44 +00:00
test_stream_close.py Add streaming support to CohereModel (#6100) 2026-11-03 16:06:52 +00:00
test_streamed_continuation.py Add a ModelFallback capability, a per-attempt prepare_model_request hook, and RetryModelRequest (#9348) 2026-10-28 21:27:01 +00:00
test_streamed_tool_call_deltas.py Add ModelResponse.model_id recording the model the agent sent each request to (#11807) 2026-10-29 22:50:50 +00:00
test_system_one.py Accept unrounded float probabilities and scores from SystemOneModel backends like vLLM (#11092) 2026-10-22 23:43:05 +00:00
test_system_voice_fallback.py [voice-authority] Note text that looks like an application frame in user and tool content instead of escaping it (#11813) 2026-11-12 01:07:45 +00:00
test_tool_choice_matrix.py Re-record Claude VCR tests on 5-family models and drop tests recorded on retired Claude Sonnet 4 (#11232) 2026-10-26 18:31:21 +00:00
test_tool_choice_unit.py Move the Anthropic module-level helpers from models/anthropic/__init__.py into private submodules (#13900) 2026-11-18 22:07:37 +00:00
test_typesafe.py Make the typesafe, CodeMode remote and Anthropic batch tests pass on the newest typesafe-sdk, pydantic-monty and anthropic (#13610) 2026-11-17 02:14:54 +00:00
test_typesafe_output_matrix.py Target py311 in Ruff and modernize compatible syntax (#9854) 2026-10-06 07:07:09 -04:00
test_unattributed_compaction.py Send a request-side CompactionPart from OpenAIDecisionsModel as framed user text (#13478) 2026-11-14 18:49:15 +00:00
test_unsupported_setting_warning.py Lock the workspace on FastMCP 4 and test FastMCP 3 in its own CI job (#13721) 2026-11-18 11:52:40 +00:00
test_xai.py Add tests/manifests.py gates that fail on an unclassified message field, part kind, finish reason, entry-point parameter or span property (#13972) 2026-11-19 07:57:52 +00:00
test_xai_service_tier.py Forward service_tier to xAI and record the served tier in provider_details (#13524) 2026-11-17 02:08:19 +00:00
test_zai.py Update dependencies and GitHub Actions and mark omitted usage as unmeasured (#11912) 2026-10-30 18:09:05 +00:00
xai_proto_cassettes.py Replay xAI server-side tool results as tool turns paired with their calls (#10043) 2026-10-13 13:08:38 +02:00