Skip to content

Commit

Permalink
fix: cf example
Browse files Browse the repository at this point in the history
  • Loading branch information
ytkimirti committed Sep 26, 2024
1 parent f8d36d7 commit d4d6508
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/cloudflare-workers/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ const app = new Hono<{

app.use("*", async (c, next) => {
const ragChat = new RAGChat({
// model: upstash("meta-llama/Meta-Llama-3-8B-Instruct", { apiKey: c.env.QSTASH_TOKEN }),
model: upstash("meta-llama/Meta-Llama-3-8B-Instruct", { apiKey: c.env.QSTASH_TOKEN }),

// 👇 ALTERNATIVE
model: openai("gpt-4-turbo", {
apiKey: c.env.OPENAI_API_KEY,
}),
// model: openai("gpt-4-turbo", {
// apiKey: c.env.OPENAI_API_KEY,
// }),

vector: new Index({
url: c.env.UPSTASH_VECTOR_REST_URL,
Expand Down

0 comments on commit d4d6508

Please sign in to comment.