Skip to content
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

Feature/add external docs config option #21

Merged
merged 4 commits into from
Mar 2, 2025

Conversation

0xCAB0
Copy link
Collaborator

@0xCAB0 0xCAB0 commented Mar 1, 2025

  • Change the default function prompt to make the AI generate always markdown and when it is not external_docs mode add @doc syntax to the string.
  • Update def docs_to_module_doc_node to save the output to a file at lazy_doc/{module/path/filename.md as follows:
defmodule LazyDoc.Providers.GithubAI do
    @doc File.read!("lazy_doc/lazy_doc/providers/github_ai/request_promt.md")
    def request_prompt(prompt, model, token, params \\ []) do
     req_query(prompt, model, token, params)
     |> Req.post()
  end
end

@0xCAB0 0xCAB0 linked an issue Mar 1, 2025 that may be closed by this pull request
@0xCAB0 0xCAB0 marked this pull request as draft March 1, 2025 23:51
@0xCAB0 0xCAB0 force-pushed the feature/add-external_docs-config-option branch from d1ce997 to 7fd6fc4 Compare March 2, 2025 10:34
@pxp9 pxp9 marked this pull request as ready for review March 2, 2025 11:46
Copy link
Owner

@pxp9 pxp9 left a comment

Choose a reason for hiding this comment

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

lgtm

@pxp9 pxp9 merged commit 2b1c20c into main Mar 2, 2025
1 check passed
@pxp9 pxp9 deleted the feature/add-external_docs-config-option branch March 2, 2025 12:03
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.

Add external_docs config option
2 participants