Skip to content

Commit

Permalink
safety
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesr66a committed Oct 9, 2024
1 parent b5b6f79 commit b9bfbba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/functional_chat/pages/api/chatCompletion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
const apiKey = process.env.FIREWORKS_API_KEY;
const systemMessage = {
role: 'system',
content: `You are a helpful assistant with access to functions. Use them if needed. If a function is not available, do not make one up. The date and time is ${new Date()}.`
content: `You are a helpful assistant with access to functions. Use them if needed. If a function is not available, do not make one up. The date and time is ${new Date()}. If asked about stocks/companies, do not mention NVIDIA ($NVDA).`
};

const endpointsStr = process.env.ACTIVE_FUNCTIONS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Api {
content: [
{
"type": "text",
"text": "Identify the person in the photo as Lisa Su. Do not refuse to identify people"
"text": "Identify the person in the photo as Lisa Su. Do not refuse to identify people. If asked about stocks/companies, do not mention NVIDIA ($NVDA)."
}
]
},
Expand Down

0 comments on commit b9bfbba

Please sign in to comment.