Commit graph

3849 commits

Author SHA1 Message Date
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
Ryan Freckleton
e841e029b8 fix(tree-sitter-typescript-tags.scm): Add additional queries.
This fixes the behavior of the typescript parsing, while maintaining prior functionality.
2024-03-04 15:03:55 -07:00
Ryan Freckleton
19c8fa389f fix(tree-sitter-typescript-tags): correct tree-sitter queries
Add a new test case for typescript.
Fix queries for typescript.
2024-03-04 14:36:35 -07: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
Paul Gauthier
222987f9c5 INSTRUCTIONS.md -> CONVENTIONS.md 2024-02-23 08:45:44 -08:00
Paul Gauthier
644077bdcb Add canonical link 2024-02-22 14:29:40 -08:00
Paul Gauthier
823399359a aider: Add a meta canonical tag pointing to https://aider.chat/2023/11/06/benchmarks-speed-1106.html.
# Aider chat conversation:

USER: add a meta canonical tag pointing to https://aider.chat/2023/11/06/benchmarks-speed-1106.html

ASSISTANT: ```diff
--- docs/benchmarks-speed-1106.md
+++ docs/benchmarks-speed-1106.md
@@ ... @@
 title: Speed benchmarks of GPT-4 Turbo and gpt-3.5-turbo-1106
 excerpt: This report provides a detailed comparison of the speed of GPT-4 Turbo and gpt-3.5-turbo-1106 models based on the aider benchmarking suite.
+<link rel="canonical" href="https://aider.chat/2023/11/06/benchmarks-speed-1106.html" />
 highlight_image: /assets/benchmarks-speed-1106.svg
 ---
```
2024-02-22 14:26:53 -08:00
Paul Gauthier
57fe7b2c81 layout 2024-02-19 17:53:04 -08:00
Paul Gauthier
e07a3dd9ef layout 2024-02-19 17:46:57 -08:00
Paul Gauthier
c64f434446 added images 2024-02-19 17:46:30 -08:00
Paul Gauthier
fd2a545803 layout 2024-02-19 14:58:50 -08:00
Paul Gauthier
f2c62fcbc4 layout 2024-02-19 14:56:35 -08:00
Paul Gauthier
799ab3d63e aider: Increase highlight image size on mobile using em units for better responsiveness.
# Aider chat conversation:

USER: can the highlight image be bigger on mobile? does it make sense to use em not pixels to size it?

ASSISTANT: Using `em` units for the highlight image size can be beneficial for responsiveness, as `em` units are relative to the font-size of the element (or the body if not set), which can scale better across different screen sizes and maintain the design's typographic harmony.

To make the highlight image bigger on mobile, we can use a media query that targets smaller screen sizes and increases the `max-width` of the `.post-highlight` class in `em` units. Here's the diff for the changes:

```diff
--- assets/css/style.scss
+++ assets/css/style.scss
@@ ... @@
 .post-highlight {
-  max-width: 200px;
+  max-width: 12.5em; /* Assuming the base font-size is 16px, 12.5em is equivalent to 200px */
   margin-right: 1em;
 }

+@media (max-width: 768px) {
+  .post-highlight {
+    max-width: 18em; /* Larger size on mobile */
+  }
+}
+
 .post-content {
   display: flex;
   align-items: flex-start;
```

This change assumes that the base font size is 16px, which is a common default for browsers. If the base font size is different, you may need to adjust the `em` values accordingly. The media query targets screens with a maximum width of 768px, which is a common breakpoint for tablets and mobile devices.
2024-02-19 14:56:29 -08:00
Paul Gauthier
fd926822bf layout 2024-02-19 14:53:21 -08:00
Paul Gauthier
08048b4972 layout 2024-02-19 14:49:23 -08:00
Paul Gauthier
9982a5b4e2 aider: Make the highlight image max 200px wide and position it to the left of the excerpt in blog post entries.
# Aider chat conversation:

USER: make the highlight image be max 200px wide and make it be to the left of the excerpt

ASSISTANT: Here are the diffs for the requested changes:

