summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--continuedev/src/continuedev/libs/llm/openai.py6
-rw-r--r--extension/package.json16
-rw-r--r--extension/react-app/src/components/Layout.tsx2
3 files changed, 14 insertions, 10 deletions
diff --git a/continuedev/src/continuedev/libs/llm/openai.py b/continuedev/src/continuedev/libs/llm/openai.py
index 09cfa4fa..9c553354 100644
--- a/continuedev/src/continuedev/libs/llm/openai.py
+++ b/continuedev/src/continuedev/libs/llm/openai.py
@@ -24,6 +24,9 @@ MAX_TOKENS_FOR_MODEL = {
"gpt-3.5-turbo-0613": 4096,
"gpt-3.5-turbo-16k": 16384,
"gpt-4": 8192,
+ "gpt-35-turbo-16k": 16384,
+ "gpt-35-turbo-0613": 4096,
+ "gpt-35-turbo": 4096,
}
@@ -151,3 +154,6 @@ class OpenAI(LLM):
self.write_log(f"Completion:\n\n{resp}")
return resp
+
+
+openai.Completion.create(prompt="HI", model="text-davinci-003")
diff --git a/extension/package.json b/extension/package.json
index eaa02c89..df297fe8 100644
--- a/extension/package.json
+++ b/extension/package.json
@@ -20,19 +20,17 @@
"vscode": "^1.67.0"
},
"categories": [
- "Other",
+ "Programming Languages",
"Education",
- "Machine Learning"
+ "Machine Learning",
+ "Snippets"
],
"keywords": [
- "openai",
- "chatbot",
+ "github",
+ "copilot",
"chatgpt",
- "autocomplete",
- "llm",
- "ai",
- "assistant",
- "chat"
+ "openai",
+ "gpt4"
],
"activationEvents": [
"onStartupFinished",
diff --git a/extension/react-app/src/components/Layout.tsx b/extension/react-app/src/components/Layout.tsx
index 0721585d..dfaa6443 100644
--- a/extension/react-app/src/components/Layout.tsx
+++ b/extension/react-app/src/components/Layout.tsx
@@ -86,7 +86,7 @@ const Layout = () => {
useEffect(() => {
const handleKeyDown = (event: any) => {
- if (event.metaKey && event.key === "n" && event.altKey) {
+ if (event.metaKey && event.altKey && event.key === "n") {
client?.loadSession(undefined);
}
};