mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-04 03:32:25 +08:00
Fix/opencode known field editors (#2907)
* fix: add opencode model limit editor * fix: add opencode headers editor * style: refine opencode advanced field layout * fix: preserve valid opencode headers * fix: preserve opencode extra options and sync translations --------- Co-authored-by: wzk <wx13571681304@outlook.com> Co-authored-by: Jason Young <44939412+farion1231@users.noreply.github.com> Co-authored-by: Jason <farion1231@gmail.com>
This commit is contained in:
@@ -51,6 +51,11 @@ export const OPENCODE_KNOWN_OPTION_KEYS = [
|
||||
"headers",
|
||||
] as const;
|
||||
|
||||
// Contains ":", which is not valid in an HTTP field name, so it cannot
|
||||
// collide with a legitimate custom header from an existing configuration.
|
||||
export const OPENCODE_HEADER_DRAFT_PREFIX = "draft-header:";
|
||||
export const OPENCODE_EXTRA_OPTION_DRAFT_PREFIX = "draft-option:";
|
||||
|
||||
export const OPENCLAW_DEFAULT_CONFIG = JSON.stringify(
|
||||
{
|
||||
baseUrl: "",
|
||||
|
||||
Reference in New Issue
Block a user