Skip to content

Commit a2879d1

Browse files
committed
merge main
2 parents a1dc1f8 + 56616aa commit a2879d1

File tree

538 files changed

+67657
-58850
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

538 files changed

+67657
-58850
lines changed
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: Update LLM Info
2+
description: Updates Gemini blocks with latest information
3+
version: 2
4+
---
5+
I need you to update this repo with the latest information about large language models from certain providers.
6+
The information is stored in the `packages/llm-info` directory, which operates as its own npm package.
7+
Information is stored in a simple JSON format, with one file of models per "provider" (e.g. gemini, ollama, openai, etc).
8+
For example, Gemini model information is stored in `packages/llm-info/src/providers/gemini.ts`.
9+
10+
To make these updates for a given provider, perform the following steps one at a time:
11+
12+
1. VIEW CURRENT INFORMATION
13+
14+
To view the current llm info, read the file (e.g. `packages/llm-info/src/providers/gemini.ts`) using the read_file tool.
15+
If you do not see a tool for reading files, let me know.
16+
17+
For reference, here is the LLMInfo interface used to store the information:
18+
19+
```typescript
20+
export interface LlmInfo {
21+
model: string; // the model name used to distinguish the model at the API layer, e.g. "gemini-2.5-pro-preview-05-06"
22+
displayName?: string; // A fitting display name, e.g. "Gemini 2.5 Pro Preview"
23+
description?: string; // A short description of the model, as similar as possible to descriptions found on the provider's website
24+
contextLength?: number; // The size of the context window in tokens, often called "max input tokens" or "context length"
25+
maxCompletionTokens?: number; // The maximum number of tokens the model can output
26+
regex?: RegExp; // A regex expression to uniquely match the model name if it had some slight modifications/upgrades, e.g. /gemini-2\.5-pro-preview/i
27+
mediaTypes?: MediaType[]; // Input/output types supported by the model, e.g. [MediaType.Text, MediaType.Image]
28+
}
29+
30+
export enum MediaType {
31+
Text = "text",
32+
Image = "image",
33+
Audio = "audio",
34+
Video = "video",
35+
}
36+
37+
export const AllMediaTypes = [
38+
MediaType.Text,
39+
MediaType.Image,
40+
MediaType.Audio,
41+
MediaType.Video,
42+
];
43+
```
44+
45+
2. EXTRACT NEW INFORMATION
46+
47+
Fetch information from the internet using the search web and read url tools.
48+
If you do not see either of these tools, stop and let me know.
49+
50+
Retrieve the following sites per these providers, and consider these notes on how to extract the information:
51+
- "gemini": https://ai.google.dev/gemini-api/docs/models - maxCompletionTokens is called "Output token limit", contextLength is called "Input token limit"
52+
// TODO: add info for openai, ollama, etc
53+
54+
For any other providers, search the web for "latest [provider] models" and find the most relevant model information using your best judgement.
55+
Generally, ignore models that do not support text output. These models will be used in a coding assistant client that only supports text/image input and text/output, so extraneous capabilities can be ignored.
56+
Sometimes, "Experimental", "Preview", or similar versions of models are available. The latest-date version of each should have its own information maintained.
57+
58+
3. UPDATE THE INFORMATION
59+
60+
Use the edit file tool to submit updates to the relevant provider file (e.g. `packages/llm-info/src/providers/gemini.ts`).
61+
Let me know if you do not see a tool for editing files.
62+
63+
Generally, avoid making changes to existing information, as it is probably up to date.
64+
Primarily, focus on adding new models or adding missing information to existing models.
65+
NEVER delete any existing models, but let me know if you think one should be removed.
66+
Stop to ask me if you are unsure about any changes, and let me know if there are updates that seem nuanced, complex, or extremely notable.
67+
Provide a summary of changes after the fact.
68+
69+
4. ASK IF I WANT TO PUBLISH TO NPM
70+
After you are done updating everything, remind me that I need to publish the changes to npm.
71+
72+
// TODO too sensitive for now
73+
// If yes, update `packages/llm-info/package.json` with the new version number and then
74+
// - use the terminal tool to commit the changes
75+
// - use the terminal tool to publish changes to npm
76+
// If you do not see a tool for running terminal commands, let me know.
77+
78+
// User input
79+
Please update LLM Info for the following providers. If "all", update all providers mentioned above:
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: bigger-picture-description-rules
2+
version: 0.0.1
3+
schema: v1
4+
rules:
5+
- name: bigger-picture-description-rules
6+
rule: >-
7+
When a user asks how a certain part of the code works:
8+
9+
1. Describe what the code does in isolation.
10+
11+
2. If the code interacts with other parts of the codebase, describe how the code is imported and used in other parts of the codebase.
12+
13+
3. When describing each use-case, include the parent function for clarity.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
globs: /**/*.
3+
description: General questions about code completion should be answered specific to Continue
4+
---
5+
6+
# Continue Specificity
7+
8+
- In chat mode, if the user asks generally about code completion or developer tools, answer specifically regarding Continue and not other similar software.
9+
- Keep all suggestions and comments concentrated on Continue, unless the user asks otherwise. If the user does this, answer with no particular specificity to Continue.

