1. Reference Section
  2. LLM Models

Reference Section

LLM Models

List of supported LLM providers and models in Stubber

OpenAI

OpenAI models are used with their standard API format with the following modifications:

O-Type Models

  • o3-mini and o4-mini: We delete the temperature field as these models don't support it
  • All O-type models: We convert image URLs into data URIs (some O-type models do not support images at all, e.g., o3-mini)

OpenAI Models

loading...

Anthropic (Claude)

Anthropic models require specific message format conversions:

Message Processing

  • Consecutive roles: Anthropic does not support consecutive roles, so we combine consecutive role messages into a single message with the messages.content into an array of the messages
  • System messages: The system messages are extracted and concatenated to be a single top-level system message parameter as Anthropic does not support system messages in the conversation flow
  • Conversation start: Anthropic calls have to start with a user message. If it doesn't start with one, we inject a simple one that just says "hi"

Image Understanding

For Anthropic, Stubber accepts the normal OpenAI specification of image understanding messages:

loading...

Before these messages are sent to Anthropic, we convert them to their structure, which can be seen here.

Claude Models

loading...

Google Gemini

Gemini models have specific requirements and limitations:

Message Processing

  • System message limitation: Gemini models cannot be used with only a system message - they require at least one user message
  • Image processing: We convert image URLs into data URIs for compatibility

Gemini Models

loading...

Other Providers

Additional Models

loading...

General Operations Applied to All Providers

Function Method Determination

We determine which function method to use based on the model and the provider:

  • Models released after May 2025: Default to supplying functions to providers as tools
  • Models released before May 2025: Default to supplying functions to providers as functions

This is mostly abstracted for users and they do not need to worry about it, but you can specify a specific function method for a model as a parameter (see function_method).

If a specific chat already had a function call following a specific function method, then future iterations of that chat will also use that same function method. For example, if you use a new model (which uses tools) and then switch to an older function type model in the same chat, the older function type model would also use tools.

Tool Result Injection

For tools, tool messages from LLMs must be followed by a tool result. If there is a scenario where users disable dynamic tasks (which we use to inject tool results after function calls), then Stubber will inject a simple tool result of:

loading...

All Supported Models

The following table shows all supported models and their capabilities:

Model Name Provider Function Calling Image Understanding
gpt-3.5-turbo OpenAI
gpt-3.5-turbo-0125 OpenAI
gpt-3.5-turbo-instruct OpenAI
gpt-3.5-turbo-0613 OpenAI
gpt-3.5-turbo-1106 OpenAI
gpt-3.5-turbo-16k OpenAI
gpt-3.5-turbo-16k-0613 OpenAI
gpt-4 OpenAI
gpt-4-0613 OpenAI
gpt-4-32k OpenAI
gpt-4-32k-0613 OpenAI
gpt-4-turbo OpenAI
gpt-4-turbo-2024-04-09 OpenAI
gpt-4-turbo-preview OpenAI
gpt-4-1106-preview OpenAI
gpt-4-0125-preview OpenAI
gpt-4-vision-preview OpenAI
gpt-4o OpenAI
gpt-4o-2024-05-13 OpenAI
gpt-4o-2024-08-06 OpenAI
gpt-4o-mini OpenAI
gpt-4o-mini-2024-07-18 OpenAI
gpt-4.5-preview OpenAI
gpt-4.1 OpenAI
gpt-4.1-mini OpenAI
gpt-4.1-nano OpenAI
o1 OpenAI
o1-preview OpenAI
o1-mini OpenAI
o3-mini OpenAI
o4-mini OpenAI
claude-3-haiku-20240307 Anthropic
claude-3-sonnet-20240229 Anthropic
claude-3-opus-20240229 Anthropic
claude-3-5-sonnet-20240620 Anthropic
claude-3-7-sonnet-20250219 Anthropic
claude-sonnet-4 Anthropic
claude-opus-4 Anthropic
gemini-1.5-flash Google
gemini-1.5-flash-8b Google
gemini-1.5-pro Google
gemini-2.0-flash Google
gemini-2.0-flash-lite Google
gemini-2.0-pro-exp Google
gemini-2.5-pro-exp Google
gemini-2.5-pro-preview Google
gemini-2.5-flash-preview Google
gemini-2.5-pro Google
di-llama-3-70b-instruct DeepInfra
gq-llama-3-8b Groq
gq-llama-3-70b Groq
gq-llama-4-scout-17b Groq
gq-llama-4-maverick-17b Groq
grok-beta xAI
grok-vision-beta xAI
fw-deepseek-r1 Fireworks
fw-deepseek-v3 Fireworks