Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.
This repository was archived by the owner on May 15, 2026. It is now read-only.

Code Index error #7356

Closed
Closed

Description

@BenLampson

App Version

3.25.23

API Provider

OpenAI Compatible

Model Used

text-embedding-v4

Roo Code Task Links (Optional)

No response

🔁 Steps to Reproduce

  1. Config the Code index feature
  2. Click the Start Indexing button

💥 Outcome Summary

Image

📄 Relevant Logs or Errors (Optional)

Activity

  1. added
    bug
    on Aug 23, 2025
  2. added
    Issue/PR - Triage
    on Aug 23, 2025
  3. ghost added a commit that references this issue on Aug 23, 2025
    f31560a
  4. BenLampson commented on Aug 23, 2025

    @BenLampson
    Author

    Maybe I means that you can create the new textinput, the user can use this textinput to set how much bacth can model use.

    And you can create the more detail log, to show what you do in the code index, currently I don't know is the model not support or just is Roo Code's bug

  5. BenLampson commented on Aug 23, 2025

    @BenLampson
    Author

    I've opened PR #7357 with a fix for this issue: #7357

    The fix includes:

    1. Added support for text-embedding-v4 model in the OpenAI Compatible provider configuration
    2. Enhanced error handling in the startIndexing process to properly catch and display initialization errors
    3. User-friendly error messages that provide actionable information to help resolve configuration issues

    The changes ensure that when there's a configuration error (like an unsupported model), users will see a clear error message instead of the generic error shown in your screenshot.

    All tests are passing and the PR is ready for review. Feedback welcome!

    How can I test this version's roo code?

  6. moved this from Triage to Issue [In Progress] in Roo Code Roadmapon Aug 26, 2025
  7. added
    Issue - In Progress
    and removed
    Issue/PR - Triage
    on Aug 26, 2025
  8. daniel-lxs commented on Aug 27, 2025

    @daniel-lxs
    Member

    Looking at your error screenshot, the actual issue is that your API provider has a batch size limit. The error message shows: "batch size is invalid. It should not be larger than 10" while the system is trying to process batches of 400 items.

    The solution would be to create a new VSCode extension setting to allow users to configure the embedding batch size. This would be a proper VSCode setting (in the extension's package.json configuration contribution points), not in our internal settings view.

    The setting could be something like:

    • roo-code.codeIndex.embeddingBatchSize
    • Default value: keep the current default (400 or whatever it currently is)
    • Users can then adjust it based on their API provider's limits (in your case, setting it to 10)

    This way, users with providers that have stricter batch limits can configure it appropriately without affecting the default experience for others.

  9. daniel-lxs commented on Aug 27, 2025

    @daniel-lxs
    Member

    @roomote-agent create a PR based on my previous comment

  10. ghost added a commit that references this issue on Aug 27, 2025
    da98690
  11. moved this from Issue [In Progress] to Done in Roo Code Roadmapon Sep 2, 2025
  12. hujianxin commented on Sep 3, 2025

    @hujianxin

    that not works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - In Progressbug

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions