Skip to content

Commit

Permalink
fix: remove import specifier from code
Browse files Browse the repository at this point in the history
  • Loading branch information
mumu-lhl committed Aug 4, 2024
1 parent 07cbd0b commit a8e1837
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 11 deletions.
6 changes: 6 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,11 @@
"compilerOptions": {
"jsx": "precompile",
"jsxImportSource": "hono/jsx"
},
"imports": {
"@hono/hono": "jsr:@hono/hono@^4.5.3",
"@lukeed/fetch-event-stream": "jsr:@lukeed/fetch-event-stream@^0.1.5",
"@mumulhl/duckduckgo-ai-chat": "jsr:@mumulhl/duckduckgo-ai-chat@^2.0.3",
"hono-rate-limiter": "npm:hono-rate-limiter@^0.4.0"
}
}
22 changes: 17 additions & 5 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions main.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Hono } from "jsr:@hono/hono";
import { SSEStreamingApi, streamSSE } from "jsr:@hono/hono/streaming";
import { bearerAuth } from "jsr:@hono/hono/bearer-auth";
import { Chat, initChat, Model } from "jsr:@mumulhl/duckduckgo-ai-chat";
import { events } from "jsr:@lukeed/fetch-event-stream";
import { rateLimiter } from "npm:hono-rate-limiter";
import { Hono } from "@hono/hono";
import { SSEStreamingApi, streamSSE } from "@hono/hono/streaming";
import { bearerAuth } from "@hono/hono/bearer-auth";
import { Chat, initChat, Model } from "@mumulhl/duckduckgo-ai-chat";
import { events } from "@lukeed/fetch-event-stream";
import { rateLimiter } from "hono-rate-limiter";

type Messages = { content: string; role: "user" | "assistant" | "system" }[];

Expand Down

0 comments on commit a8e1837

Please sign in to comment.