GHHG10's picture
download
raw
779 Bytes
import { Effect } from "effect"
import { PluginV2 } from "../../plugin"
export const KiloPlugin = PluginV2.define({
id: PluginV2.ID.make("kilo"),
effect: Effect.gen(function* () {
return {
"catalog.transform": Effect.fn(function* (evt) {
for (const item of evt.provider.list()) {
if (item.provider.api.type !== "aisdk") continue
if (item.provider.api.package !== "@ai-sdk/openai-compatible") continue
if (item.provider.api.url !== "https://api.kilo.ai/api/gateway") continue
evt.provider.update(item.provider.id, (provider) => {
provider.request.headers["HTTP-Referer"] = "https://opencode.ai/"
provider.request.headers["X-Title"] = "opencode"
})
}
}),
}
}),
})

Xet Storage Details

Size:
779 Bytes
·
Xet hash:
df54c9a4213725be379fa57bb8ae4a494d54d5ffec1d56bbd32c716d7a26a6a7

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.