@eduardo191labs/opencode-free-pi 0.3.6 → 0.3.7
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 +4 -0
- package/dist/catalog/v2.js +5 -4
- package/package.json +1 -1
- package/src/catalog/v2.ts +5 -4
package/README.md
CHANGED
|
@@ -78,6 +78,10 @@ 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
|
+
- **Imágenes nativas**: los modelos aceptan imágenes pegadas o adjuntas.
|
|
82
|
+
El CLI las bloquea porque pi-ai no transporta imágenes, pero el endpoint de
|
|
83
|
+
chat de free-pi sí las acepta (verificado en vivo), así que OpenCode las
|
|
84
|
+
envía de forma nativa como partes `image_url`.
|
|
81
85
|
- **Subagentes identificados**: las sesiones hijas envían
|
|
82
86
|
`x-freepi-subagent: 1`, igual que los proveedores que el CLI crea para sus
|
|
83
87
|
subagentes.
|
package/dist/catalog/v2.js
CHANGED
|
@@ -13,10 +13,11 @@ 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
|
-
|
|
16
|
+
// The provider CLI registers every free-pi model as text-only because
|
|
17
|
+
// pi-ai cannot carry image parts, but the server's chat endpoint does
|
|
18
|
+
// accept OpenAI-style image_url parts (verified live), so OpenCode can
|
|
19
|
+
// attach images natively.
|
|
20
|
+
input: ["text", "image"],
|
|
20
21
|
output: ["text"],
|
|
21
22
|
...(model.temperature === undefined
|
|
22
23
|
? {}
|
package/package.json
CHANGED
package/src/catalog/v2.ts
CHANGED
|
@@ -32,10 +32,11 @@ 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
|
-
|
|
35
|
+
// The provider CLI registers every free-pi model as text-only because
|
|
36
|
+
// pi-ai cannot carry image parts, but the server's chat endpoint does
|
|
37
|
+
// accept OpenAI-style image_url parts (verified live), so OpenCode can
|
|
38
|
+
// attach images natively.
|
|
39
|
+
input: ["text", "image"],
|
|
39
40
|
output: ["text"],
|
|
40
41
|
...(model.temperature === undefined
|
|
41
42
|
? {}
|