Skip to content

Commit

Permalink
fix(server): use my sse fork to avoid sending unnecessary retryAfter …
Browse files Browse the repository at this point in the history
…event
  • Loading branch information
waylaidwanderer committed Feb 20, 2023
1 parent e0ecdb5 commit 4c91d9f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion bin/server.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node
import fastify from 'fastify';
import cors from '@fastify/cors';
import { FastifySSEPlugin } from "fastify-sse-v2";
import { FastifySSEPlugin } from "@waylaidwanderer/fastify-sse-v2";
import fs from 'fs';
import { pathToFileURL } from 'url'
import ChatGPTClient from '../src/ChatGPTClient.js';
Expand Down
48 changes: 24 additions & 24 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
],
"dependencies": {
"@fastify/cors": "^8.2.0",
"@waylaidwanderer/fastify-sse-v2": "^3.1.0",
"@waylaidwanderer/fetch-event-source": "^3.0.1",
"boxen": "^7.0.1",
"clipboardy": "^3.0.0",
"dotenv": "^16.0.3",
"fastify": "^4.11.0",
"fastify-sse-v2": "^3.0.0",
"fetch-undici": "^3.0.1",
"gpt-3-encoder": "^1.1.4",
"https-proxy-agent": "^5.0.1",
Expand Down

0 comments on commit 4c91d9f

Please sign in to comment.