You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**codellama/CodeLlama-34b-Instruct-hf**| ❌ | ❌ | ✅ Validated on Dell XE7740 | ✅ Validated on Dell XE7740 |
137
+
|**Qwen/Qwen3-4B-Instruct-2507**| ✅ Validated on Dell XE7740 | ✅ Validated on Dell XE7740 | ❌ | ❌ |
129
138
130
139
### Required API Configuration
131
140
132
141
**For Inference Service (Code Translation):**
133
142
134
143
This application supports multiple inference deployment patterns:
135
144
136
-
-**GenAI Gateway**: Provide your GenAI Gateway URL and API key
145
+
**GenAI Gateway**: Provide your GenAI Gateway URL and API key
146
+
- URL format: https://api.example.com
137
147
- To generate the GenAI Gateway API key, use the [generate-vault-secrets.sh](https://github.com/opea-project/Enterprise-Inference/blob/main/core/scripts/generate-vault-secrets.sh) script
138
-
- The API key is the `litellm_master_key` value from the generated `vault.yml` file
139
-
140
-
-**APISIX Gateway**: Provide your APISIX Gateway URL and authentication token
148
+
- The API key is the litellm_master_key value from the generated vault.yml file
149
+
150
+
**APISIX Gateway**: Provide your APISIX Gateway URL and authentication token
- Note: APISIX requires the model name in the URL path
141
153
- To generate the APISIX authentication token, use the [generate-token.sh](https://github.com/opea-project/Enterprise-Inference/blob/main/core/scripts/generate-token.sh) script
142
154
- The token is generated using Keycloak client credentials
143
155
144
-
### Local Development Configuration
145
-
146
-
**For Local Testing Only (Optional)**
147
-
148
-
If you're testing with a local inference endpoint using a custom domain (e.g., `api.example.com` mapped to localhost in your hosts file):
149
-
150
-
1. Edit `.env` and set:
151
-
```bash
152
-
LOCAL_URL_ENDPOINT=api.example.com
153
-
```
154
-
(Use the domain name from your INFERENCE_API_ENDPOINT without `https://`)
155
-
156
-
2. This allows Docker containers to resolve your local domain correctly.
157
-
158
-
**Note:** For public domains or cloud-hosted endpoints, leave the default value `not-needed`.
159
-
160
156
### Verify Docker Installation
161
157
162
158
```bash
@@ -182,101 +178,23 @@ cd Enterprise-Inference/sample_solutions/CodeTranslation
182
178
183
179
### Set up the Environment
184
180
185
-
This application requires an `.env` file in the root directory for proper configuration. Create it with the commands below:
181
+
This application requires an `.env` file in the root directory for proper configuration. Create it using [.env.example](./.env.example)with the commands below:
186
182
187
183
```bash
188
-
# Create the .env file
189
-
cat > .env <<EOF
190
-
# Backend API Configuration
191
-
BACKEND_PORT=5001
192
-
193
-
# Inference API Configuration
194
-
# INFERENCE_API_ENDPOINT: URL to your inference service (without /v1 suffix)
195
-
# - For GenAI Gateway: https://genai-gateway.example.com
196
-
# - For APISIX Gateway: https://apisix-gateway.example.com/CodeLlama-34b-Instruct-hf
197
-
# Note: APISIX Gateway requires the model name in the URL path
198
-
#
199
-
# INFERENCE_API_TOKEN: Authentication token/API key for the inference service
200
-
# - For GenAI Gateway: Your GenAI Gateway API key
201
-
# - For APISIX Gateway: Your APISIX authentication token
# Local URL Endpoint (only needed for non-public domains)
265
-
# If using a local domain like api.example.com mapped to localhost, set to the domain without https://
266
-
# Otherwise, set to: not-needed
267
-
LOCAL_URL_ENDPOINT=not-needed
268
-
269
-
# SSL Verification Settings
270
-
# Set to false only for dev with self-signed certs
271
-
VERIFY_SSL=true
184
+
cp .env.example .env
272
185
```
186
+
Then modify it as needed, with special consideration to certain environment variables mentioned below. Read through the .env file for full instructions.
273
187
274
188
**Important Configuration Notes:**
275
189
276
-
-**INFERENCE_API_ENDPOINT**: Your actual inference service URL (replace `https://your-api-endpoint.com/deployment`)
277
-
- For APISIX/Keycloak deployments, the model name must be included in the endpoint URL (e.g., `https://apisix-gateway.example.com/CodeLlama-34b-Instruct-hf`)
190
+
-**INFERENCE_API_ENDPOINT**: Your actual inference service URL (replace `https://api.example.com`)
191
+
- For APISIX/Keycloak deployments, the model name must be included in the endpoint URL (e.g., `https://api.example.com/CodeLlama-34b-Instruct-hf`)
278
192
-**INFERENCE_API_TOKEN**: Your actual pre-generated authentication token
279
-
-**LOCAL_URL_ENDPOINT**: Only needed if using local domain mapping (see [Local Development Configuration](#local-development-configuration))
193
+
-**INFERENCE_MODEL_NAME**: Use the exact model name from your inference service
194
+
- To check available models: `curl https://api.example.com/v1/models -H "Authorization: Bearer your-token"`
195
+
-**LOCAL_URL_ENDPOINT**: Only needed if using local domain mapping (i.e. `api.example.com` mapped to localhost) for Docker containers to resolve correctly.
196
+
- Use the domain name from INFERENCE_API_ENDPOINT without `https://`
197
+
- For public domains or cloud-hosted endpoints, leave the default value `not-needed`
0 commit comments