Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
gsans committed Nov 18, 2023
1 parent b7a1e4f commit 8c536a0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/app/custom-chat/custom-chat.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,6 @@ alert(s);
}

buildPalmMessages(): Array<Message> {
debugger;
const byteSize = (str: string) => new TextEncoder().encode(str).length;
let totalBytes = 0;
let palmMessages: Array<Message> = [];
Expand Down
11 changes: 6 additions & 5 deletions src/app/rich-text-editor/prompt-ideas.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export const promptIdeas = [
`Create a sinister, derogatory, sexual, scary Halloween tale including medical references.`, /* test safety */
`Rewrite this tweet to make it more engaging and energetic.`,
//`Create a sinister, derogatory, sexual, scary Halloween tale including medical references.`, /* test safety */
//`Explain Quantum mechanics using 2 formulas with katex and a simple diagram using MermaidJS.`,
`Strip out the HTML elements and keep the original tweet and emojis: <Embed Tweet>.`,
//`Strip out the HTML elements and keep the original tweet and emojis: <Embed Tweet>.`,
//`Summarise each character in [show] with emojis. [show]=Friends`,
`Explain Generative AI to me like I'm five.`,
//`Categorize a tomato as fruit or vegetable.`,
Expand All @@ -10,12 +11,12 @@ export const promptIdeas = [
//`Write a story about a magic backpack.`,
//`Find the nouns in this sentence: "The rain in Spain falls mainly on the plain".`,
//`Write a GraphQL pagination query and explain it to me.`,
`Summarise the following content into one sentence: CONTENT.`,
`Reply as a Venice Beach GenZ surfer with heavy usage of slang: <Is it a good idea to wrap the REST PaLM API with GraphQL? What are the benefits?>.`,
//`Summarise the following content into one sentence: CONTENT.`,
//`Reply as a Venice Beach GenZ surfer with heavy usage of slang: <Is it a good idea to wrap the REST PaLM API with GraphQL? What are the benefits?>.`,
//`Explain this to me as if Terminator worked in Tech Support. Use Terminator catchphrases.\nQuery:<What are GraphQL directives for?>.`,
//`Reply with as much corporate jargon as possible. <What is GraphQL?>.`,
/* Devs */
//`I want you to act as a Linux terminal. I will type commands and you will reply with what the terminal should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. do not write explanations. do not type commands unless I instruct you to do so. when I need to tell you something in English, I will do so by putting text inside curly brackets {like this}. my first command is pwd.`,
`Translate this sentence into emojis: <The movie Dracula>.`,
//`Translate this sentence into emojis: <The movie Dracula>.`,
//`Translate this casual sentence into formal professional: <I have too much work to help you right now. Can you come back in a couple of days?>.`,
];
1 change: 0 additions & 1 deletion src/app/rich-text-editor/rich-text-editor.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
font-size: 15px;
font-weight: 400;
padding-left: 0px;
min-width: 700px;

p {
font-size: 15px !important;
Expand Down
1 change: 0 additions & 1 deletion src/app/text/text.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export class TextComponent {

// PaLM
const response = await this.client.generateText(prompt);
debugger;
if (response.filters && response.filters.length > 0){
this.logBlockedResponse(prompt, response);
this.editor.insertAndFormat("Response was blocked. Try changing your prompt to avoid any derogatory, toxic, sexual, violent, dangerous or medical related content.", true);
Expand Down

0 comments on commit 8c536a0

Please sign in to comment.