Skip to content

Commit 00c6976

Browse files
icyqwqlaride
authored andcommitted
feat(openai): support audio contont type
Resolved #464
1 parent a7221a0 commit 00c6976

File tree

10 files changed

+415
-31
lines changed

10 files changed

+415
-31
lines changed

.gitlab/ci/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,6 +1450,7 @@ build_components_openai_test_apps:
14501450
- IMAGE: espressif/idf:v4.4.6 # Due to a bug in the ESP32-S3 not being able to scan for AP in release/v4.4,
14511451
# temporarily using version v4.4.6 and awaiting the next update in release/v4.4.
14521452
- IMAGE: espressif/idf:release-v5.0
1453+
- IMAGE: espressif/idf:release-v5.4
14531454
variables:
14541455
EXAMPLE_DIR: components/openai/test_apps
14551456

.gitlab/ci/target_test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,13 +316,17 @@ components_test_led_indicator:
316316
TEST_ENV: led_indicator
317317

318318
components_test_openai:
319+
# To avoid factors such as unstable wifi or expired openai-key, allow ci test to fail.
320+
allow_failure: true
319321
extends:
320322
- .pytest_template
321323
- .rules:build:components_openai_test_apps
322324
needs:
323325
- job: "build_components_openai_test_apps"
324326
artifacts: true
325327
optional: true
328+
retry:
329+
max: 2
326330
parallel:
327331
matrix:
328332
- IDF_TARGET: esp32s3
@@ -331,10 +335,13 @@ components_test_openai:
331335
- IDF_TARGET: esp32s3
332336
IDF_VERSION: "5.0"
333337
ENV_TAG: "openai"
338+
- IDF_TARGET: esp32s3
339+
IDF_VERSION: "5.4"
340+
ENV_TAG: "openai"
334341
tags:
335342
- ${IDF_TARGET}
336343
- ${ENV_TAG}
337-
image: $DOCKER_TARGET_TEST_v5_1_ENV_IMAGE
344+
image: $DOCKER_TARGET_TEST_v5_4_ENV_IMAGE
338345
variables:
339346
TEST_TARGET: esp32s3
340347
TEST_FOLDER: components/openai

.pre-commit-config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ repos:
3636
.*.pb-c.h|
3737
.*.pb-c.c|
3838
.*.yuv|
39-
.*.patch
39+
.*.patch|
40+
.*.base64
4041
)$
4142
- id: end-of-file-fixer
4243
exclude: *whitespace_excludes
@@ -93,4 +94,4 @@ repos:
9394
rev: v2.3.0
9495
hooks:
9596
- id: codespell
96-
args: [-w, "--ignore-words=codespell-ignore-list", "--skip=*.js,*.vue,*/pnpm-lock.yaml,*/package-lock.json,*/yarn.lock"]
97+
args: [-w, "--ignore-words=codespell-ignore-list", "--skip=*.js,*.vue,*/pnpm-lock.yaml,*/package-lock.json,*/yarn.lock,*.base64"]

components/openai/CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
# ChangeLog
22

3+
## v1.1.0 - 2025-7-24
4+
5+
### Enhancements
6+
7+
* Chat completion supports multi-modal input [#464](https://github.com/espressif/esp-iot-solution/pull/464)
8+
* Text-to-speech supports streaming output [#464](https://github.com/espressif/esp-iot-solution/pull/464)
9+
310
## v1.0.2 - 2025-2-11
411

512
### Bug Fixes:
613

7-
* Fix OpenAI_Request not handling chunked data correctly [!467](https://github.com/espressif/esp-iot-solution/pull/467)
14+
* Fix OpenAI_Request not handling chunked data correctly [#467](https://github.com/espressif/esp-iot-solution/pull/467)
815

916
## v1.0.1 - 2024-11-5
1017

0 commit comments

Comments
 (0)