New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] <File are larger than the max prompt length> #327
Comments
now have an other issues ERROR Error parsing JSON response from the model: [{"fileName":"/home/runner/work/commerceapi-1p/commerceapi-1p/commerce/src/main/java/com/pacvue/commerce/commerce/controller/catalog/CatalogController.java","promptContent":"package com.pacvue.commerce.commerce.controller.catalog;\n+\nimport cn.hutool.core.collection.CollUtil;\nimport cn.hutool.core.collection.CollectionUtil;\nimport com.alibaba.fastjson.JSONObject;\nimport com.github.pagehelper.PageInfo;\nimport com.github.pagehelper.PageSerializable;\nimport com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;\nimport com.pacvue.commerce.commerce.config.SecurityContextHelper;\nimport com.pacvue.commerce.commercesdkfeign.dto.catalog.GetCatalogItemReqDto;\nimport com.pacvue.commerce.common.base.ApiConsts;\nimport com.pacvue.commerce.common.base.BaseResponse;\nimport com.pacvue.commerce.common.base.BaseUser;\nimport com.pacvue.commerce.common.exception.BusinessException;\nimport com.pacvue.commerce.common.methods.Common • index.js Ge |
ERROR Changes to file xxxx.java are larger than the max prompt length, consider using a model with a larger context window. Skipping file changes...
Run npx code-review-gpt review --ci=github --model=gpt-3.5-turbo-16k --debug
DEBUG Args: {"_":["review"],"ci":"github","model":"gpt-3.5-turbo-16k","debug":true,"setupTarget":"github","setup-target":"github","commentPerFile":false,"comment-per-file":false,"reviewType":"changed","review-type":"changed","provider":"openai","$0":"node_modules/.bin/code-review-gpt"}
we have use gpt-3.5-turbo-16k, but file is easy more than 16k, we only want to compare changes content. how to set?
my yml:
name: Code Review GPT
on:
pull_request:
branches:
- master
permissions:
id-token: write
pull-requests: write
contents: read
actions: read
jobs:
code-review-gpt:
runs-on: ubuntu-latest
The text was updated successfully, but these errors were encountered: