You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,15 +94,15 @@ If you're looking to contribute or set up a development environment:
94
94
95
95
### Configuring RepoAgent
96
96
97
-
You can use RepoAgent with OpenAI API forthe moment.
97
+
Before configuring specific parameters forRepoAgent, please ensure that the OpenAI API is configured as an environment variableinthe command line:
98
98
99
99
```sh
100
100
export OPENAI_API_KEY=YOUR_API_KEY # on Linux/Mac
101
101
set OPENAI_API_KEY=YOUR_API_KEY # on Windows
102
102
$Env:OPENAI_API_KEY = "YOUR_API_KEY" # on Windows (PowerShell)
103
103
```
104
104
105
-
Use `repoagent configure`if you need to running parameters.
105
+
Use `repoagent configure`if you need to modify the running parameters.
106
106
107
107
```sh
108
108
Enter the path to target repository:
@@ -132,7 +132,7 @@ The run command supports the following optional flags (if set, will override con
132
132
- `-t`, `--temperature` FLOAT: Sets the generation temperature for the model. Lower values make the model more deterministic. Default: `0.2`
133
133
- `-r`, `--request-timeout` INTEGER: Defines the timeout in seconds for the API request. Default: `60`
134
134
- `-b`, `--base-url` TEXT: The base URL for the API calls. Default: `https://api.openai.com/v1`
135
-
- `-tp`, `--target-repo-path` PATH: The file system path to the target repository. Used as the root for documentation generation. Default: `/home/test/arno`
135
+
- `-tp`, `--target-repo-path` PATH: The file system path to the target repository. Used as the root for documentation generation. Default: `path/to/your/target/repository`
136
136
- `-hp`, `--hierarchy-path` TEXT: The name or path for the project hierarchy file, used to organize documentation structure. Default: `.project_doc_record`
137
137
- `-mdp`, `--markdown-docs-path` TEXT: The folder path where Markdown documentation will be stored or generated. Default: `markdown_docs`
138
138
- `-i`, `--ignore-list` TEXT: A list of files or directories to ignore during documentation generation, separated by commas.
@@ -143,9 +143,9 @@ The run command supports the following optional flags (if set, will override con
143
143
You can also try the following feature
144
144
145
145
```sh
146
-
repo_agent clean # Remove repoagent-related cache
147
-
repo_agent print-hierarchy # Print how repo-agent parse the target repo
148
-
repo_agent diff # Check what docs will be updated/generated based on current code change
146
+
repoagent clean # Remove repoagent-related cache
147
+
repoagent print-hierarchy # Print how repo-agent parse the target repo
148
+
repoagent diff # Check what docs will be updated/generated based on current code change
149
149
```
150
150
151
151
If it's your first time generating documentation for the target repository, RepoAgent will automatically create a JSON file maintaining the global structure information and a folder named Markdown_Docs in the root directory of the target repository for storing documents.
@@ -176,6 +176,7 @@ repos:
176
176
name: RepoAgent
177
177
entry: repoagent
178
178
language: system
179
+
pass_filenames: false # prevent from passing filenames to the hook
179
180
# You can specify the file types that trigger the hook, but currently only python is supported.
0 commit comments