Skip to content

Commit 6c2a6ac

Browse files
add CodeTranslation
1 parent 0bd9e8f commit 6c2a6ac

30 files changed

Lines changed: 1941 additions & 0 deletions
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Backend API Configuration
2+
BACKEND_PORT=5001
3+
4+
# Inference API Configuration
5+
# INFERENCE_API_ENDPOINT: URL to your inference service (without /v1 suffix)
6+
# - For GenAI Gateway: https://genai-gateway.example.com
7+
# - For APISIX Gateway: https://apisix-gateway.example.com/inference
8+
#
9+
# INFERENCE_API_TOKEN: Authentication token/API key for the inference service
10+
# - For GenAI Gateway: Your GenAI Gateway API key
11+
# - For APISIX Gateway: Your APISIX authentication token
12+
INFERENCE_API_ENDPOINT=https://your-api-endpoint.com/deployment
13+
INFERENCE_API_TOKEN=your-pre-generated-token-here
14+
INFERENCE_MODEL_NAME=codellama/CodeLlama-34b-Instruct-hf
15+
16+
# LLM Settings
17+
LLM_TEMPERATURE=0.2
18+
LLM_MAX_TOKENS=4096
19+
20+
# Code Translation Settings
21+
MAX_CODE_LENGTH=10000
22+
MAX_FILE_SIZE=10485760
23+
24+
# CORS Configuration
25+
CORS_ALLOW_ORIGINS=["http://localhost:5173", "http://localhost:3000"]
26+
27+
# Local URL Endpoint (only needed for non-public domains)
28+
# If using a local domain like inference.example.com mapped to localhost, set to the domain without https://
29+
# Otherwise, set to: not-needed
30+
LOCAL_URL_ENDPOINT=not-needed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Environment variables
2+
.env
3+
.env.local
4+
.env.production
5+
.env.*.local
6+
7+
# Python
8+
__pycache__/
9+
*.py[cod]
10+
*$py.class
11+
*.so
12+
.Python
13+
build/
14+
develop-eggs/
15+
dist/
16+
downloads/
17+
eggs/
18+
.eggs/
19+
lib/
20+
lib64/
21+
parts/
22+
sdist/
23+
var/
24+
wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
venv/
30+
env/
31+
ENV/
32+
.venv
33+
34+
# Node
35+
node_modules/
36+
npm-debug.log*
37+
yarn-debug.log*
38+
yarn-error.log*
39+
pnpm-debug.log*
40+
lerna-debug.log*
41+
.npm
42+
.yarn
43+
package-lock.json
44+
45+
# IDE
46+
.vscode/
47+
.idea/
48+
*.swp
49+
*.swo
50+
*~
51+
.DS_Store
52+
53+
# Build outputs
54+
dist/
55+
*.log
56+
57+
# Temporary files
58+
*.tmp
59+
tmp/
60+
temp/

0 commit comments

Comments
 (0)