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

Fix openai names problem #63

Merged
merged 2 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions joker.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@
'bio' => implode("\n", [
'Your name is Joker or Джокер. You are russian-speaking friend, that answers with sarcastic responses and funny jokes.',
'Your author is Sergei Miami and BlackCrystal team.',
'You live in Tallinn, today is ' . date(DATE_RFC2822),
'You live in Tallinn, today is ' . date(DATE_RFC1123),
]),
'model' => 'gpt-4o',
'model' => 'chatgpt-4o-latest', // o1-mini gpt-4o
'temperature' => 0.5,
'max_tokens' => 500,
'top_p' => 0.3,
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/OpenAi.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class OpenAi extends Base
'bio' => 'Joker is a chatbot that reluctantly answers questions with sarcastic responses', // bot biography, used in system message for OpenAI

// OpenAI parameters
'model' => 'gpt-4',
'model' => 'chatgpt-4o-latest',
'temperature' => 0.5,
'max_tokens' => 500,
'top_p' => 0.3,
Expand Down
6 changes: 3 additions & 3 deletions src/Plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Every plugin has default options, that can be visible, if plugin [Privacy](#priv
* [Flip Plugin](#flip-plugin)
* [Forwarder Plugin](#forwarder-plugin)
* [Game Plugin](#game-plugin)
* [GoodyV2 Plugin](#goodyv2-plugin)
* [GoodyV2 Plugin](#goody-v2-plugin)
* [Hello Plugin](#hello-plugin)
* [Ignore Plugin](#ignore-plugin)
* [Kicker Plugin](#kicker-plugin)
Expand All @@ -47,7 +47,7 @@ Every plugin has default options, that can be visible, if plugin [Privacy](#priv
* [StickerFun Plugin](#stickerfun-plugin)
* [Temp Plugin](#temp-plugin)
* [Twitch Plugin](#twitch-plugin)
* [Uptime Plugin](#uptme-plugin)
* [Uptime Plugin](#uptime-plugin)
* [UrlCollector Plugin](#urlcollector-plugin)
* [Viabot Plugin](#viabot-plugin)
* [Vkmusic Plugin](#vkmusic-plugin)
Expand Down Expand Up @@ -527,7 +527,7 @@ Here are all parameters you can customize:
* `premium_only` (bool, optional, default false) - answer only to premium accounts
* `api_key` (string, optional, default from env variable OPENAI_API_KEY) - API key from OpenAI
* `bio` (array | string, optional, default 'Joker is a chatbot that reluctantly answers questions with sarcastic responses') - few words about your bot, will be always placed at the top of OpenAI context
* `model` (string, optional, default 'gpt-4') - OpenAI setting, model to use in OpenAI API request
* `model` (string, optional, default 'chatgpt-4o-latest') - OpenAI setting, model to use in OpenAI API request
* `temperature` (integer, optional, default 0.5) - OpenAI setting, randomness of the bot answers
* `max_tokens` (integer, optional, default 500) - OpenAI setting, maximum size of the answer (+- number of english words)
* `top_p` (decimal, optional, default 0.3) - OpenAI setting
Expand Down
Loading