docs: improve JSON formatting examples and clarify Docker build note

This commit is contained in:
mrT23 2025-08-07 08:25:17 +03:00
parent 03867d5962
commit df9cb3f635
No known key found for this signature in database
GPG key ID: D350490E39D5F5AD

View file

@ -435,11 +435,14 @@ If you encounter rate limiting:
```
**Error: "Invalid JSON format"**
- **Solution**: Check that arrays are properly formatted as JSON strings:
```yaml
# Correct
Correct:
config.fallback_models: '["model1", "model2"]'
# Incorrect (interpreted as a YAML list, not a string)
Incorrect (interpreted as a YAML list, not a string):
config.fallback_models: ["model1", "model2"]
```
@ -611,9 +614,10 @@ For example: `GITHUB.WEBHOOK_SECRET` --> `GITHUB__WEBHOOK_SECRET`
2. Build a docker image that can be used as a lambda function
```shell
# Note: --target github_lambda is optional as it's the default target
docker buildx build --platform=linux/amd64 . -t codiumai/pr-agent:github_lambda --target github_lambda -f docker/Dockerfile.lambda
```
(Note: --target github_lambda is optional as it's the default target)
3. Push image to ECR