Skip to content

When using LocalAI, request is sent to not existing transcription endpoint #273

@pmarini-nc

Description

@pmarini-nc

Which version of integration_openai are you using?

3.7.1

Which version of Nextcloud are you using?

32.0.0

Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.

No response

Describe the Bug

When starting a task to transcribe audio, I see a 404 error on the /audio/transcription/ endpoint in LocalAI (version 3.6.0, but this was also true for older versions)

Client error ip=10.0.0.237 latency="695.836µs" method=POST status=404 url=/audio/transcriptions

and the task fails.

Expected Behavior

The task doesn't fail.

The correct endpoint is /v1/audio/transcription/ and if a reverse proxy is put in the middle with the proper rewrite rule, everything works fine.

Not sure if this is a change in the LocalAI API specification or something else, so basically not sure this is a bug.

# occ config:list integration_openai
{
    "apps": {
        "integration_openai": {
            "api_key": "***REMOVED SENSITIVE VALUE***",
            "basic_password": "***REMOVED SENSITIVE VALUE***",
            "basic_user": "",
            "chunk_size": 10000,
            "default_completion_model_id": "ibm-granite_granite-4.0-h-micro",
            "default_image_model_id": "whisper-1",
            "default_image_size": "1024x1024",
            "default_speech_model_id": "Default",
            "default_speech_voice": "alloy",
            "default_stt_model_id": "Default",
            "enabled": "yes",
            "installed_version": "3.7.1",
            "llm_extra_params": "",
            "localai_text_generation_time": "83",
            "max_tokens": "1000",
            "quota_period": "30",
            "quotas": "[0,0,0,0]",
            "request_timeout": "2400",
            "service_name": "myname",
            "tts_voices": "[\"alloy\",\"ash\",\"ballad\",\"coral\",\"echo\",\"fable\",\"onyx\",\"nova\",\"sage\",\"shimmer\",\"verse\"]",
            "types": "",
            "url": "https:\/\/local-ai.myname.cloud"
        }
    }
}

To Reproduce

Just run a transcription task with the Nextcloud and LocalAI versions mentioned above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions