elevenlabs_client 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/lib/elevenlabs_client/http_client.rb +7 -0
- data/lib/elevenlabs_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e5d07e9e3fe474540a23a42b42a96747e9e3dd3e17a6153df716f940aff72d37
|
|
4
|
+
data.tar.gz: 22ac0f66c064c51bc5ae145cde35dc22fde3fd96fbe3999cf74aa29b43f970ec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 922bcdfbc466fe0feb260ab103e15a6047b2e9af9e281c978561c7e17fca10cff9420a70a117eb32513a30b51c072ea2bf7b133b8efface1b7c15cb31630f583
|
|
7
|
+
data.tar.gz: bfbe4871e45a213e08e7b46f2799418e43b1e26c1b5b585565a27a7bf6c5b1bfef8b5b505c3226d9e9f59299b333b59488e84ad380ff9b70bbd044fb3b8a6f9e
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.8.1] - 2025-12-03
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- **🔧 Document Upload MIME Types** - Fixed `invalid_file_type` errors when uploading documents to knowledge base
|
|
14
|
+
- Added support for document MIME types in `HttpClient#mime_for` method:
|
|
15
|
+
- PDF: `application/pdf`
|
|
16
|
+
- EPUB: `application/epub+zip`
|
|
17
|
+
- DOCX: `application/vnd.openxmlformats-officedocument.wordprocessingml.document`
|
|
18
|
+
- DOC: `application/msword`
|
|
19
|
+
- TXT: `text/plain`
|
|
20
|
+
- HTML/HTM: `text/html`
|
|
21
|
+
- Markdown: `text/markdown`
|
|
22
|
+
- Previously, all document types defaulted to `application/octet-stream`, causing ElevenLabs API to reject valid files
|
|
23
|
+
- Added comprehensive test coverage for MIME type detection
|
|
24
|
+
|
|
10
25
|
## [0.8.0] - 2024-09-17
|
|
11
26
|
|
|
12
27
|
### Added
|
|
@@ -318,6 +318,13 @@ module ElevenlabsClient
|
|
|
318
318
|
when ".wav" then "audio/wav"
|
|
319
319
|
when ".flac" then "audio/flac"
|
|
320
320
|
when ".m4a" then "audio/mp4"
|
|
321
|
+
when ".pdf" then "application/pdf"
|
|
322
|
+
when ".epub" then "application/epub+zip"
|
|
323
|
+
when ".docx" then "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
324
|
+
when ".doc" then "application/msword"
|
|
325
|
+
when ".txt" then "text/plain"
|
|
326
|
+
when ".html", ".htm" then "text/html"
|
|
327
|
+
when ".md" then "text/markdown"
|
|
321
328
|
else "application/octet-stream"
|
|
322
329
|
end
|
|
323
330
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: elevenlabs_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vitor Oliveira
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-12-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|