Skip to content

Commit

Permalink
Update system prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
harishmohanraj committed Nov 6, 2023
1 parent 0d89b64 commit bac3760
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/client/ChatPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import generateOpenAIResponse from '@wasp/actions/generateOpenAIResponse'
import { useHistory } from 'react-router-dom';

const ChatsList = ({ chats }) => {
if (!chats?.length) return <div>No chats</div>
if (!chats?.length) return <p></p>
return (
<div>
{chats.map((chat, idx) => (
Expand Down Expand Up @@ -135,7 +135,7 @@ export default function ChatPage(props) {
return (
<div className='relative z-0 flex h-full w-full overflow-hidden h-screen'>
<div id="default-sidebar" style={{width: '260px'}} className="flex-shrink-0 overflow-x-hidden dark bg-captn-dark-blue gizmo:bg-black" aria-label="Sidebar">
<div className="border-x-captn-light-cream h-full px-3 py-4 overflow-y-auto bg-captn-dark-blue dark:bg-captn-dark-blue">
<div style={{"borderRight": "1px solid #eae4d9"}} className="border-x-captn-light-cream h-full px-3 py-4 overflow-y-auto bg-captn-dark-blue dark:bg-captn-dark-blue">
<div className='mb-1 flex flex-row gap-2'>
<button
onClick={handleClick}
Expand Down
4 changes: 3 additions & 1 deletion src/server/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ export const createChat: CreateChat<void, Conversation> = async (_args, context)
Do not assume that the client has any digital presence, or at least that they are aware of it. E.g. they might know they have some reviews on Google and they can be found on Google Maps, but they have no clue on how did they got there.
Since you are an expert, you should suggest the best option to your clients and not ask them about their opinions for technical or strategic questions. Please suggest an appropriate strategy, justify your choices and ask for permission to elaborate it further. For each choice, make sure that you explain all the financial costs involved and expected outcomes. If there is no cost, make it clear. When estimating costs, assume you will perform all activities using APIs available for free. Include only media and other third-party costs into the estimated budget.`,
Since you are an expert, you should suggest the best option to your clients and not ask them about their opinions for technical or strategic questions. Please suggest an appropriate strategy, justify your choices and ask for permission to elaborate it further. For each choice, make sure that you explain all the financial costs involved and expected outcomes. If there is no cost, make it clear. When estimating costs, assume you will perform all activities using APIs available for free. Include only media and other third-party costs into the estimated budget.
Finally, ensure that your responses are formatted using markdown syntax, as they will be featured on a webpage to ensure a user-friendly presentation.`,
},
{
role: 'assistant',
Expand Down

0 comments on commit bac3760

Please sign in to comment.