Update packages/config-yaml/src/validation.ts

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Aditya Mitra 2026-02-11 10:11:34 +05:30 • committed by GitHub
parent ccd9d15fda
commit 8160711097
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,7 +47,7 @@ export function validateConfigYaml(
if (model.requestOptions?.headers) {
for (const [key, value] of Object.entries(model.requestOptions.headers)) {
if (containsUnicode(value)) {
if (containsUnicode(key) || containsUnicode(value)) {
errors.push({
fatal: true,
message: `Model "${model.name}" has a request header "${key}" containing unicode characters. Request headers should only contain ASCII characters.`,