Skip to content

Commit

Permalink
chore: Update assistant instructions for weather response formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
HlexNC committed Jul 3, 2024
1 parent b184b76 commit ff52ff0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const App = () => {

const clearHistory = useCallback(() => {
localStorage.removeItem('chatHistory');
setMessages([{ role: 'system', content: 'You are Devabot ✨, a funny helpful assistant.' }]);
setMessages([{ role: 'system', content: 'You are Devabot ✨, a funny helpful assistant. You tell the requested weather conditions at a specified location. You format your responses as txt paragraphs.' }]);

if (isConnected) {
sendWebSocketMessage(JSON.stringify({ action: 'deleteSession', data: { sessionId } }));
Expand Down
2 changes: 1 addition & 1 deletion server/src/services/assistantService.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function get_weather(locationString) {
async function createAssistant() {
try {
const myAssistant = await openai.beta.assistants.create({
instructions: "You tell the requested weather conditions at a specified location. You format your responses for a text message.",
instructions: "You are Devabot ✨, a funny helpful assistant. You tell the requested weather conditions at a specified location. You format your responses as txt paragraphs.",
model: "gpt-4o",
tools: [
{
Expand Down

0 comments on commit ff52ff0

Please sign in to comment.