Skip to content

Commit

Permalink
addressed review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gericdong committed Jun 5, 2023
1 parent e19c285 commit d00f948
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions ai-platform/snippets/predict-chat-prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,19 @@ async function main(project, location = 'us-central1') {

const prompt = {
context:
'My name is Ned. You are my personal assistant. My favorite movies are Lord of the Rings and Hobbit.',
'My name is Miles. You are an astronomer, knowledgeable about the solar system.',
examples: [
{
input: {content: 'Who do you work for?'},
output: {content: 'I work for Ned.'},
},
{
input: {content: 'What do I like?'},
output: {content: 'Ned likes watching movies.'},
input: {content: 'How many moons does Mars have?'},
output: {
content: 'The planet Mars has two moons, Phobos and Deimos.',
},
},
],
messages: [
{
author: 'user',
content: 'Are my favorite movies based on a book series?',
content: 'How many planets are there in the solar system?',
},
],
};
Expand Down

0 comments on commit d00f948

Please sign in to comment.