File tree Expand file tree Collapse file tree 7 files changed +0
-219
lines changed
Expand file tree Collapse file tree 7 files changed +0
-219
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ EdgeKit.js is a toolkit to helps you build on top of Cloudflare Development Plat
99- Server-side Cache with TTL
1010- File Storage
1111- Database
12- - AI Services
1312- Background Jobs
1413- Scheduled Tasks
1514- Browser Rendering
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ EdgeKit.js is a toolkit that helps you build Edge-first applications on top of C
1818- ** Server-side Cache with TTL** : Cache data on the server with a time-to-live.
1919- ** File Storage** : Store files on the edge.
2020- ** Database** : Access to a database.
21- - ** AI Services** : Access to AI services.
2221- ** Background Jobs** : Run background jobs.
2322- ** Scheduled Tasks** : Schedule tasks to run at a specific time.
2423- ** Browser Rendering** : Render content on the edge.
Original file line number Diff line number Diff line change 1- export type { AI } from "./lib/ai/ai.js" ;
21export type { Environment , DatabaseSchema } from "./lib/types.js" ;
32export type { Cache } from "./lib/cache/cache.js" ;
43export type { Env } from "./lib/env/env.js" ;
@@ -12,7 +11,6 @@ export type { WorkerKVRateLimit } from "@edgefirst-dev/worker-kv-rate-limit";
1211export { Job } from "./lib/jobs/job.js" ;
1312export { Task } from "./lib/tasks/task.js" ;
1413export {
15- ai ,
1614 bindings ,
1715 cache ,
1816 env ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -70,13 +70,6 @@ export function headers() {
7070 return storage . access ( "headers" ) ;
7171}
7272
73- /**
74- * Run machine learning models, such as LLMs in your Edge-first application.
75- */
76- export function ai ( ) {
77- return storage . access ( "ai" ) ;
78- }
79-
8073/**
8174 * Access the geolocation information of the request in your Edge-first
8275 * application.
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import { WorkerKVRateLimit } from "@edgefirst-dev/worker-kv-rate-limit";
44import SuperHeaders from "@mjackson/headers" ;
55import type { Logger } from "drizzle-orm" ;
66import { DrizzleD1Database , drizzle } from "drizzle-orm/d1" ;
7- import { AI } from "../ai/ai.js" ;
87import { Cache } from "../cache/cache.js" ;
98import { Env } from "../env/env.js" ;
109import { EdgeContextError } from "../errors.js" ;
@@ -19,7 +18,6 @@ import type {
1918} from "../types.js" ;
2019
2120export interface EdgeFirstContext {
22- ai ?: AI ;
2321 bindings : Environment ;
2422 cache ?: Cache ;
2523 env : Env ;
@@ -45,7 +43,6 @@ class Storage extends AsyncLocalStorage<EdgeFirstContext> {
4543
4644 return this . run < T > (
4745 {
48- ai : env . AI && new AI ( env . AI ) ,
4946 bindings : env ,
5047 cache : env . KV && new Cache ( env . KV ) ,
5148 env : new Env ( env ) ,
Original file line number Diff line number Diff line change 11import type { BrowserWorker } from "@cloudflare/puppeteer" ;
22import type {
3- Ai ,
43 D1Database ,
54 ExecutionContext ,
65 KVNamespace ,
@@ -12,7 +11,6 @@ export type WaitUntilFunction = ExecutionContext["waitUntil"];
1211
1312export interface Environment {
1413 // Cloudflare Bindings
15- AI : Ai ;
1614 DB : D1Database ;
1715 FS : R2Bucket ;
1816 KV : KVNamespace ;
You can’t perform that action at this time.
0 commit comments