Skip to content

Lightpanda: the headless browser designed for AI and automation

Agent: add support for Huggingface inference

Adrià Arrufat3e5294318cc9
diff --git a/build.zig.zon b/build.zig.zon
index 54762a31c..ea05d96f2 100644
--- a/build.zig.zon
+++ b/build.zig.zon
@@ -35,8 +35,8 @@
.hash = "sqlite3-3.51.0-DMxLWssOAABZ8cAvU_LfBIbp0kZjm824PU8sSLXpEDdr",
},
.zenai = .{
- .url = "git+https://github.com/lightpanda-io/zenai.git#c6a4c11de53cc5c39c825a57513b3071bda154f6",
- .hash = "zenai-0.0.0-iOY_VDVqBAA3mH3_90Lg7Vz3JK8oD0gIhcete_M9c1UC",
+ .url = "git+https://github.com/lightpanda-io/zenai.git#12c776cff7f1244b6c147e6d4733f76e8dcc3a38",
+ .hash = "zenai-0.0.0-iOY_VAB7BACkAx4N1aMsFlqN5z4G2Qdqrh3u1DIIkaO1",
},
.isocline = .{
.url = "git+https://github.com/arrufat/isocline?ref=lightpanda#832a9fe25f5f4458fcc47b5acc7c21db669c2f47",
diff --git a/src/agent/settings.zig b/src/agent/settings.zig
index 93f1add12..e75bc42ba 100644
--- a/src/agent/settings.zig
+++ b/src/agent/settings.zig
@@ -30,7 +30,7 @@ const Terminal = @import("Terminal.zig");
const string = @import("../string.zig");
const Credentials = zenai.provider.Credentials;
-pub const api_keys_hint = "ANTHROPIC_API_KEY, OPENAI_API_KEY, or GOOGLE_API_KEY";
+pub const api_keys_hint = "ANTHROPIC_API_KEY, OPENAI_API_KEY, GOOGLE_API_KEY, or HF_TOKEN";
/// Determine which provider to use and read its env key. Returns null
/// only when no `--provider` was given AND no env key exists (the caller