Switch to langchain 1.x This also results in upgrading of dependent langchain libraries. You need to ensure your code works with the upgraded dependencies. Langchain 0.3.x is no longer supported in the SDK. Please refer to Package dependencies for details on the dependencies.
Switch from langchain-google-vertexai to langchain-google-genai and google-cloud-aiplatform to google-genai due to deprecation of these libraries
Added support for new models: Claude 4.5 Sonnet, Claude 4.5 Haiku, Cohere Command-a-reasoning, Cohere reranker, Gemini 2.5 Flash Lite, Perplexity Sonar, Perplexity Sonar-Pro, Mistral Medium
Removed decomissioned models: IBM granite 13b, Meta Llama 3.1, Claude 3 Opus
Added retry logic for orchestration service with exponential backoff. Use method "run_with_retries" instead of "run" for your orchestration service instance.
Added support for new models: Amazon Nova Premier, Claude 4 Opus, Gemini 2.5-flash, Gemini 2.5-pro, GPT-5, GPT-5-mini, GPT-5-nano, Mistral Small Instruct. See Supported Models for a comprehensive overview of supported models.
Removed old models: Amazon Titan Text Express/Lite, Gemini 1.5-flash, Gemini 1.5-pro, Claude 3 Sonnet
Allow botocore.config as input for Amazon Bedrock to set additional parameters, e.g. connect_timeout
Switch to different distribution name as part of a rebranding to SAP Cloud SDK for AI (Python) - generative. See Installation for details. The package and subpackage names are unchanged, therefore no code adjustment is necessary, only the installation of the SDK has changed.
Add support for LlamaGuard38b content filtering in the orchestration service. You can use LlamaGuard38b filters for filtering input and output along different content categories, see SAP AI Core help documentation. For usage examples, see Content Filtering
Add support for prompt registry APIs. You can create, retrieve and modify prompt templates from the prompt repository. For example usage, see Prompt Registry
Add support for grounding in orchestration. You can now configure the grounding module in the orchestration service.
Add support for structured output in the orchestration service by specifying the response format, for instance text or json. See Response Format Options for details.
OpenAI deprecated max_tokens in favor of max_completion_tokens parameter. This was now also included in the generative AI Hub SDK and the dependency of the langchain-openai version could be relaxed.
Add support for prompt registry templates in orchestration. You can now configure a prompt registry template in the orchestration service call by referencing the ID or scenario, template name, and version. See Prompt Registry
Switch to langchain 0.3.x This also results in upgrading of dependent langchain libraries and a transition to pydantic v2. You need to ensure your code works with the upgraded dependencies. Langchain 0.2.x is no longer supported in the SDK. Please refer to Package dependencies for details on the dependencies.