Commit graph

3569 commits

Author SHA1 Message Date
Paul Gauthier
a39965a9ff Only /undo the files which were part of the last commit, don't stomp other dirty files #513 2024-03-22 10:00:15 -07:00
Paul Gauthier
7103029abb Only redact non-null values #505 2024-03-19 12:00:00 -07:00
Paul Gauthier
a4d3d2b7a5 set version to 0.26.2-dev 2024-03-10 11:24:25 -07:00
Paul Gauthier
f75576f890 version bump to 0.26.1 2024-03-10 11:23:49 -07:00
Paul Gauthier
2be5bceead Updated HISTORY 2024-03-10 11:23:22 -07:00
Paul Gauthier
0f9efc881e catch configparser errors 2024-03-10 08:22:48 -07:00
Paul Gauthier
238b53e2ff copy 2024-03-09 08:31:37 -08:00
Paul Gauthier
ac39791fee fixed mislabelled gpt-4 column 2024-03-09 08:20:27 -08:00
Paul Gauthier
31909221cc set version to 0.26.1-dev 2024-03-08 13:16:15 -08:00
Paul Gauthier
43ce68cf59 version bump to 0.26.0 2024-03-08 13:15:39 -08:00
Paul Gauthier
e4ae873b17 Updated HISTORY 2024-03-08 13:15:12 -08:00
Paul Gauthier
058c237a28 Use gpt4 turbo as the default model 2024-03-08 13:13:20 -08:00
Paul Gauthier
f565057ad4 Improved logic to check for git user name/email 2024-03-08 12:37:21 -08:00
Paul Gauthier
0871764766 Don't share local git errors with GPT #500 2024-03-08 12:24:54 -08:00
Paul Gauthier
f45887d176 copy 2024-03-08 08:34:07 -08:00
Paul Gauthier
66d3852fa0 copy 2024-03-08 08:23:10 -08:00
Paul Gauthier
76c3f66915 copy 2024-03-08 08:21:28 -08:00
Paul Gauthier
ae768054b5 copy 2024-03-08 08:20:25 -08:00
Paul Gauthier
573a6814b2 copy 2024-03-08 08:09:07 -08:00
Paul Gauthier
7fbd9e2be4 Added claude post 2024-03-08 08:00:41 -08:00
Paul Gauthier
a1939f50e4 copy 2024-03-07 16:37:13 -08:00
Paul Gauthier
fbc3f38256 tweaked model args 2024-03-07 13:07:02 -08:00
Paul Gauthier
a462686de8 copy 2024-03-05 07:33:48 -08:00
paul-gauthier
edb9e5a118
Update faq.md 2024-03-05 06:54:13 -08:00
Paul Gauthier
edd66f7fe6 Updated HISTORY 2024-03-04 12:40:22 -08:00
Paul Gauthier
3d47049d48 set version to 0.25.1-dev 2024-03-04 12:39:00 -08:00
Paul Gauthier
75d129e679 version bump to 0.25.0 2024-03-04 12:38:28 -08:00
Paul Gauthier
0fb57895a4 link to the faq on edit errors 2024-03-04 12:37:51 -08:00
Paul Gauthier
3d1a8e20f3 copy 2024-03-03 16:46:39 -08:00
Paul Gauthier
75f540796d Updated HISTORY 2024-03-01 11:39:46 -08:00
Paul Gauthier
cd434cac5a New --35turbo switch and docs updates 2024-02-28 14:06:44 -08:00
Paul Gauthier
7387c6fd15 Fixed conventions.html link #489 2024-02-27 07:29:09 -08:00
Paul Gauthier
5c694db19d scrub the openai key from chat history md 2024-02-26 08:30:13 -08:00
Paul Gauthier
5d32422b84 copy 2024-02-25 16:53:39 -08:00
Paul Gauthier
6dd5ae69e3 Normalize paths before checking aiderignore #479 2024-02-25 15:54:57 -08:00
Paul Gauthier
49c904eea5 Added a warning if the user adds many files totaling many tokens 2024-02-25 15:34:51 -08:00
Paul Gauthier
98db78887d copy 2024-02-25 11:17:43 -08:00
Paul Gauthier
b5c1c50031 copy 2024-02-25 08:45:05 -08:00
Paul Gauthier
58697fb74a copy 2024-02-24 14:51:52 -08:00
Paul Gauthier
69a056223c copy 2024-02-24 10:16:38 -08:00
Paul Gauthier
d6b592d0e8 copy 2024-02-24 10:14:33 -08:00
Paul Gauthier
2dfe9b949c copy 2024-02-24 10:12:21 -08:00
Paul Gauthier
8c55c50789 copy 2024-02-24 10:10:42 -08:00
Paul Gauthier
a9fe4532c7 Aider should fully ignore files in aiderignore #479 2024-02-24 09:39:33 -08:00
Paul Gauthier
5e60417e5d Updated discussion of which model to use 2024-02-24 09:34:04 -08:00
Paul Gauthier
d13207d259 instructions->conventions 2024-02-24 07:16:29 -08:00
Paul Gauthier
2cdf86b479 cleanup 2024-02-24 07:13:00 -08:00
Paul Gauthier
a3285edc4f aider: Add --openai-organization-id param to set OpenAI organization ID.
# Aider chat conversation:

