Skip to content

Commit 4a2919a

Browse files
author
whrho
committed
fix: DeepSeek-like upstreams에 reasoning_content 필드 제거 추가
nano-gpt.com 등 DeepSeek-like 업스트림으로 요청 전송 시 assistant 메시지의 reasoning_content 필드를 제거하지 않아 400 에러가 발생하던 문제 수정. stripProviderUnsupportedFields에서 reasoning_content 제거 로직을 Mistral에만 적용하던 것을 DeepSeek-like(nano-gpt.com 포함)에도 확장.
1 parent 39740dc commit 4a2919a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/runtime/executor/openai_compat_executor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ func (e *OpenAICompatExecutor) stripProviderUnsupportedFields(auth *cliproxyauth
910910
}
911911
}
912912
}
913-
if !isMistral {
913+
if !isMistral && !isDeepSeekLike {
914914
return payload
915915
}
916916
messages := gjson.GetBytes(payload, "messages")

0 commit comments

Comments
 (0)