Hello Replicate team,
Thank you for adding support for configuring user agent strings for requests in #2620 and #2656!
However, there is an issue with the implementation. Due to the regex pattern, user agent string with whitespace characters like the following are not allowed to be set in the cog.yaml config:
environment:
- COG_USER_AGENT=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
It would be great if the schema regex was updated to allow quoted strings or escape sequences.
|
"pattern": "^[A-Za-z_][A-Za-z0-9_]*=[^\\s]+$" |
Hello Replicate team,
Thank you for adding support for configuring user agent strings for requests in #2620 and #2656!
However, there is an issue with the implementation. Due to the regex pattern, user agent string with whitespace characters like the following are not allowed to be set in the cog.yaml config:
It would be great if the schema regex was updated to allow quoted strings or escape sequences.
cog/pkg/config/data/config_schema_v1.0.json
Line 227 in 7901528