diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index afd4c0d..cd432a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,10 +21,10 @@ jobs: - name: Install Deno uses: denoland/setup-deno@v1 with: - deno-version: v1.x + deno-version: v1.39 - name: Build step - run: "OPENAI_API_KEY=dummy deno task build" + run: "deno task build" - name: Upload to Deno Deploy uses: denoland/deployctl@v1 diff --git a/deno.json b/deno.json index b016fda..a675b28 100644 --- a/deno.json +++ b/deno.json @@ -4,8 +4,8 @@ "check": "deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx", "cli": "echo \"import '\\$fresh/src/dev/cli.ts'\" | deno run --unstable -A -", "manifest": "deno task cli manifest $(pwd)", - "start": "deno run -A --watch=static/,routes/ --unstable dev.ts", - "build": "deno run -A --unstable dev.ts build", + "start": "deno run -A --watch=static/,routes/ --unstable-kv dev.ts", + "build": "deno run -A --unstable-kv dev.ts build", "preview": "deno run -A main.ts", "update": "deno run -A -r https://fresh.deno.dev/update ." }, diff --git a/lib/oai.ts b/lib/oai.ts index eb406b0..1818529 100644 --- a/lib/oai.ts +++ b/lib/oai.ts @@ -1,10 +1,10 @@ -import OpenAI from "https://deno.land/x/openai@v4.23.0/mod.ts"; +import OpenAI from "https://deno.land/x/openai@v4.28.0/mod.ts"; import { batchLoadMessages, ChatHead } from "./workspace.ts"; import { ChatCompletionChunk, ChatCompletionMessageParam, -} from "https://deno.land/x/openai@v4.23.0/resources/mod.ts"; -import { Stream } from "https://deno.land/x/openai@v4.23.0/streaming.ts"; +} from "https://deno.land/x/openai@v4.28.0/resources/mod.ts"; +import { Stream } from "https://deno.land/x/openai@v4.28.0/streaming.ts"; interface Backend { oai: OpenAI;