Skip to content

Commit 5e47473

Browse files
committed
Remove AI services from documentation and codebase
1 parent e5d6956 commit 5e47473

File tree

7 files changed

+0
-219
lines changed

7 files changed

+0
-219
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

docs/getting-started/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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.

src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
export type { AI } from "./lib/ai/ai.js";
21
export type { Environment, DatabaseSchema } from "./lib/types.js";
32
export type { Cache } from "./lib/cache/cache.js";
43
export type { Env } from "./lib/env/env.js";
@@ -12,7 +11,6 @@ export type { WorkerKVRateLimit } from "@edgefirst-dev/worker-kv-rate-limit";
1211
export { Job } from "./lib/jobs/job.js";
1312
export { Task } from "./lib/tasks/task.js";
1413
export {
15-
ai,
1614
bindings,
1715
cache,
1816
env,

src/lib/ai/ai.ts

Lines changed: 0 additions & 203 deletions
This file was deleted.

src/lib/storage/accessors.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff 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.

src/lib/storage/storage.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { WorkerKVRateLimit } from "@edgefirst-dev/worker-kv-rate-limit";
44
import SuperHeaders from "@mjackson/headers";
55
import type { Logger } from "drizzle-orm";
66
import { DrizzleD1Database, drizzle } from "drizzle-orm/d1";
7-
import { AI } from "../ai/ai.js";
87
import { Cache } from "../cache/cache.js";
98
import { Env } from "../env/env.js";
109
import { EdgeContextError } from "../errors.js";
@@ -19,7 +18,6 @@ import type {
1918
} from "../types.js";
2019

2120
export 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),

src/lib/types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { BrowserWorker } from "@cloudflare/puppeteer";
22
import type {
3-
Ai,
43
D1Database,
54
ExecutionContext,
65
KVNamespace,
@@ -12,7 +11,6 @@ export type WaitUntilFunction = ExecutionContext["waitUntil"];
1211

1312
export interface Environment {
1413
// Cloudflare Bindings
15-
AI: Ai;
1614
DB: D1Database;
1715
FS: R2Bucket;
1816
KV: KVNamespace;

0 commit comments

Comments
 (0)