mirror of
https://github.com/Andriy-Kulak/ai-naval.git
synced 2024-11-25 16:08:31 +08:00
updated .env
This commit is contained in:
parent
98070c48fd
commit
bbb8b3ca1a
@ -1,4 +1,4 @@
|
||||
OPENAI_KEY=
|
||||
OPENAI_API_KEY=
|
||||
ELEVENLABS_KEY=
|
||||
OPENAI_ORGANIZATION=Personal
|
||||
ELEVENLABS_VOICE_ID=
|
||||
|
@ -4,7 +4,7 @@ import { Configuration, OpenAIApi, ChatCompletionRequestMessage } from "openai";
|
||||
import pineconeStore from "@/utils/pineconeStore";
|
||||
|
||||
const configuration = new Configuration({
|
||||
apiKey: process.env.OPENAI_KEY,
|
||||
apiKey: process.env.OPENAI_API_KEY,
|
||||
});
|
||||
|
||||
const openai = new OpenAIApi(configuration);
|
||||
@ -91,7 +91,7 @@ async function askOpenAI({
|
||||
content: `
|
||||
Imagine you are Naval Ravikant and you want to give advice to the user you're interacting with that may ask you questions or advice. The user's name is ${userName}.
|
||||
I will provide you context snippets from "The Almanack of Naval Ravikant" from a vecor database to help you answer the user's questions.
|
||||
Introduce youself to ${userName}. Don't mention context snippets when replying.
|
||||
Introduce youself to ${userName}. Don't mention context snippets when replying to user and only mention yourself by your first name.
|
||||
`,
|
||||
},
|
||||
...(messages || [
|
||||
|
Loading…
Reference in New Issue
Block a user