KEMBAR78
Add default audio configuration and modalities by devcrocod · Pull Request #817 · JetBrains/koog · GitHub
Skip to content

Conversation

devcrocod
Copy link
Contributor

Fix KG-298 Throw error when passing audio models to text I/O

Breaking Changes

No


Type of the changes

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Tests improvement
  • Refactoring

Checklist

  • The pull request has a description of the proposed change
  • I read the Contributing Guidelines before opening the pull request
  • The pull request uses develop as the base branch
  • Tests for the changes have been added
  • All new and existing tests passed

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue where audio-capable models were not properly handling text-only I/O operations. The fix ensures that when using audio-capable models without explicit audio configuration, default audio settings are provided while properly setting modalities.

  • Decouples modalities configuration from audio configuration presence
  • Adds default audio configuration for audio-capable models when no explicit audio config is provided
  • Updates the request building logic to use the determined audio configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@github-actions
Copy link

Qodana for JVM

871 new problems were found

Inspection name Severity Problems
Check Kotlin and Java source code coverage 🔶 Warning 826
Missing KDoc for public API declaration 🔶 Warning 24
Vulnerable imported dependency 🔶 Warning 21
@@ Code coverage @@
+ 68% total lines covered
11764 lines analyzed, 8006 lines covered
# Calculated according to the filters of your coverage tool

☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

@aozherelyeva aozherelyeva merged commit e868e5e into develop Sep 22, 2025
9 checks passed
@aozherelyeva aozherelyeva deleted the devcrocod/KG-298 branch September 22, 2025 13:39
karloti pushed a commit to karloti/koog that referenced this pull request Sep 25, 2025
Fix [KG-298](https://youtrack.jetbrains.com/issue/KG-298) Throw error
when passing audio models to text I/O

## Breaking Changes
No

---

#### Type of the changes
- [ ] New feature (non-breaking change which adds functionality)
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Tests improvement
- [ ] Refactoring

#### Checklist
- [x] The pull request has a description of the proposed change
- [x] I read the [Contributing
Guidelines](https://github.com/JetBrains/koog/blob/main/CONTRIBUTING.md)
before opening the pull request
- [x] The pull request uses **`develop`** as the base branch
- [ ] Tests for the changes have been added
- [x] All new and existing tests passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants