Skip to content

Commit

Permalink
Updates todos
Browse files Browse the repository at this point in the history
  • Loading branch information
apmiller108 committed Jan 24, 2025
1 parent 03dd105 commit 7c406d2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 9 additions & 1 deletion TODO.org
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,14 @@ CLOSED: [2025-01-19 Sun 20:24]
* DONE preset updates [1/1]
CLOSED: [2025-01-20 Mon 13:49]
- [X] auto select the temperature of the preset
* TODO support adding files to the prompt
* TODO support adding files to the prompt [/]
- [X] Add file input and attachment to generate text requests
- [ ] Refactor: normalize models across vendors. Just an array. Move default
to property on the struct.
- [ ] Refactor: Add vendor to model. Instantiate the client based on vendor from
selected model
- [ ] Pass in just the generate text request obj to invoke model, forward that
to the client and wrap it in a vendor specific request object.
- [ ] Include the image in the HTTP request
- [ ] implement prompt caching for large user messages
https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching
Expand All @@ -180,6 +186,8 @@ CLOSED: [2025-01-20 Mon 13:49]
* TODO Edit the last prompt. Trigger regenerate the last assistant response.
* TODO search conversations
* TODO add image generation to conversations
Look into doing this via tool use
https://docs.anthropic.com/en/docs/build-with-claude/tool-use#single-tool-example
* TODO add video generation to conversations
* TODO add audio generation to conversations
* TODO add audio transcription to conversations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,16 @@ export default class FileInputController extends Controller {
static targets = ['input', 'uploadProgress']

onUploadStart() {
console.log('start')
this.uploadProgressTarget.classList.remove('.error')
this.uploadProgressTarget.style.zIndex = '2'
}

onUploadProgress(e) {

Check failure on line 11 in app/views/components/file_input_component/file_input_controller.js

View workflow job for this annotation

GitHub Actions / Eslint

'e' is defined but never used
const { progress } = event.detail
console.log(`progres: ${progress}`)
this.uploadProgressTarget.style.width = `${progress}%`
}

onUploadEnd() {
console.log('end')
this.uploadProgressTarget.style.zIndex = ''
this.uploadProgressTarget.style.width = '0'
}
Expand Down

0 comments on commit 7c406d2

Please sign in to comment.