poe-code 3.0.81 → 3.0.83
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/cli/constants.d.ts +3 -3
- package/dist/cli/constants.js +3 -1
- package/dist/cli/constants.js.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +2 -2
- package/dist/providers/claude-code.js +2 -0
- package/dist/providers/claude-code.js.map +2 -2
- package/dist/providers/codex.js +2 -0
- package/dist/providers/codex.js.map +2 -2
- package/dist/providers/kimi.js +2 -0
- package/dist/providers/kimi.js.map +2 -2
- package/dist/providers/opencode.js +3 -1
- package/dist/providers/opencode.js.map +2 -2
- package/dist/providers/poe-agent.js +2 -0
- package/dist/providers/poe-agent.js.map +2 -2
- package/dist/services/model-strategy.d.ts +2 -2
- package/dist/services/model-strategy.js +10 -10
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Available model identifiers
|
|
3
3
|
*/
|
|
4
|
-
export declare const AVAILABLE_MODELS: readonly ["anthropic/claude-sonnet-4.6", "gpt-5.
|
|
4
|
+
export declare const AVAILABLE_MODELS: readonly ["anthropic/claude-sonnet-4.6", "gpt-5.4", "gpt-5.4-chat", "gpt-5.4-pro", "gpt-4o", "Claude-3.5-Sonnet", "openai/gpt-5.4"];
|
|
5
5
|
export type ModelIdentifier = (typeof AVAILABLE_MODELS)[number];
|
|
6
6
|
/**
|
|
7
7
|
* Strategy types for model selection
|
|
@@ -33,7 +33,7 @@ export interface ModelContext {
|
|
|
33
33
|
previousModel?: string;
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
|
-
* Mixed strategy: alternates between gpt-5.
|
|
36
|
+
* Mixed strategy: alternates between gpt-5.4 and the default Claude model
|
|
37
37
|
*/
|
|
38
38
|
export declare class MixedStrategy implements ModelStrategy {
|
|
39
39
|
private currentIndex;
|
|
@@ -8,19 +8,19 @@ const CLAUDE_DEFAULT_MODEL = DEFAULT_CLAUDE_CODE_MODEL;
|
|
|
8
8
|
*/
|
|
9
9
|
export const AVAILABLE_MODELS = [
|
|
10
10
|
CLAUDE_DEFAULT_MODEL,
|
|
11
|
-
"gpt-5.
|
|
12
|
-
"gpt-5.
|
|
13
|
-
"gpt-5.
|
|
11
|
+
"gpt-5.4",
|
|
12
|
+
"gpt-5.4-chat",
|
|
13
|
+
"gpt-5.4-pro",
|
|
14
14
|
"gpt-4o",
|
|
15
15
|
"Claude-3.5-Sonnet",
|
|
16
16
|
DEFAULT_CODEX_MODEL,
|
|
17
17
|
];
|
|
18
18
|
/**
|
|
19
|
-
* Mixed strategy: alternates between gpt-5.
|
|
19
|
+
* Mixed strategy: alternates between gpt-5.4 and the default Claude model
|
|
20
20
|
*/
|
|
21
21
|
export class MixedStrategy {
|
|
22
22
|
currentIndex = 0;
|
|
23
|
-
models = ["gpt-5.
|
|
23
|
+
models = ["gpt-5.4", CLAUDE_DEFAULT_MODEL];
|
|
24
24
|
getNextModel() {
|
|
25
25
|
const model = this.models[this.currentIndex];
|
|
26
26
|
this.currentIndex = (this.currentIndex + 1) % this.models.length;
|
|
@@ -30,7 +30,7 @@ export class MixedStrategy {
|
|
|
30
30
|
return "mixed";
|
|
31
31
|
}
|
|
32
32
|
getDescription() {
|
|
33
|
-
return `Alternates between gpt-5.
|
|
33
|
+
return `Alternates between gpt-5.4 and ${CLAUDE_DEFAULT_MODEL} on each call`;
|
|
34
34
|
}
|
|
35
35
|
reset() {
|
|
36
36
|
this.currentIndex = 0;
|
|
@@ -47,10 +47,10 @@ export class SmartStrategy {
|
|
|
47
47
|
}
|
|
48
48
|
// Smart selection based on context
|
|
49
49
|
if (context.messageType === "code" || context.messageType === "reasoning") {
|
|
50
|
-
// Use gpt-5.
|
|
50
|
+
// Use gpt-5.4 for complex coding and reasoning tasks
|
|
51
51
|
if (context.complexity === "complex") {
|
|
52
|
-
this.lastModel = "gpt-5.
|
|
53
|
-
return "gpt-5.
|
|
52
|
+
this.lastModel = "gpt-5.4";
|
|
53
|
+
return "gpt-5.4";
|
|
54
54
|
}
|
|
55
55
|
// Use Claude for medium complexity code
|
|
56
56
|
this.lastModel = CLAUDE_DEFAULT_MODEL;
|
|
@@ -145,7 +145,7 @@ export class ModelStrategyFactory {
|
|
|
145
145
|
return [
|
|
146
146
|
{
|
|
147
147
|
type: "mixed",
|
|
148
|
-
description: `Alternate between gpt-5.
|
|
148
|
+
description: `Alternate between gpt-5.4 and ${CLAUDE_DEFAULT_MODEL}`
|
|
149
149
|
},
|
|
150
150
|
{ type: "smart", description: "Intelligently select based on task type" },
|
|
151
151
|
{ type: "fixed", description: "Always use the same model" },
|