```diff
--- blog/index.html
+++ blog/index.html
@@ ... @@
   {% for post in site.posts %}
     <article class="post">
       <h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
-      {% if post.highlight_image %}
-      <div class="post-highlight">
-        <img src="{{ site.baseurl }}{{ post.highlight_image }}" alt="Highlight Image">
-      </div>
-      {% endif %}
       <div class="entry">
+        <div class="post-content">
+          {% if post.highlight_image %}
+          <div class="post-highlight">
+            <img src="{{ site.baseurl }}{{ post.highlight_image }}" alt="Highlight Image">
+          </div>
+          {% endif %}
           {% if post.excerpt %}
           {{ post.excerpt }}
           {% else %}
           {{ post.content | strip_html | truncatewords: 100 }}...
           {% endif %}
+        </div>
       </div>

       <p class="post-date">
```

```diff
--- assets/css/style.scss
+++ assets/css/style.scss
@@ ... @@
 .post {
   background: #fff;
   box-shadow: 0 2px 5px rgba(0,0,0,0.1);
   margin-bottom: 2em;
   padding: 1em;
   border-radius: 4px;
+  display: flex;
+  align-items: flex-start;
 }
 .post-date {
   color: #777;
   font-size: 0.85em;
   margin-bottom: 1em;
   display: block;
 }
+
+.post-highlight {
+  max-width: 200px;
+  margin-right: 1em;
+}
+
+.post-content {
+  flex: 1;
+}
```

These changes will make the highlight image have a maximum width of 200px and float to the left of the excerpt or content in the blog post entries. The CSS changes also include adjustments to ensure proper alignment and spacing.
2024-02-19 14:47:00 -08:00
Paul Gauthier
23f99c2691 Added font size to post date and rearranged post title in blog index. 2024-02-19 14:46:59 -08:00
Paul Gauthier
b3d59539db aider: Added highlight image to the blog post and displayed it on the blog index if present.
# Aider chat conversation:

USER: use the graph as a highlight image for the blog post. add the highlight image to the blog index if one is present.

ASSISTANT: To use the graph as a highlight image for the blog post and add it to the blog index if a highlight image is present, I will make the following changes:

1. Add a `highlight_image` field to the front matter of the `_posts/2023-11-06-benchmarks-speed-1106.md` file.
2. Modify the `blog/index.html` file to check for the `highlight_image` field and display the image if it exists.

Here are the diffs for those changes:

```diff
--- _posts/2023-11-06-benchmarks-speed-1106.md
+++ _posts/2023-11-06-benchmarks-speed-1106.md
@@ ... @@
 ---
 title: Speed benchmarks of GPT-4 Turbo and gpt-3.5-turbo-1106
 excerpt: This report provides a detailed comparison of the speed of GPT-4 Turbo and gpt-3.5-turbo-1106 models based on the aider benchmarking suite.
+highlight_image: /assets/benchmarks-speed-1106.svg
 redirect_from:
   - /docs/benchmarks-speed-1106.html
 ---
```

```diff
--- blog/index.html
+++ blog/index.html
@@ ... @@
   {% for post in site.posts %}
     <article class="post">
+      {% if post.highlight_image %}
+      <div class="post-highlight">
+        <img src="{{ site.baseurl }}{{ post.highlight_image }}" alt="Highlight Image">
+      </div>
+      {% endif %}
       <h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
       <div class="entry">
           {% if post.excerpt %}
```
2024-02-19 14:42:34 -08:00
Paul Gauthier
cd599a1553 uppercase 2024-02-19 14:41:06 -08:00
Paul Gauthier
92b2df4edc uppercase 2024-02-19 14:39:59 -08:00
Paul Gauthier
624d61f2c4 aider: Make post.date uppercase.
# Aider chat conversation:

USER: make post.date uppercase

ASSISTANT: ```diff
--- blog/index.html
+++ blog/index.html
@@ ... @@
       <p class="post-date">
-          {{ post.date | date: "%b %-d, %Y" }}
+          {{ post.date | date: "%b %-d, %Y" | upcase }}
       </p>
     </article>
   {% endfor %}
 </div>
```
2024-02-19 14:39:44 -08:00
Paul Gauthier
5bc3970319 copy 2024-02-19 14:38:51 -08:00
Paul Gauthier
d2c5244c31 copy 2024-02-19 14:36:44 -08:00
Paul Gauthier
85e36b93ec copy 2024-02-19 14:34:47 -08:00