USER: add --openai-organization-id param that sets OpenAI(organization=...)

ASSISTANT: ```diff
--- aider/main.py
+++ aider/main.py
@@ ... @@
     model_group.add_argument(
         "--openai-api-deployment-id",
         metavar="OPENAI_API_DEPLOYMENT_ID",
         env_var="OPENAI_API_DEPLOYMENT_ID",
         help="Specify the deployment_id",
     )
+    model_group.add_argument(
+        "--openai-organization-id",
+        metavar="OPENAI_ORGANIZATION_ID",
+        env_var="OPENAI_ORGANIZATION_ID",
+        help="Specify the OpenAI organization ID",
+    )
     model_group.add_argument(
         "--openrouter",
         dest="openai_api_base",
         action="store_const",
@@ ... @@
     if args.openai_api_type == "azure":
         client = openai.AzureOpenAI(
             api_key=args.openai_api_key,
             azure_endpoint=args.openai_api_base,
             api_version=args.openai_api_version,
             azure_deployment=args.openai_api_deployment_id,
         )
     else:
         kwargs = dict()
         if args.openai_api_base:
             kwargs["base_url"] = args.openai_api_base
             if "openrouter.ai" in args.openai_api_base:
                 kwargs["default_headers"] = {
                     "HTTP-Referer": "http://aider.chat",
                     "X-Title": "Aider",
                 }
+        if args.openai_organization_id:
+            kwargs["organization"] = args.openai_organization_id

         client = openai.OpenAI(api_key=args.openai_api_key, **kwargs)

@@ ... @@
     if args.verbose:
         show = scrub_sensitive_info(parser.format_values())
         io.tool_output(show)
         io.tool_output("Option settings:")
         for arg, val in sorted(vars(args).items()):
             io.tool_output(f"  - {arg}: {scrub_sensitive_info(str(val))}")
+        if args.openai_organization_id:
+            io.tool_output(f"  - openai_organization_id: {args.openai_organization_id}")
```
This diff adds a new command-line argument `--openai-organization-id` to the `aider/main.py` file, which allows the user to specify the OpenAI organization ID. It also ensures that if this argument is provided, it is passed to the `openai.OpenAI` client initialization as the `organization` parameter. Additionally, it outputs the organization ID if verbose mode is enabled.
2024-02-24 07:11:58 -08:00
Paul Gauthier
37f708b208 cleanup 2024-02-23 08:59:08 -08:00
Paul Gauthier
b16d7bb74f canonical_url 2024-02-23 08:54:38 -08:00