Skip to content

AI 에이전트: gpt-6 계열에서 턴마다 400 나던 것 고침 (geny-executor 2.67.1) - #19

Merged
CocoRoF merged 1 commit into
mainfrom
fix/openai-gpt6-agent
Oct 11, 2026
Merged

CocoRoF merged 1 commit into
mainfrom
fix/openai-gpt6-agent

Conversation

@CocoRoF

@CocoRoF CocoRoF commented Oct 11, 2026

Copy link
Copy Markdown
Owner

무엇이 문제였나

운영 채팅 기본값이 OpenAI gpt-6-luna 로 바뀐 뒤 AI 에이전트 턴이 전부 실패했습니다. 응시자 화면에는 "AI 처리 중 오류가 났습니다"가 떴고, 운영 로그는 이렇습니다.

Function tools with reasoning_effort are not supported for gpt-6-luna in /v1/chat/completions. To use function tools, use /v1/responses or set reasoning_effort to 'none'.

원인은 geny-executor 2.65.6 입니다. 이 판은 추론 모델을 o1·o3·o4·gpt-5 접두어로만 알아봅니다. 그래서 gpt-6-luna 의 도구 턴을 Responses 대신 chat/completions 로 보냈습니다.

고친 것

  • geny-executor 2.67.1 을 새로 냈습니다(2.79.1: OpenAI gpt-6 and later are reasoning families geny-executor#253 과 같은 수정을 2.67 줄에 얹은 판).
    • gpt-5 이후 세대를 번호로 알아봅니다.
    • 벤더가 "추론 모델"이라고 알려 주면 그 모델을 기억합니다.
    • 도구와 추론을 같이 못 쓴다는 400 이 나면 reasoning_effort: none 으로 한 번 다시 보냅니다.
  • requirements.lock 은 2.67.1 로 바꿨습니다. requirements.txt 는 >=2.67.1,<2.68 로 묶었습니다(2.68 부터는 Claude Code 경로가 바뀝니다).
    • 2.65.6 에서 2.67.0 사이의 llm_client 변경은 추가뿐이고, claude_code.py 와 의존성 목록은 그대로입니다.

확인

운영 api 컨테이너 안의 임시 경로에 판을 따로 깔고, 운영과 같은 공급자(gpt-6-luna) 설정으로 비교했습니다.

판 메신저 답장 에이전트 도구 호출
2.65.6 (지금 운영) 정상 400
2.79.0 정상 400
2.67.1 정상 tool_use 정상

geny-executor 시험: llm_client 와 라우팅 507건 통과(2.67 줄). 2.79.1 브랜치에서는 unit 과 contract 4,610건이 통과했습니다.

🤖 Generated with Claude Code

운영 채팅 기본값이 OpenAI gpt-6-luna 인데, geny-executor 2.65.6 이 이 모델을
추론 모델로 알아보지 못해 에이전트 턴(도구 포함)을 chat/completions 로 보냈다.
OpenAI 는 추론 모델에 도구를 그 경로로 못 싣게 해서 턴마다 400 이었다
("Function tools with reasoning_effort are not supported ... use /v1/responses").

geny-executor 2.67.1 은 gpt-5 이후 세대를 번호로 알아보고 도구 턴을 Responses
경로로 보낸다. 2.68 부터는 Claude Code 경로가 바뀌므로 2.67 줄에 고정한다.
운영 컨테이너 안에서 실제 gpt-6-luna 로 확인: 2.65.6 은 에이전트 400,
2.67.1 은 tool_use 로 정상, 메신저 답장도 정상.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@CocoRoF
CocoRoF merged commit 50df3bf into main Oct 11, 2026
7 of 8 checks 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.

1 participant