Commit graph

3821 commits

Author SHA1 Message Date
Paul Gauthier
5e4ac44008 aider: Add port forwarding for the client inside the container to connect to the Ollama server on the host.
# Aider chat conversation:

USER: add a port fwd so a client inside the contain can connect to the ollama server running on the host

ASSISTANT: To forward a port so that a client inside the container can connect to the Ollama server running on the host, you need to add a `--publish` or `-p` option to the `docker run` command in the `benchmark/docker.sh` script. This option takes the format `host_port:container_port`.

Assuming the Ollama server is running on port 12345 on the host, and you want to use the same port inside the container, the diff would look like this:

```diff
--- benchmark/docker.sh
+++ benchmark/docker.sh
@@ ... @@
 docker run \
        -it --rm \
        -v `pwd`:/aider \
        -v `pwd`/tmp.benchmarks/.:/benchmarks \
        -e OPENAI_API_KEY=$OPENAI_API_KEY \
        -e HISTFILE=/aider/.bash_history \
        -e AIDER_DOCKER=1 \
        -e AIDER_BENCHMARK_DIR=/benchmarks \
+       -p 12345:12345 \
        aider-benchmark \
        bash
```

This change will forward port 12345 from the host to port 12345 in the container, allowing a client inside the container to connect to the Ollama server running on the host machine.
2024-05-01 13:46:45 -07:00
Paul Gauthier
f4b1797998 put filename back outside fences 2024-05-01 11:59:23 -07:00
Paul Gauthier
e76d1c0cfa accepts_multi_system_msgs -> reminder_as_sys_msg 2024-05-01 10:30:41 -07:00
Paul Gauthier
31b7ed3660 Merge branch 'main' into gemini-editblock-and-examples 2024-05-01 10:27:09 -07:00
Paul Gauthier
862c0dd0d7 stronger code base switch prompt 2024-05-01 09:40:47 -07:00
Paul Gauthier
1403d19aa7 Added example messages to wholefile edit format 2024-05-01 09:34:40 -07:00
Paul Gauthier
2c0dff52d3 asking for code language in whole edit format confuses some models 2024-05-01 09:17:29 -07:00
Paul Gauthier
484f7e44c0 Updated HISTORY 2024-05-01 09:17:07 -07:00
Paul Gauthier
0185e02a92 updated favicon paths 2024-05-01 09:14:53 -07:00
Paul Gauthier
0fb08896e3 Merge branch 'main' into gemini-editblock-and-examples 2024-05-01 09:02:08 -07:00
Paul Gauthier
7fd3b8aeee Tell the AI we are switching code bases 2024-04-30 20:51:24 -07:00
Paul Gauthier
d51cada163 make the examples part of the chat 2024-04-30 20:45:49 -07:00
Paul Gauthier
22d90d70c6 prompt copy 2024-04-30 20:24:53 -07:00
Paul Gauthier
e610e5bd0a Handle existing dirnames with [globby] chars, with test #195 2024-04-30 15:50:24 -07:00
Paul Gauthier
a3a4d87a0c treat litellm.exceptions.BadRequestError as a 400 error and do not retry 2024-04-30 15:40:28 -07:00
Paul Gauthier
3469e04eb8 Do exp backoff for litellm.exceptions.ServiceUnavailableError #580 2024-04-30 15:34:01 -07:00
Paul Gauthier
7b14d77e9e Don't retry on gemini RECITATION error 2024-04-30 14:40:15 -07:00
Paul Gauthier
d38a38f0dd implemented accepts_multi_system_msgs 2024-04-30 07:57:29 -07:00
Paul Gauthier
2d16ee16ac Make lazy prompt configurable 2024-04-30 07:45:16 -07:00
Paul Gauthier
65dccb6205 Merge branch 'main' into gemini-editblock 2024-04-29 20:42:52 -07:00
Paul Gauthier
d6783636c5 copy 2024-04-29 20:42:44 -07:00
Paul Gauthier
178af4a327 copy 2024-04-29 13:17:40 -07:00
Paul Gauthier
e88ea7793b copy 2024-04-29 12:56:41 -07:00
Paul Gauthier
e668803f82 added deepseek docs 2024-04-29 12:35:57 -07:00
Paul Gauthier
c07f7931f2 Merge branch 'main' into gui 2024-04-29 11:27:49 -07:00
Paul Gauthier
4b87f2b40f updated icons 2024-04-29 11:00:23 -07:00
Paul Gauthier
ae7d6a16af aider: Added additional favicon tags to ensure the favicon works well across all browsers.
# Aider chat conversation:

