Repository navigation
Update chatgpt extension - #14178
Update chatgpt extension#14178
Conversation
- support custom vision model name - support custom vision model name - Initial commit
|
Thank you for your first contribution! 🎉 🔔 @abielzulio @erodactyl @pernielsentikaer @shichongrui @timolins @cruelmoney @k8scat @Nauxscript @aeither @leeonfield @husniadil you might want to have a look. You can use this guide to learn how to check out the Pull Request locally in order to test it. You can expect an initial review within five business days. |
|
|
||
| const preferences = getPreferenceValues<Preferences>(); | ||
|
|
||
| const visionModelName: string = preferences.useVisionModel ? preferences.visionModelName ?? "gpt-4o" : "gpt-4o"; |
There was a problem hiding this comment.
I was a bit confused about this line, is it the same as
const visionModelName: string = preferences.useVisionModel && preferences.visionModelName || "gpt-4o";There was a problem hiding this comment.
Sorry for the confusion.
This code, is used to determine whether to use the gpt4-o model or a custom model.
If
useVisionModelis true andvisionModelNamehas a specific value, then the customvisionModelNamemodel is used. Otherwise, it's using thegpt4-omodel.
BTW, your code is fine and better than mine. I'm actually a business major and was looking forward to this feature for a long time, but never saw it. So I wanted to try it myself. But I'm not very familiar with programming, that's why I wrote this "weird" code.
optimized code
Co-authored-by: Per Nielsen Tikær <[email protected]>
commented
Aug 26, 2024
|
Published to the Raycast Store: |
commented
Aug 26, 2024
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
Description
Add the option to customize the vision model, to allow the use of custom models other than 'gpt-4o'.
Screencast
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder