mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-11 18:35:18 +00:00
docs: improve JSON formatting examples and clarify Docker build note
This commit is contained in:
parent
03867d5962
commit
df9cb3f635
1 changed files with 9 additions and 5 deletions
|
|
@ -435,13 +435,16 @@ If you encounter rate limiting:
|
|||
```
|
||||
|
||||
**Error: "Invalid JSON format"**
|
||||
|
||||
- **Solution**: Check that arrays are properly formatted as JSON strings:
|
||||
```yaml
|
||||
# Correct
|
||||
|
||||
```yaml
|
||||
|
||||
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"]
|
||||
```
|
||||
```
|
||||
|
||||
#### Debugging Tips
|
||||
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue