Skip to content

使用docker时,voice code没有正确被带入 #239

@PhantasWeng

Description

@PhantasWeng

在使用 Docker 时,若使用 openai 当 tts provider ,会遇到以下错误

krillin-1  | 2025-05-28T06:36:03.995Z	error	openai/openai.go:93	openai tts failed	{"status_code": 400, "body": "{\n  \"error\": {\n    \"message\": \"[{'type': 'enum', 'loc': ('body', 'voice'), 'msg': \\\"Input should be 'nova', 'shimmer', 'echo', 'onyx', 'fable', 'alloy', 'ash', 'sage' or 'coral'\\\", 'input': '', 'ctx': {'expected': \\\"'nova', 'shimmer', 'echo', 'onyx', 'fable', 'alloy', 'ash', 'sage' or 'coral'\\\"}}]\",\n    \"type\": \"invalid_request_error\",\n    \"param\": null,\n    \"code\": null\n  }\n}"}

实际上有填写 voice code
但不会正确被带入

Image

这是我的 config 片段

[tts.openai]
        base_url = "https://api.openai.com/v1"
        api_key = "MY API KEY"
        model = "gpt-4o-mini-tts" # gpt-4o-mini-tts、tts-1、tts-1-hd

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions