Skip to content

feat: add assistant file attachments#86

Merged
Microck merged 1 commit intomainfrom
feat/assistant-attachments
Apr 24, 2026
Merged

feat: add assistant file attachments#86
Microck merged 1 commit intomainfrom
feat/assistant-attachments

Conversation

@Microck
Copy link
Copy Markdown
Owner

@Microck Microck commented Apr 24, 2026

What changed

  • add repeated --attach <PATH> flags to kagi assistant
  • keep the existing JSON assistant prompt path for normal prompts
  • switch to multipart uploads when attachments are present, matching Kagi's live assistant transport
  • load local files from disk with inferred MIME types before upload
  • add parser, payload, and multipart request tests
  • add a README example for attached assistant prompts

Verification

  • cargo test -- --nocapture
  • live single-file upload returned attached-note
  • live multi-file upload returned 2

Closes #85

@Microck Microck merged commit a2d7d46 into main Apr 24, 2026
6 checks passed
@Microck Microck deleted the feat/assistant-attachments branch April 24, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] Adding images/files to assitant prompts

1 participant