Skip to content

Update chatgpt extension - #14178

Merged
raycastbot merged 6 commits into
raycast:mainfrom
luckykong:ext/chatgpt
Aug 26, 2024
Merged

raycastbot merged 6 commits into
raycast:mainfrom
luckykong:ext/chatgpt

Conversation

@luckykong

@luckykong luckykong commented Aug 25, 2024 •

Copy link
Copy Markdown
Contributor

Description

Add the option to customize the vision model, to allow the use of custom models other than 'gpt-4o'.

Screencast

image

Checklist

- support custom vision model name
- support custom vision model name
- Initial commit
@raycastbot

ghost commented Aug 25, 2024 •

Copy link
Copy Markdown
Collaborator

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.

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: chatgpt Issues related to the chatgpt extension labels Aug 25, 2024
Comment thread extensions/chatgpt/src/views/vision.tsx Outdated

const preferences = getPreferenceValues<Preferences>();

const visionModelName: string = preferences.useVisionModel ? preferences.visionModelName ?? "gpt-4o" : "gpt-4o";

ghost Aug 26, 2024

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was a bit confused about this line, is it the same as

const visionModelName: string = preferences.useVisionModel && preferences.visionModelName || "gpt-4o";

ghost Aug 26, 2024

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the confusion.
This code, is used to determine whether to use the gpt4-o model or a custom model.

If useVisionModel is true and visionModelName has a specific value, then the custom visionModelName model is used. Otherwise, it's using the gpt4-o model.

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.

Comment thread extensions/chatgpt/CHANGELOG.md Resolved
@pernielsentikaer pernielsentikaer self-assigned this Aug 26, 2024
Kong Gaowen and others added 2 commits August 26, 2024 14:45
optimized code
Co-authored-by: Per Nielsen Tikær <[email protected]>

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi 👋

Looks good to me, approved 🔥

@raycastbot
raycastbot merged commit 4e86383 into raycast:main Aug 26, 2024
@github-actions

ghost commented Aug 26, 2024

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Aug 26, 2024

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

@luckykong
luckykong deleted the ext/chatgpt branch August 27, 2024 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension: chatgpt Issues related to the chatgpt extension extension fix / improvement Label for PRs with extension's fix improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants