Skip to content

got error if set env OPENAI_API_BASE_URL #368

Open
@luxurine

Description

@luxurine

Describe the bug

If set OPENAI_API_BASE_URL explicitly, will got following error message:

➜  ~ docker logs -f chatgpt-demo
sed: bad option in substitution expression
sed: bad option in substitution expression
sed: bad option in substitution expression
Starting service...
Running script...

Reproduction

docker run --name=chatgpt-demo -e OPENAI_API_KEY=sk-xxx -e OPENAI_API_BASE_URL=https://api.openai.com -p 3000:3000 -d ddiu8081/chatgpt-demo:latest

System Info

just use docker run

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dockerquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions