Skip to content

Divide long files to prompt#21

Open
ismaelilloDev wants to merge 1 commit intomainfrom
bug/divide-long-files-to-prompt
Open

Divide long files to prompt#21
ismaelilloDev wants to merge 1 commit intomainfrom
bug/divide-long-files-to-prompt

Conversation

@ismaelilloDev
Copy link
Copy Markdown
Contributor

@ismaelilloDev ismaelilloDev commented May 10, 2024

The codecoverage ignore in the OpenAi class is due to the fact that the tests are not intended to make many requests to chatgpt each time we launch the tests as it is obvious. However this functionality is tested in the DumbLocalLlm which has been modified to handle partial requests. If the tests are launched all modified files are at 100% coverage.

Also an other bug is fixed. When we document a project, first time we have a request per file but second time don't make the request but make the query to update. As a json_doc is a new field this mean that on the second chance all json_docs field were put to null. Its not important because what we show is the markdown but now this is fixed :)

@RuliLG
Copy link
Copy Markdown
Member

RuliLG commented May 22, 2024

@ismaelilloDev can you resolve conflicts?

Copy link
Copy Markdown
Member

@RuliLG RuliLG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks awesome!


use App\LLM\DTO\CompletionResponse;

interface CanSupportPartialRequestInterface
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Laravel's convention is to not use the word Interface, and that the interface is like an action. i.e. SupportsPartialRequests, what do u think?

use App\LLM\Contracts\PromptRequest;
use App\LLM\DTO\CompletionResponse;

trait CanSupportPartialRequest {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Convention option: use WithPartialRequestsSupport; :-)

@ismaelilloDev ismaelilloDev force-pushed the bug/divide-long-files-to-prompt branch from 4e7ea6c to e4d138a Compare May 24, 2024 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants