Skip to content

refactor(config): Use generalized model request timeout for API calls - #746

Merged
haiphucnguyen merged 2 commits into
askimo-ai:mainfrom
toktokbr:feature/add-model-request-timeout-config
Oct 3, 2026
Merged

haiphucnguyen merged 2 commits into
askimo-ai:mainfrom
toktokbr:feature/add-model-request-timeout-config

Conversation

@toktokbr

@toktokbr toktokbr commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Allow user can config the request model timeout though its value is stored in the configurable setting

data class ModelTimeoutsConfig(
    val utilityModelTimeoutSeconds: Long = 600,
    val defaultModelTimeoutSeconds: Long = 600,
)

Related Issue(s)

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 📝 Documentation
  • ♻️ Refactor (no functional change)
  • 🧪 Tests
  • 🔧 Chore / tooling / CI

What Changed & Why

How to Test

./gradlew test

Screenshots / Recordings (if applicable)

Screenshot 2026-10-03 at 10 34 27 AM

Checklist

  • I have read the CONTRIBUTING guide
  • My branch is up to date with main
  • I ran ./gradlew spotlessApply and ./gradlew detekt locally
  • I ran ./gradlew test and all tests pass
  • I added/updated tests for my changes (if applicable)
  • I added/updated documentation (if applicable)
  • My commits are signed off (DCO) — git commit -s
  • This PR is focused on a single feature/fix

Additional Notes

- Replaces dedicated summarization timeout with a general model request timeout setting.
- Centralizes timeout management in `AppConfig` for consistent application across all providers.
- Updates CLI, desktop, and service layers to utilize the new configuration field.
- Updates internationalization (i18n) keys and descriptions globally to reflect "Request Timeout."

BREAKING CHANGE: The dedicated `summarizationTimeoutSeconds` field is replaced by `requestTimeoutInSeconds` in `AppConfig`. All components consuming model timeout values (including providers, chat services, and CLI) must be updated to use `AppConfig.models.requestTimeoutInSeconds`.
@CLAassistant

CLAassistant commented Oct 3, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@haiphucnguyen haiphucnguyen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you @toktokbr ! Also appreciate to take the cli module

@haiphucnguyen
haiphucnguyen merged commit 13ab3db into askimo-ai:main Oct 3, 2026
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.

3 participants