Skip to content

Commit

Permalink
deps: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Belphemur committed Oct 12, 2023
1 parent fc4829e commit 769810c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 26 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"mermaid": "^10.4.0",
"nanoid": "^5.0.1",
"next": "13.5.4",
"openai": "^4.4.0",
"openai": "^4.12.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-highlight": "^0.15.0",
Expand Down
37 changes: 14 additions & 23 deletions pnpm-lock.yaml

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

3 changes: 1 addition & 2 deletions src/utils/openai.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import {ClientOptions, OpenAI} from "openai";
import {db} from "../db";
import {config} from "./config";
import {ChatCompletion, ChatCompletionMessage, Completions} from "openai/resources/chat";
import {GPTTokens, supportModelType} from "gpt-tokens/index";
import {useApiKey} from "../hooks/useApiKey";
import {CancelToken} from "cancel-token";
import ChatCompletionChunk = Completions.ChatCompletionChunk;
import {Stream} from "openai/streaming";
import {updateChatTitle} from "./chatUpdateTitle";
import {ChatCompletion, ChatCompletionChunk, ChatCompletionMessage} from "openai/resources/chat";

function getClient(
apiType: string,
Expand Down

0 comments on commit 769810c

Please sign in to comment.