Skip to content

Commit

Permalink
Add chatgpt extension
Browse files Browse the repository at this point in the history
- installed
- fix: infinite  state
- fix:
- refactor(raycast#16): better hook type
- refactor:  →
- refactor(raycast#16): better  &  obj usage
- fix:  →
- refactor(raycast#16): better  obj usage
- refactor(raycast#16): better  obj usage
- refactor:
- refactor:  →
- refactor:
- refactor(raycast#16): import
- fix: refine copy
- fix(raycast#16): derp
- Merge pull request raycast#16 from abielzulio/refactor/hooks
- refactor:
- fix(useHistory, History):
- fix(useHistory): better type
- refactor:
- refactor: better name
- refactor: proper  naming
- fix: remove unused
- refactor:
- refactor: remove unused import
- fix: lol
- feat:  &
- fix: improve  last index selection
- fix: missing  type in
- refactor:
- refactor: re-arrange
- refactor:  →
- refactor: re-arrange
- refactor:  →
- refactor: remove
- Merge pull request raycast#14 from abielzulio/wip/new-api
- docs: update
- feat: use new official
- refactor: using v4 api
- docs: discontinue for a while
- feat: enable detailed view option
- docs: update
- feat: use clearanceToken, userAgent
- chore: chatgpt v2.1.1
- docs: fix derp
- fix: refine ui + copy
- fix: move the question label to the markdown
- refactor: libs
- docs: make the logo smaller
- docs: add init step
- docs: more lil refine
- docs: lil refine
- docs: init changelog
- docs: new
- npm: add contributors
- feat + refactor: remove duplicated list
- fix: multiple render list view
- feat: smooth init load data
- fix: icon and category
- fix: package
- fix: tts glitching in the first second
- feat: auto tts option
- feat: PreferencesActionSection
- feat: more ActionPanel.Section
- refactor: GetAnswerAction
- feat: remove all saved answer actionn
- feat: add ActionPanel.Section
- fix: derp
- refactor: SaveActionSection
- refactor: remove unused action
- refactor: CopyActionSection
- fix: derp
- refactor: DestructiveAction
- refactor: SaveAsSnippetAction
- refactor: SaveAnswerAction
- refactor: TextToSpeechAction
- refactor: CopyToClipboardAction
- refactor: views
- refactor: remove unused prop
- feat: recent initial question history
- fix: change clear history shortcut key
- feat: save answer from history
- feat: confirm alert for invalid token
- feat: clear history
- feat: confirm alert
- docs: update preview
- docs: update feature
- refactor: filtering history and saved answer
- docs: remove preview
- cleanup
- refactor: ConversationItem type
- style: refine
- refactor: AnswerDetailView
- derp
- feat: history
- Merge pull request raycast#6 from shichongrui/main
- refactor: type
- Fix some TS issues so the project would build
- Merge pull request raycast#5 from ivanglushko/feature/speak-out-the-answer
- Merge remote-tracking branch 'origin/feature/speak-out-the-answer' into feature/speak-out-the-answer
- added handling multiple commands start
- feat: add request timeout
- Merge pull request raycast#4 from ivanglushko/feature/speak-out-the-answer
- Merge branch 'main' into feature/speak-out-the-answer
- Added tts feature to action pallete
- style: refine
- fix: sorting answer
- refactor: remove unused type
- feat: conversational
- feat: question metadata
- fix: change command key
- feat: clear search bar when got answer
- style: refine
- feat: snippet
- feat: sort by recent generated answer
- refactor: Answer createdAt
- feat: show instructions when user init a search bar
- fix: show restart convo when already generating answer
- fix: set sessionToken type field to password
- docs: update
- feat: saved answer
- feat: copy answer & question
- Merge pull request raycast#3 from timolins/main
- Update chatgpt api
- Fix Shareg.pt profile image
- Improve text wiping after submit
- Add fork README
- A lot of improvements * Use List for better conversational UI * Use native Preference store for Session Token * Added long-input mode for Code * Support for streaming answers * Add sharing capability via shareg.pt
- docs: update
- docs: update
- feat: sign in with session token
- chore: chatgpt v1.1.1
- fix: refine icon
- feat: copy answer & question
- feat: use form as an input
- fix: copy
- feat: add openai logo
- feat: question validation handle
- fix: copy
- docs: replace preview
- fix: headless
- init
- Initial commit
  • Loading branch information
guoliim committed Mar 6, 2023
1 parent d2bb271 commit 9fbe790
Show file tree
Hide file tree
Showing 35 changed files with 4,548 additions and 0 deletions.
10 changes: 10 additions & 0 deletions extensions/chatgpt/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"root": true,
"env": {
"es2020": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"]
}
7 changes: 7 additions & 0 deletions extensions/chatgpt/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules

# misc
.DS_Store
4 changes: 4 additions & 0 deletions extensions/chatgpt/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"printWidth": 120,
"singleQuote": false
}
12 changes: 12 additions & 0 deletions extensions/chatgpt/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Changelog

## [Initial release] - 2022-12-10

- Ask question through full text input or [search bar input](https://github.com/abielzulio/chatgpt-raycast/commit/e53e3d6284917729064f52583e8a1a39ff1c3176)
- Save and search your saved generated answer
- Read and search through questions/answers history
- Copy either answer or question directly with a hotkey
- List view as UI for better conversation flow [[@timolins](https://github.com/abielzulio/chatgpt-raycast/commit/e53e3d6284917729064f52583e8a1a39ff1c3176)]
- Share question and generated answer with [shareg.pt](https://shareg.pt) [[@timolins](https://github.com/abielzulio/chatgpt-raycast/commit/e53e3d6284917729064f52583e8a1a39ff1c3176)]
- Use native preferences to store the Session token [[@timolins](https://github.com/abielzulio/chatgpt-raycast/commit/e53e3d6284917729064f52583e8a1a39ff1c3176)]
- Text-to-speech support [[@ivanglushko](https://github.com/abielzulio/chatgpt-raycast/commit/dab566ed8f5f14a74a911395d47c8083b0df54e6)]
21 changes: 21 additions & 0 deletions extensions/chatgpt/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Abiel Zulio M

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
51 changes: 51 additions & 0 deletions extensions/chatgpt/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<p align="center">
<img width=100 src="https://github.com/abielzulio/chatgpt-raycast/blob/main/assets/icon@dark.png?raw=true">
</p>

<h1 align="center">ChatGPT</h1>

<h3 align="center">
Interact with OpenAI's ChatGPT right from your command bar
</h3>

![Conversation View](metadata/1.png)

# Features

### Ask anything, from your favourite thing

Straight from your command bar, ask anything that you wanted and get ChatGPT's generated answer without opening any browser app.

![Ask ChatGPT from the command bar](metadata/2.png)

### Well-designed, undistracted

Read through AI-generated answer in a clean and nice-looking markdown view without losing ongoing conversation.

![Conversation view](metadata/3.png)

### Save the answer, for later

Got the answer that you wanted? Great. Now you can save it in your collection locally and here you have it! No need to reask again.

![Saving the answer](metadata/4.png)

### Look-up your past, fast

Automatically save all the asked questions and its generated answer locally, so you can go back digging for the answer you're looking for without any internet connection!

![Looking through the question history](metadata/5.png)

# How to use

This package requires a valid `Secret Key` from [OpenAI](https://platform.openai.com/account/api-keys).

![Initial set-up](metadata/6.png)

> All the preferences value will be stored locally using [Preferences API](https://developers.raycast.com/api-reference/preferences)
---

<p align="right">
Made with ♥ from Indonesia
</p>
Binary file added extensions/chatgpt/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/chatgpt/assets/icon@dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/chatgpt/media/clearance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/chatgpt/media/user-agent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/chatgpt/metadata/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/chatgpt/metadata/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/chatgpt/metadata/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/chatgpt/metadata/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/chatgpt/metadata/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/chatgpt/metadata/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 9fbe790

Please sign in to comment.