Cline SDK v0.0.91: Improved Finish Handling, Auth Metadata, and Provider Updates
Cline SDK v0.0.91 refines completion handling logic, exposes new provider metadata, expands tracing support, and updates model/provider lists. These changes improve reliability and compatibility for developers integrating multiple AI providers.
What changed?
SDK v0.0.91 for the Cline SDK introduces several updates: - Responses that end with a missing or unrecognized finish reason are no longer counted as successful completions. The AgentModelFinishReason enum now includes 'unknown', mapping unified 'other' and missing reasons instead of treating these as 'stop'. - The Anthropic provider sends the server-side 'fallbacks' option only to api.anthropic.com, preventing 400 errors with custom endpoints. - Providers including openai-compatible, ollama, lmstudio, litellm, vertex, bedrock, and user-added endpoints now declare an apiKeyOptional fact in metadata. - Queued user messages are now consumed at every request boundary. - The default model catalog was refreshed (adds Solar Mini 4, drops DeepSeek V4.1 Flash and space-bunny-alpha, updates several defaults, and adds the Engy provider). - Opt-in Langfuse tracing is now available for BYOK providers via new environment variables.
Why does it matter to an everyday developer?
These changes improve reliability when handling AI completions, especially for agents and workflows that depend on precise finish signals and robust error handling. The 'unknown' finish state prevents false positives, allowing developers to better manage partial or ambiguous completions automatically. By restricting Anthropic-specific options to compatible endpoints, developers avoid unnecessary errors when working with custom deployments. The new apiKeyOptional metadata allows dynamic authentication handling, letting applications determine which providers work without an API key. Model and provider list updates keep the SDK current with supported models and services, reducing friction when accessing new or deprecated offerings.
What can the developer do now?
Developers should upgrade to Cline SDK v0.0.91 to benefit from improved completion result handling and avoid errors with custom Anthropic endpoints. Review how your code handles finish reasons and partial agent responses. Use the new apiKeyOptional provider metadata to build adaptive authentication UIs or automate provider selection. For advanced monitoring, leverage the Langfuse tracing integration by configuring the supplied environment variables. If using the free model list or specific providers, check that your integration reflects the latest supported and default models.
