@kolisachint/hoocode-ai 0.2.0 → 0.2.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/README.md +2 -2
- package/dist/models.generated.d.ts +21 -69
- package/dist/models.generated.d.ts.map +1 -1
- package/dist/models.generated.js +46 -96
- package/dist/models.generated.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -388,7 +388,7 @@ All streaming events emitted during assistant message generation:
|
|
|
388
388
|
| `done` | Stream complete | `reason`: Stop reason ("stop", "length", "toolUse"), `message`: Final assistant message |
|
|
389
389
|
| `error` | Error occurred | `reason`: Error type ("error" or "aborted"), `error`: AssistantMessage with partial content |
|
|
390
390
|
|
|
391
|
-
Streaming events for different content blocks are not guaranteed to be contiguous. Providers may emit deltas for text, thinking, and tool calls in the same upstream chunk, and
|
|
391
|
+
Streaming events for different content blocks are not guaranteed to be contiguous. Providers may emit deltas for text, thinking, and tool calls in the same upstream chunk, and hoocode may surface corresponding events interleaved, for example \`text_start\`, \`text_delta\`, \`toolcall_start\`, \`text_delta\`, \`toolcall_delta\`. Consumers must use `contentIndex` to associate each delta/end event with its block and must not assume that a block's `*_start`/`*_delta`/`*_end` sequence is uninterrupted by events for other blocks.
|
|
392
392
|
|
|
393
393
|
## Image Input
|
|
394
394
|
|
|
@@ -892,7 +892,7 @@ const response = await stream(ollamaModel, context, {
|
|
|
892
892
|
|
|
893
893
|
Some OpenAI-compatible servers do not understand the `developer` role used for reasoning-capable models. For those providers, set `compat.supportsDeveloperRole` to `false` so the system prompt is sent as a `system` message instead. If the server also does not support `reasoning_effort`, set `compat.supportsReasoningEffort` to `false` too.
|
|
894
894
|
|
|
895
|
-
Use model-level `thinkingLevelMap` to describe model-specific thinking controls. Keys are
|
|
895
|
+
Use model-level `thinkingLevelMap` to describe model-specific thinking controls. Keys are hoocode thinking levels (`off`, `minimal`, `low`, `medium`, `high`, `xhigh`). Missing keys use provider defaults, string values are sent to the provider, and `null` marks a level unsupported.
|
|
896
896
|
|
|
897
897
|
This commonly applies to Ollama, vLLM, SGLang, and similar OpenAI-compatible servers. You can set `compat` at the provider level or per model.
|
|
898
898
|
|
|
@@ -9706,7 +9706,7 @@ export declare const MODELS: {
|
|
|
9706
9706
|
readonly "minimax-m2.5": {
|
|
9707
9707
|
id: string;
|
|
9708
9708
|
name: string;
|
|
9709
|
-
api: "
|
|
9709
|
+
api: "anthropic-messages";
|
|
9710
9710
|
provider: string;
|
|
9711
9711
|
baseUrl: string;
|
|
9712
9712
|
reasoning: true;
|
|
@@ -10060,6 +10060,26 @@ export declare const MODELS: {
|
|
|
10060
10060
|
contextWindow: number;
|
|
10061
10061
|
maxTokens: number;
|
|
10062
10062
|
};
|
|
10063
|
+
readonly "anthropic/claude-opus-4.7-fast": {
|
|
10064
|
+
id: string;
|
|
10065
|
+
name: string;
|
|
10066
|
+
api: "openai-completions";
|
|
10067
|
+
provider: string;
|
|
10068
|
+
baseUrl: string;
|
|
10069
|
+
reasoning: true;
|
|
10070
|
+
thinkingLevelMap: {
|
|
10071
|
+
xhigh: string;
|
|
10072
|
+
};
|
|
10073
|
+
input: ("image" | "text")[];
|
|
10074
|
+
cost: {
|
|
10075
|
+
input: number;
|
|
10076
|
+
output: number;
|
|
10077
|
+
cacheRead: number;
|
|
10078
|
+
cacheWrite: number;
|
|
10079
|
+
};
|
|
10080
|
+
contextWindow: number;
|
|
10081
|
+
maxTokens: number;
|
|
10082
|
+
};
|
|
10063
10083
|
readonly "anthropic/claude-sonnet-4": {
|
|
10064
10084
|
id: string;
|
|
10065
10085
|
name: string;
|
|
@@ -12940,23 +12960,6 @@ export declare const MODELS: {
|
|
|
12940
12960
|
contextWindow: number;
|
|
12941
12961
|
maxTokens: number;
|
|
12942
12962
|
};
|
|
12943
|
-
readonly "qwen/qwen-max": {
|
|
12944
|
-
id: string;
|
|
12945
|
-
name: string;
|
|
12946
|
-
api: "openai-completions";
|
|
12947
|
-
provider: string;
|
|
12948
|
-
baseUrl: string;
|
|
12949
|
-
reasoning: false;
|
|
12950
|
-
input: "text"[];
|
|
12951
|
-
cost: {
|
|
12952
|
-
input: number;
|
|
12953
|
-
output: number;
|
|
12954
|
-
cacheRead: number;
|
|
12955
|
-
cacheWrite: number;
|
|
12956
|
-
};
|
|
12957
|
-
contextWindow: number;
|
|
12958
|
-
maxTokens: number;
|
|
12959
|
-
};
|
|
12960
12963
|
readonly "qwen/qwen-plus": {
|
|
12961
12964
|
id: string;
|
|
12962
12965
|
name: string;
|
|
@@ -13008,40 +13011,6 @@ export declare const MODELS: {
|
|
|
13008
13011
|
contextWindow: number;
|
|
13009
13012
|
maxTokens: number;
|
|
13010
13013
|
};
|
|
13011
|
-
readonly "qwen/qwen-turbo": {
|
|
13012
|
-
id: string;
|
|
13013
|
-
name: string;
|
|
13014
|
-
api: "openai-completions";
|
|
13015
|
-
provider: string;
|
|
13016
|
-
baseUrl: string;
|
|
13017
|
-
reasoning: false;
|
|
13018
|
-
input: "text"[];
|
|
13019
|
-
cost: {
|
|
13020
|
-
input: number;
|
|
13021
|
-
output: number;
|
|
13022
|
-
cacheRead: number;
|
|
13023
|
-
cacheWrite: number;
|
|
13024
|
-
};
|
|
13025
|
-
contextWindow: number;
|
|
13026
|
-
maxTokens: number;
|
|
13027
|
-
};
|
|
13028
|
-
readonly "qwen/qwen-vl-max": {
|
|
13029
|
-
id: string;
|
|
13030
|
-
name: string;
|
|
13031
|
-
api: "openai-completions";
|
|
13032
|
-
provider: string;
|
|
13033
|
-
baseUrl: string;
|
|
13034
|
-
reasoning: false;
|
|
13035
|
-
input: ("image" | "text")[];
|
|
13036
|
-
cost: {
|
|
13037
|
-
input: number;
|
|
13038
|
-
output: number;
|
|
13039
|
-
cacheRead: number;
|
|
13040
|
-
cacheWrite: number;
|
|
13041
|
-
};
|
|
13042
|
-
contextWindow: number;
|
|
13043
|
-
maxTokens: number;
|
|
13044
|
-
};
|
|
13045
13014
|
readonly "qwen/qwen3-14b": {
|
|
13046
13015
|
id: string;
|
|
13047
13016
|
name: string;
|
|
@@ -15341,23 +15310,6 @@ export declare const MODELS: {
|
|
|
15341
15310
|
contextWindow: number;
|
|
15342
15311
|
maxTokens: number;
|
|
15343
15312
|
};
|
|
15344
|
-
readonly "anthropic/claude-3.7-sonnet": {
|
|
15345
|
-
id: string;
|
|
15346
|
-
name: string;
|
|
15347
|
-
api: "anthropic-messages";
|
|
15348
|
-
provider: string;
|
|
15349
|
-
baseUrl: string;
|
|
15350
|
-
reasoning: true;
|
|
15351
|
-
input: ("image" | "text")[];
|
|
15352
|
-
cost: {
|
|
15353
|
-
input: number;
|
|
15354
|
-
output: number;
|
|
15355
|
-
cacheRead: number;
|
|
15356
|
-
cacheWrite: number;
|
|
15357
|
-
};
|
|
15358
|
-
contextWindow: number;
|
|
15359
|
-
maxTokens: number;
|
|
15360
|
-
};
|
|
15361
15313
|
readonly "anthropic/claude-haiku-4.5": {
|
|
15362
15314
|
id: string;
|
|
15363
15315
|
name: string;
|