Skip to content

cleanup(configs): remove unused configs and update OpenAI configuration#134

Merged
yhjun1026 merged 8 commits intomainfrom
cleanup/configs
Feb 28, 2026
Merged

cleanup(configs): remove unused configs and update OpenAI configuration#134
yhjun1026 merged 8 commits intomainfrom
cleanup/configs

Conversation

@csunny
Copy link
Contributor

@csunny csunny commented Feb 27, 2026

Summary

This PR cleans up the configs directory and updates configurations.

Changes:

  1. Removed unused config files (15+ files)
  2. Updated derisk-proxy-openai.toml:
    • Changed API endpoint to https://api.openai.com/v1
    • Replaced hardcoded secrets with environment variable placeholders
    • Simplified structure to match aliyun config pattern
  3. Security improvements: All API keys now use environment variables

Testing:

  • Verify OpenAI API endpoint works
  • Verify environment variable placeholders load correctly

Note: This PR includes breaking changes for deployments using removed config files.

- Remove 15 unused config files (derisk-graphrag, derisk-local-*, derisk-proxy-*)
- Keep derisk-docker.toml and configs/my for local debugging
- Add new derisk-openai.toml based on dev-1.toml configuration
- Replace hardcoded API keys with environment variable placeholders
- Replace hardcoded encrypt_key with environment variable placeholder
- Keep configs/my unchanged as requested
- Remove RAG configuration (rag, rag.storage sections)
- Remove models configuration (llms, embeddings, rerankers)
- Align structure with derisk-proxy-aliyun.toml
- Keep environment variable placeholders for security
…ceholders

- Change API base URL from DashScope to OpenAI (https://api.openai.com/v1)
- Update API key environment variable from DASHSCOPE_API_KEY_2 to OPENAI_API_KEY
- Keep OSS placeholders consistent with aliyun config
- Remove unused deployment configs (docker, bun, homebrew)
- Simplify OpenAI proxy config by removing RAG and models sections
- Update API endpoints to use https://api.openai.com/v1
- Replace hardcoded secrets with environment variable placeholders
- Align OpenAI config structure with Aliyun config for consistency

BREAKING CHANGE: Removed docker-compose and deployment configs,
moved to separate deployment repository
Copy link
Collaborator

@yhjun1026 yhjun1026 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+

@yhjun1026 yhjun1026 merged commit 318f941 into main Feb 28, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants