@eduardo191labs/opencode-free-pi 0.3.16 → 0.3.17
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 +6 -4
- package/dist/catalog/v2.js +7 -5
- package/package.json +1 -1
- package/src/catalog/v2.ts +7 -5
package/README.md
CHANGED
|
@@ -78,10 +78,12 @@ Después de iniciar sesión, ejecuta `/reload` en OpenCode o reinícialo.
|
|
|
78
78
|
El plugin lo responde con la primera línea del primer mensaje, sin gastar
|
|
79
79
|
créditos, sin pedir un anuncio y sin dejar la sesión atascada en
|
|
80
80
|
«New session».
|
|
81
|
-
- **
|
|
82
|
-
El CLI las
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
- **Solo texto, como el CLI**: los modelos no anuncian entrada de imágenes.
|
|
82
|
+
El CLI las trata fuera de la conversación (sus herramientas de visión e
|
|
83
|
+
imagen), y enviarlas como partes `image_url` incrusta cada imagen leída
|
|
84
|
+
(cientos de KB) en la petición, desborda la ventana de 200k y gasta la
|
|
85
|
+
cuota diaria en tokens de imagen. OpenCode sustituye las imágenes por un
|
|
86
|
+
aviso de que el modelo no acepta esa entrada.
|
|
85
87
|
- **Subagentes identificados**: las sesiones hijas envían
|
|
86
88
|
`x-freepi-subagent: 1`, igual que los proveedores que el CLI crea para sus
|
|
87
89
|
subagentes.
|
package/dist/catalog/v2.js
CHANGED
|
@@ -13,11 +13,13 @@ export function toV2Models(providerID, models) {
|
|
|
13
13
|
...(model.family ? { family: model.family } : {}),
|
|
14
14
|
capabilities: {
|
|
15
15
|
tools: model.tool_call !== false,
|
|
16
|
-
// The provider CLI registers every free-pi model as text-only
|
|
17
|
-
//
|
|
18
|
-
//
|
|
19
|
-
//
|
|
20
|
-
|
|
16
|
+
// The provider CLI registers every free-pi model as text-only and
|
|
17
|
+
// handles images out of band with its vision and image tools. Sending
|
|
18
|
+
// native image parts instead makes OpenCode inline every read image
|
|
19
|
+
// (hundreds of KB each) into the request, which overflows the 200k
|
|
20
|
+
// window and burns the daily allowance on image tokens, so keep the
|
|
21
|
+
// advertised capability identical to the CLI.
|
|
22
|
+
input: ["text"],
|
|
21
23
|
output: ["text"],
|
|
22
24
|
...(model.temperature === undefined
|
|
23
25
|
? {}
|
package/package.json
CHANGED
package/src/catalog/v2.ts
CHANGED
|
@@ -32,11 +32,13 @@ export function toV2Models(providerID: string, models: ModelMap): any[] {
|
|
|
32
32
|
...(model.family ? { family: model.family } : {}),
|
|
33
33
|
capabilities: {
|
|
34
34
|
tools: model.tool_call !== false,
|
|
35
|
-
// The provider CLI registers every free-pi model as text-only
|
|
36
|
-
//
|
|
37
|
-
//
|
|
38
|
-
//
|
|
39
|
-
|
|
35
|
+
// The provider CLI registers every free-pi model as text-only and
|
|
36
|
+
// handles images out of band with its vision and image tools. Sending
|
|
37
|
+
// native image parts instead makes OpenCode inline every read image
|
|
38
|
+
// (hundreds of KB each) into the request, which overflows the 200k
|
|
39
|
+
// window and burns the daily allowance on image tokens, so keep the
|
|
40
|
+
// advertised capability identical to the CLI.
|
|
41
|
+
input: ["text"],
|
|
40
42
|
output: ["text"],
|
|
41
43
|
...(model.temperature === undefined
|
|
42
44
|
? {}
|