USER: add whatever other tags are needed so the favicon works well on all browsers

ASSISTANT: To ensure the favicon works well across all browsers, we should add a few more link tags with different icon sizes and formats. Here are the changes to make in the `_layouts/default.html` file:

_layouts/default.html
```html
<<<<<<< SEARCH
    <link rel="icon" type="image/png" sizes="32x32" href="{{ '/assets/favicon-32x32.png' | relative_url }}">
=======
    <link rel="icon" type="image/png" sizes="32x32" href="{{ '/assets/favicon-32x32.png' | relative_url }}">
    <link rel="icon" type="image/png" sizes="16x16" href="{{ '/assets/favicon-16x16.png' | relative_url }}">
    <link rel="apple-touch-icon" sizes="180x180" href="{{ '/assets/apple-touch-icon.png' | relative_url }}">
    <link rel="manifest" href="{{ '/assets/site.webmanifest' | relative_url }}">
    <link rel="mask-icon" href="{{ '/assets/safari-pinned-tab.svg' | relative_url }}" color="#5bbad5">
    <meta name="msapplication-TileColor" content="#da532c">
    <meta name="theme-color" content="#ffffff">
>>>>>>> REPLACE
```

These additional tags cover:

1. A 16x16 PNG favicon for older browsers
2. An Apple Touch icon for iOS devices
3. A Web App Manifest file for progressive web apps
4. A mask icon for Safari pinned tabs
5. A tile color for Windows 8/10 start screen
6. A theme color for mobile browsers

Make sure to also add the corresponding favicon files in the `/assets` directory of your project:

- `favicon-16x16.png`
- `apple-touch-icon.png`
- `site.webmanifest`
- `safari-pinned-tab.svg`

With these changes, your favicon should display correctly across all modern browsers and devices.
2024-04-29 10:58:02 -07:00
Paul Gauthier
29f4d788a3 set streamlit config options 2024-04-29 10:19:22 -07:00
Paul Gauthier
03908c5ab6 copy 2024-04-29 06:35:45 -07:00
Paul Gauthier
3199a8f704 fix multiselect for 2nd,3rd,.. files 2024-04-29 06:24:14 -07:00
Paul Gauthier
28cd2c8580 Merge branch 'main' into gui 2024-04-29 05:54:03 -07:00
Paul Gauthier
8a9005eed1 copy 2024-04-28 17:36:58 -07:00
Paul Gauthier
dd9da6ef6a copy 2024-04-28 17:31:30 -07:00
Paul Gauthier
f8b51ea2df copy 2024-04-28 17:12:23 -07:00
Paul Gauthier
821dd1e18a copy 2024-04-28 17:08:17 -07:00
Paul Gauthier
b2acaae882 copy 2024-04-28 15:42:41 -07:00
Paul Gauthier
0689d89e87 copy 2024-04-28 15:41:10 -07:00
Paul Gauthier
7114eb55b0 copy 2024-04-28 15:39:03 -07:00
Paul Gauthier
2a116eac6d copy 2024-04-28 15:36:43 -07:00
Paul Gauthier
58b5a37943 fix 2024-04-28 15:34:59 -07:00
Paul Gauthier
9008789e84 added new template 2024-04-28 15:32:46 -07:00
Paul Gauthier
b3225a4070 added warning 2024-04-28 15:18:53 -07:00
Paul Gauthier
ec9fac2500 simpler launch of streamlit 2024-04-28 14:48:40 -07:00
Paul Gauthier
73bad5250b hit control-c 2024-04-28 14:38:30 -07:00
Paul Gauthier
64356eaf76 Added favicon to html 2024-04-28 14:36:06 -07:00
Paul Gauthier
80d299cb28 favicon 2024-04-28 14:30:05 -07:00
Paul Gauthier
0bf45c2cf6 added favicon 2024-04-28 14:28:50 -07:00
Paul Gauthier
4f996d43ae added streamlit dep 2024-04-28 14:17:55 -07:00
Paul Gauthier
542c091cf3 Added --gui functionality 2024-04-28 14:08:25 -07:00
Paul Gauthier
d60b343274 layout 2024-04-28 13:44:04 -07:00