Skip to content

llm access config #25

Description

@aWazINg7

What are you trying to set up?

<i want to solve the warning:

Run set -euxo pipefail

  • python -u main.py --mode daily
  • tee daily-pipeline.log
    WARNING: LLM API key environment variable is not set
    Traceback (most recent call last):
    File "/home/runner/work/scholarNews/scholarNews/main.py", line 293, in
    run_daily(sources)
    File "/home/runner/work/scholarNews/scholarNews/main.py", line 124, in run_daily
    client = get_llm_client(sources)
    ^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/runner/work/scholarNews/scholarNews/main.py", line 83, in get_llm_client
    return OpenAI(**kwargs)
    ^^^^^^^^^^^^^^^^
    File "/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/site-packages/openai/_client.py", line 194, in init
    raise OpenAIError(
    openai.OpenAIError: Missing credentials. Please pass an api_key, workload_identity, admin_api_key, or set the OPENAI_API_KEY or OPENAI_ADMIN_KEY environment variable.

and my source is like this:

llm:
provider: anthropic_compat
scoring_model: claude-sonnet-4-6
summarization_model: claude-sonnet-4-6
base_url: ""(i redact that)
api_key_env: ANTHROPIC_API_KEY

Which path are you using?

  • Setup Wizard
  • Manual config
  • Local run
  • [1] GitHub Actions only

Relevant config

# Generated by Linnet Setup Wizard

display_order:
  - arxiv
  - hacker_news
  - github_trending
  - hitokoto
  - weather

hitokoto:
  enabled: true

quote_of_day:
  enabled: false

weather:
  enabled: true

arxiv:
  enabled: true

us_stocks:
  enabled: false

hacker_news:
  enabled: true

github_trending:
  enabled: true

postdoc_jobs:
  enabled: false

supervisor_updates:
  enabled: false

language: zh

llm:
  provider: anthropic_compat
  scoring_model: claude-sonnet-4-6
  summarization_model: claude-sonnet-4-6
  base_url: ""(i redact that)
  api_key_env: ANTHROPIC_API_KEY(i am sure i add the secret in settings)

pages:
  base_url: ""

theme:
  bg: "#f4ede0"
  accent: "#2a7a7a"

weekly:
  arxiv:
    enabled: true
    top_n: 5
  hacker_news:
    enabled: true
    top_n: 5
  github_trending:
    enabled: true
    top_n: 5
  hitokoto:
    enabled: false
    top_n: 5
  weather:
    enabled: false
    top_n: 5

monthly:
  arxiv:
    enabled: true
    top_n: 10
  hacker_news:
    enabled: false
    top_n: 5
  github_trending:
    enabled: false
    top_n: 5
  hitokoto:
    enabled: false
    top_n: 5
  weather:
    enabled: false
    top_n: 5

sinks:
  slack:
    enabled: false
    # Add SLACK_WEBHOOK_URL as a GitHub Actions secret
    max_papers: 5
    max_hn: 3
    max_github: 3
  serverchan:
    enabled: false
    # Add SERVERCHAN_SENDKEY as a GitHub Actions secret
    max_papers: 5
    max_hn: 3
    max_github: 3

What do you expect to happen?

What actually happens?

What have you already tried?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions