[GH-ISSUE #1353] "Something went wrong" with OpenAI #866

Closed
opened 2026-03-02 11:53:22 +03:00 by kerem · 2 comments
Owner

Originally created by @Stooovie on GitHub (May 3, 2025).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/1353

Hi, Karakeep 0.24.1 installed via Proxmox Helper Scripts .

It works fine except OpenAI inference. My API key is valid and it's in the env file:

SERVER_VERSION=0.24.1
NEXTAUTH_SECRET="FoyxyofXu6J/pqm549EfARmR"
NEXTAUTH_URL="http://localhost:3000"
DATA_DIR="/opt/karakeep_data"
MEILI_ADDR="http://127.0.0.1:7700"
MEILI_MASTER_KEY="kzSPZ3ONNsQjMXUV"
BROWSER_WEB_URL="http://127.0.0.1:9222"

# If you're planning to use OpenAI for tagging. Uncomment the following line:
OPENAI_API_KEY="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"

# If you're planning to use ollama for tagging, uncomment the following lines:
# OLLAMA_BASE_URL="<OLLAMA_ADDR>"

# You can change the models used by uncommenting the following lines, and changing them according to your needs:
# INFERENCE_TEXT_MODEL="gpt-4o-mini"
# INFERENCE_IMAGE_MODEL="gpt-4o-mini"

(I have changed three characters in it to invalidate it here).

Any tips? Thanks!

Originally created by @Stooovie on GitHub (May 3, 2025). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/1353 Hi, Karakeep 0.24.1 installed via [Proxmox Helper Scripts ](https://community-scripts.github.io/ProxmoxVE/scripts?id=karakeep). **It works fine except OpenAI inference. My API key is valid and it's in the env file:** ``` SERVER_VERSION=0.24.1 NEXTAUTH_SECRET="FoyxyofXu6J/pqm549EfARmR" NEXTAUTH_URL="http://localhost:3000" DATA_DIR="/opt/karakeep_data" MEILI_ADDR="http://127.0.0.1:7700" MEILI_MASTER_KEY="kzSPZ3ONNsQjMXUV" BROWSER_WEB_URL="http://127.0.0.1:9222" # If you're planning to use OpenAI for tagging. Uncomment the following line: OPENAI_API_KEY="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" # If you're planning to use ollama for tagging, uncomment the following lines: # OLLAMA_BASE_URL="<OLLAMA_ADDR>" # You can change the models used by uncommenting the following lines, and changing them according to your needs: # INFERENCE_TEXT_MODEL="gpt-4o-mini" # INFERENCE_IMAGE_MODEL="gpt-4o-mini" ``` (I have changed three characters in it to invalidate it here). Any tips? Thanks!
kerem closed this issue 2026-03-02 11:53:22 +03:00
Author
Owner

@calvin-1 commented on GitHub (May 3, 2025):

same issue for me. API key is valid.. no luck with AI summary function. Unfortunately I don't have a solution.

edit: the issue is that you don't have an API token balance. I just fixed this by purchasing tokens.

<!-- gh-comment-id:2848850530 --> @calvin-1 commented on GitHub (May 3, 2025): same issue for me. API key is valid.. no luck with AI summary function. Unfortunately I don't have a solution. **edit:** the issue is that you don't have an API token balance. I just fixed this by purchasing tokens.
Author
Owner

@Eragos commented on GitHub (May 10, 2025):

@Stooovie just a security advise:

  • Better to change (at least remove) the used two secrets in your post
  • Yes, I'm aware that's maybe internal (localhost), but just in case...

To help:
How you include the env file?

You can use:

[...]
    env_file:
      - .env
[...]

alternative use it in the docker compose file directly:

[...]
    environment:
      # Configuration
      - DATA_DIR=/hoarder
      - NEXTAUTH_URL=https://karakeep.domain.com
[...]

Be sure you're restarting the docker container completly with e.g. docker compose up

Best Michael

<!-- gh-comment-id:2869107909 --> @Eragos commented on GitHub (May 10, 2025): @Stooovie just a security advise: - Better to change (at least remove) the used two secrets in your post - Yes, I'm aware that's maybe internal (localhost), but just in case... **To help:** How you include the env file? You can use: ``` [...] env_file: - .env [...] ``` alternative use it in the docker compose file directly: ``` [...] environment: # Configuration - DATA_DIR=/hoarder - NEXTAUTH_URL=https://karakeep.domain.com [...] ``` Be sure you're restarting the docker container completly with e.g. `docker compose up` Best Michael
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#866
No description provided.