@cpujia/codex-mcp-server 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/codex-client.js +5 -2
- package/package.json +1 -1
package/dist/codex-client.js
CHANGED
|
@@ -9,10 +9,13 @@ export class CodexClient {
|
|
|
9
9
|
try {
|
|
10
10
|
const effort = options.reasoningEffort ?? this.config.reasoningEffort;
|
|
11
11
|
const maxTokens = options.maxTokens ?? this.config.maxTokens;
|
|
12
|
+
// 指令嵌入 user content,避免被 API 代理覆盖或过滤
|
|
13
|
+
const userContent = options.instructions
|
|
14
|
+
? `[INSTRUCTIONS]\n${options.instructions}\n[/INSTRUCTIONS]\n\n${options.input}`
|
|
15
|
+
: options.input;
|
|
12
16
|
const requestBody = {
|
|
13
17
|
model: this.config.model,
|
|
14
|
-
|
|
15
|
-
input: [{ role: "user", content: options.input }],
|
|
18
|
+
input: [{ role: "user", content: userContent }],
|
|
16
19
|
max_output_tokens: maxTokens,
|
|
17
20
|
store: false,
|
|
18
21
|
};
|