Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config.yaml not recognized #190

Open
loranger opened this issue Oct 17, 2023 · 1 comment
Open

Config.yaml not recognized #190

loranger opened this issue Oct 17, 2023 · 1 comment

Comments

@loranger
Copy link

Hi,

My config.yaml is provided, with the correct values

config.yaml
services:
    openai:
        apiKey: sk-sFxxxxxxxxxxxxxxxxxxhiddenxxxxxxxxxxxxxxxx
    elevenlabs:
        apiKey: 83cxxxxxxxxxhiddenxxxxxxxxx

and even if the docker image says it's loaded

chatgpt-chat-1  |
chatgpt-chat-1  | > chat-with-gpt@0.2.3 start
chatgpt-chat-1  | > npx ts-node --logError src/index.ts
chatgpt-chat-1  |
chatgpt-chat-1  | Loaded config from: /app/data/config.yaml
chatgpt-chat-1  | Configuring Passport.
chatgpt-chat-1  | Initializing database adapter for sqlite3.
chatgpt-chat-1  | Open http://localhost:3000 in your browser.

The frontend considers I set no key

SCR-20231017-qgjc

What did I miss?
Could you help, please?

@loranger loranger changed the title Config.yaml not recognize Config.yaml not recognized Oct 19, 2023
@ve7mjc
Copy link

ve7mjc commented Nov 4, 2023

It did the same for me - claiming to have loaded the config file but seemingly ignoring the API key. The following worked for me.

Taking a peek at the code (config.ts) it looks like it is also expecting a yaml key below it called "loginRequired: true|false"

Give this a shot:

services:
    openai:
        apiKey: sk-sFxxxxxxxxxxxxxxxxxxhiddenxxxxxxxxxxxxxxxx
        loginRequired: false
    elevenlabs:
        apiKey: 83cxxxxxxxxxhiddenxxxxxxxxx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants