Skip to content

v2.23.4

Choose a tag to compare

@luk384090-cloud luk384090-cloud released this 26 Oct 07:05
· 11 commits to main since this release
f356d19

What's Changed

🚀 New Features

Agent Model Config: maxTokens/temperature Parameters (#284)

  • ModelConfig gains optional inference parameters: temperature, max_tokens, enable_thinking, thinking_budget
  • Added builder(), toBuilder() and of(id) factory methods
  • model(String) / model(ModelConfig) builder aliases; setModel(String) as alias of setModelConfig
  • AgentCreateParam now validates model.id client-side
  • Fixed streaming: tolerate non-object delta payload (typed as JsonElement instead of JsonObject)
  • Fixed stream iterator to fail fast on second pass instead of blocking

🔧 Improvements

Image Synthesis: Multimodal Model Check (#283)

  • Added MULTIMODAL_MODEL_PREFIXES constant for models that only run on multimodal generation endpoints
  • Implemented checkMultimodalModel to verify and throw exceptions for multimodal models
  • Invoked model check in asyncCall, syncCall, and call methods
  • Updated documentation to clarify multimodal models should use ImageGeneration class
  • Added unit tests for rejecting multimodal models in synchronous calls

📊 Statistics

  • 2 PRs merged
  • 456 lines added
  • 20 new test cases added

🙌 Contributors

@foleydang
@luk384090-cloud


Full Changelog: v2.23.3...v2.23.4