Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Personas? #2

Closed
nicmar opened this issue Feb 22, 2023 · 1 comment
Closed

Personas? #2

nicmar opened this issue Feb 22, 2023 · 1 comment

Comments

@nicmar
Copy link

nicmar commented Feb 22, 2023

According to ChatGPT, you should be able to add personas, like this:

$opts = [
    'prompt' => $prompt,
    'temperature' => 0.5,
    "max_tokens" => 2048,
	'persona' => [
		'name' => 'Zumm',
		'emotions' => [
			'friendly',
			'helpful',
			'witty'
		],
		'voice' => 'gravelly'
	],
    "frequency_penalty" => 0,
    "presence_penalty" => 0.6,
    "stream" => true,
    "top_p" => 1,
    "stop" => [" Human:", " AI:"]
];

But when I do that, I stop getting responses. Any ideas why?

@orhanerday
Copy link
Owner

persona is not a correct API reference;

orhan@PC MINGW64 ~/Documents/ChatGPT (main)
$ php a.php 
string(160) "{
  "error": {
    "message": "Unrecognized request argument supplied: persona",
    "type": "invalid_request_error",
    "param": null,
    "code": null
  }
}
"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants