Explain failures caused by models without tool support

This commit is contained in:
Thorsten Sommer committed 2026-09-11 10:48:38 +02:00
1 parent 3dfbc2cd07
commit 6111631b3c
5 files changed
+91 -2

No files matched your search

@@ -48,6 +48,16 @@ public enum ProviderRequestFailureReason
/// </summary>
CONTEXT_LENGTH_EXCEEDED,
/// <summary>
/// The request offered the model some tools, and the model cannot use them.
/// </summary>
/// <remarks>
/// AI Studio assumes that a model it has never heard of is able to call tools. Most of them
/// are, and new ones keep appearing faster than any list can follow. The few which are not
/// say so when they are asked, and this is that answer.
/// </remarks>
TOOLS_NOT_SUPPORTED,
/// <summary>
/// The provider cannot create embeddings at all.
/// </summary>