Changeset 3206319
- Timestamp:
- 12/11/2024 12:04:05 PM (12 months ago)
- Location:
- martincv-openai-blog-post
- Files:
-
- 25 added
- 3 edited
-
tags/1.1 (added)
-
tags/1.1/LICENSE (added)
-
tags/1.1/README.md (added)
-
tags/1.1/assets (added)
-
tags/1.1/assets/admin (added)
-
tags/1.1/assets/admin/css (added)
-
tags/1.1/assets/admin/css/post.css (added)
-
tags/1.1/assets/admin/js (added)
-
tags/1.1/assets/admin/js/post.js (added)
-
tags/1.1/inc (added)
-
tags/1.1/inc/admin (added)
-
tags/1.1/inc/admin/class-dashboard.php (added)
-
tags/1.1/inc/admin/class-post.php (added)
-
tags/1.1/inc/ajax (added)
-
tags/1.1/inc/ajax/class-post.php (added)
-
tags/1.1/inc/class-openai.php (added)
-
tags/1.1/inc/core (added)
-
tags/1.1/inc/core/autoloader.php (added)
-
tags/1.1/inc/traits (added)
-
tags/1.1/inc/traits/trait-singleton.php (added)
-
tags/1.1/martincv-openai-post.php (added)
-
tags/1.1/views (added)
-
tags/1.1/views/admin (added)
-
tags/1.1/views/admin/template-admin-dashboard.php (added)
-
tags/1.1/views/admin/template-admin-post-metabox.php (added)
-
trunk/README.md (modified) (1 diff)
-
trunk/inc/class-openai.php (modified) (2 diffs)
-
trunk/martincv-openai-post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
martincv-openai-blog-post/trunk/README.md
r3120281 r3206319 4 4 Tags: openai, post, gpt 5 5 Requires at least: 5.0 6 Tested up to: 6. 66 Tested up to: 6.7.1 7 7 Requires PHP: 7.3 8 Stable tag: 1. 08 Stable tag: 1.1 9 9 License: GPLv3 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html 11 11 12 Utilizes OpenAi DaVinci 003to generate Post based on the post title.12 Utilizes OpenAi GPT-3.5-turbo to generate Post based on the post title. 13 13 You can use it with Gutenberg or Classic editor. Works for both posts and pages. 14 14 15 15 == Description == 16 16 17 This plugin utilizes OpenAi DaVinci 003to generated Blog Post based on the entered post title.17 This plugin utilizes OpenAi GPT-3.5-turbo to generated Blog Post based on the entered post title. 18 18 You can use it with Gutenberg Editor or the Classic editor. Works for both posts and pages. 19 19 -
martincv-openai-blog-post/trunk/inc/class-openai.php
r2834084 r3206319 132 132 $request_args = array( 133 133 'body' => array( 134 'model' => 'text-davinci-003', 134 'model' => 'gpt-3.5-turbo', 135 'messages' => array( 136 array( 137 'role' => 'system', 138 'content' => 'You are a helpful assistant.', 139 ), 140 array( 141 'role' => 'user', 142 'content' => $prompt, 143 ), 144 ), 135 145 'max_tokens' => (int) $max_tokens, 136 146 'temperature' => (float) $temperature, … … 138 148 'frequency_penalty' => (float) $frequency_penalty, 139 149 'presence_penalty' => (float) $presence_penalty, 140 'best_of' => (int) $best_of,141 'prompt' => $prompt,142 150 ), 143 151 ); 144 152 145 return $this->request( 'c ompletions', $request_args );153 return $this->request( 'chat/completions', $request_args ); 146 154 } 147 155 -
martincv-openai-blog-post/trunk/martincv-openai-post.php
r2834084 r3206319 5 5 * Author: MartinCV 6 6 * Author URI: https://www.martincv.com 7 * Version: 1. 07 * Version: 1.1 8 8 * Text Domain: martincv-openai-post 9 9 *
Note: See TracChangeset
for help on using the changeset viewer.