Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
feat(Bing): use env system message as default
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard-Weiss committed Jan 17, 2024
1 parent e7daa0b commit 981b69d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Intelligence_Questions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,7 @@ State 3:
5 liter container: 4 liter
3 liter container: 1 liter
2 liter container: 0 liter
R7: GPT-4 Turbo tries to fill the 5 liter container or empty containers. Consistently solvable by Precise.
R7: GPT-4 Turbo tries to fill the 5 liter container or empty containers. Consistently solvable by Precise.

Q8: I have a ball in a cup in my hands and I am inside the elevator on the first floor. I turn the cup upside down and ride the elevator to the second floor. It stops at the second floor and I take the stairs to the third floor. I place my cup on the table. What floor is the ball on?
A8: Depending on whether you turned the cup on your hand it's on the third floor between the cup and your hand. If not, it is on whichever floor the elevator is on, unless moved. If the elevator hasn't moved, it's on the second floor.
1 change: 1 addition & 0 deletions settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export default {
useBase64: process.env.USE_BASE64 === 'true',
// Set to false to disable suggestions
showSuggestions: process.env.SHOW_SUGGESTIONS !== 'false',
systemMessage: process.env.SYSTEM_MESSAGE,
},
chatGptBrowserClient: {
// (Optional) Support for a reverse proxy for the conversation endpoint (private API server).
Expand Down
3 changes: 2 additions & 1 deletion src/BingAIClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,11 +335,12 @@ export default class BingAIClient {
conversationSignature,
clientId,
plugins,
systemMessage,
} = opts;
systemMessage = systemMessage || this.options.systemMessage;

const {
invocationId = 0,
systemMessage,
toneStyle,
modelVersion,
context = jailbreakConversationId ? process.env.CONTEXT : null,
Expand Down

0 comments on commit 981b69d

Please sign in to comment.