CommandCodeAI / CommandCodeAI/command-code

Getting error on gpt models

Open
#778 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
4k
Forks
350
PR merge metrics
No merged PRs in 30d

Description

Summary

Error: 400 [OpenAI] Invalid 'input[10].name': string too long. Expected a string with maximum length 128, but got a string with length 134 instead.

Type "continue" to try again. If the issue persists, contact support: https://commandcode.ai/discord
Trace ID: e22dabbdaa260b594df3640bc7ec0040

Expected Behavior

Error: 400 [OpenAI] Invalid 'input[10].name': string too long. Expected a string with maximum length 128, but got a string with length 134 instead.

Type "continue" to try again. If the issue persists, contact support: https://commandcode.ai/discord
Trace ID: e22dabbdaa260b594df3640bc7ec0040

Actual Behavior

Error: 400 [OpenAI] Invalid 'input[10].name': string too long. Expected a string with maximum length 128, but got a string with length 134 instead.

Type "continue" to try again. If the issue persists, contact support: https://commandcode.ai/discord
Trace ID: e22dabbdaa260b594df3640bc7ec0040

Steps to reproduce the issue

Error: 400 [OpenAI] Invalid 'input[10].name': string too long. Expected a string with maximum length 128, but got a string with length 134 instead.

Type "continue" to try again. If the issue persists, contact support: https://commandcode.ai/discord
Trace ID: e22dabbdaa260b594df3640bc7ec0040

Command Code Version

Unknown

Operating System

Windows

Terminal/IDE

Unknown

Shell

cmd.exe

Session file (optional)

No response

Fix prompt (optional)

No response

Additional context

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report names no source file, test, or entry point. Start by reproducing the error with a GPT model on Windows using cmd.exe, then trace where the OpenAI input name exceeds 128 characters. Done means the request no longer produces this validation error and a regression test covers the failing case.

Written by the indexing model from the issue text.

Assessment

Domain
ai, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.