.continue/rules/documentation-standards.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ description: Standards for writing and maintaining Continue Docs
1313
- Include cross-references to related documentation
1414
- Reference other docs with relative paths
1515
- Keep paragraphs concise and scannable
16-
- Use code blocks with appropriate language tags
16+
- Use code blocks with appropriate language tags
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
globs: gui/**/*
3+
description: Ensures consistent URL opening behavior in GUI components using the
4+
IDE messenger pattern
5+
alwaysApply: false
6+
---
7+
8+
# GUI Link Opening
9+
10+
When adding functionality to open external links in GUI components, use `ideMessenger.post("openUrl", url)` where `ideMessenger` is obtained from `useContext(IdeMessengerContext)`

.continue/rules/llm-specificity.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
globs: core/llm/llms/**/*.{ts,test.ts}
3+
description: Tailor recommendations for LLM code based on which specific LLM is being used.
4+
---
5+
6+
# LLM Model Specificity
7+
8+
- Refer to the file name and names of big classes to determine which LLM is being used in a file.
9+
- Ground all observations and recommendations with knowledge of that LLM.
10+
- Consider items such as context length, architecture, speed, and such.
11+
- Pay attention to the parent classes in these files.

.eslintrc.shared.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
},
77
"plugins": ["@typescript-eslint", "import"],
88
"rules": {
9+
"no-negated-condition": "warn",
910
"@typescript-eslint/naming-convention": "off",
1011
"@typescript-eslint/no-floating-promises": "warn",
1112
"@typescript-eslint/semi": "warn",
13+
"@typescript-eslint/no-misused-promises": "error",
1214
"curly": "warn",
1315
"eqeqeq": "warn",
1416
"no-throw-literal": "warn",

.github/workflows/pr_checks.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,24 @@ jobs:
3030
if: steps.root-cache.outputs.cache-hit != 'true'
3131
run: npm ci
3232

33+
prettier-check:
34+
needs: install-root
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v4
38+
39+
- uses: actions/setup-node@v4
40+
with:
41+
node-version-file: ".nvmrc"
42+
43+
- uses: actions/cache@v4
44+
with:
45+
path: node_modules
46+
key: ${{ runner.os }}-root-node-modules-${{ hashFiles('package-lock.json') }}
47+
48+
- name: Check code formatting with Prettier
49+
run: npx prettier --check "**/*.{js,jsx,ts,tsx,json,css,md}" --ignore-path .gitignore --ignore-path .prettierignore
50+
3351
install-config-yaml:
3452
needs: install-root
3553
runs-on: ubuntu-latest
@@ -408,6 +426,7 @@ jobs:
408426
run: |
409427
cd core
410428
npm test
429+
npm run vitest
411430
env:
412431
IGNORE_API_KEY_TESTS: ${{ github.event.pull_request.head.repo.fork == true || github.actor == 'dependabot[bot]' }}
413432
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
@@ -416,6 +435,8 @@ jobs:
416435
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
417436
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
418437
AZURE_FOUNDRY_API_KEY: ${{ secrets.AZURE_FOUNDRY_API_KEY }}
438+
AZURE_FOUNDRY_MISTRAL_SMALL_API_KEY: ${{ secrets.AZURE_FOUNDRY_MISTRAL_SMALL_API_KEY }}
439+
AZURE_OPENAI_GPT41_API_KEY: ${{ secrets.AZURE_OPENAI_GPT41_API_KEY }}
419440

420441
package-tests:
421442
runs-on: ubuntu-latest
@@ -859,6 +880,7 @@ jobs:
859880
runs-on: ubuntu-latest
860881
needs:
861882
- install-root
883+
- prettier-check
862884
- install-core
863885
- core-checks
864886
- install-gui

.github/workflows/submit-github-dependency-graph.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Submit Gradle Dependency Graph For Dependabot
22

33
on:
44
push:
5-
branches: ['main']
5+
branches: ["main"]
66

77
permissions:
88
contents: write
@@ -11,15 +11,15 @@ jobs:
1111
dependency-submission:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Checkout sources
15-
uses: actions/checkout@v4
16-
- name: Setup Java
17-
uses: actions/setup-java@v4
18-
with:
19-
distribution: 'temurin'
20-
java-version: 17
21-
- name: Generate and submit dependency graph
22-
uses: gradle/actions/dependency-submission@v4
23-
with:
24-
# The gradle project is not in the root of the repository.
25-
build-root-directory: extensions/intellij
14+
- name: Checkout sources
15+
uses: actions/checkout@v4
16+
- name: Setup Java
17+
uses: actions/setup-java@v4
18+
with:
19+
distribution: "temurin"
20+
java-version: 17
21+
- name: Generate and submit dependency graph
22+
uses: gradle/actions/dependency-submission@v4
23+
with:
24+
# The gradle project is not in the root of the repository.
25+
build-root-directory: extensions/intellij

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ Icon?
144144
.continuerc.json
145145
.aider*
146146

147+
*.notes.md
147148
notes.md
149+
*.notes.md
148150

149151
manual-testing-sandbox/.idea/**
150152
manual-testing-sandbox/.continue/**

0 commit comments

Comments
 (0)