-
Notifications
You must be signed in to change notification settings - Fork 4
Feat/refactor memory with pinecone #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
ef17b2b
7f16a78
61268b3
9d0d6e8
6f5c055
cb81c38
8d8d5e3
2a00631
0cc84fc
21f0a5a
02f0401
401ace0
7ad6df3
d1f2fd1
5bea9b2
3cbfa63
d9369af
4bfc3be
38ee5bc
f6f47b0
ca29316
646d04b
817453c
4191a3e
0f888d1
92f3d7d
be5cf38
5d87928
4512e58
6c00456
4e3c3bc
1aa2a14
3f5113a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json", | ||
"dictionaries": ["software-terms", "npm", "fullstack", "redis"], | ||
"files": ["**", ".vscode/**", ".github/**"], | ||
"ignorePaths": ["bun.lock"], | ||
"ignoreRegExpList": ["apiKey='[a-zA-Z0-9-]{32}'"], | ||
"import": [ | ||
"@cspell/dict-redis/cspell-ext.json", | ||
"@cspell/dict-bash/cspell-ext.json" | ||
], | ||
"useGitignore": true, | ||
"version": "0.2", | ||
"words": [ | ||
"anirudh", | ||
"sriram", | ||
"Fellipe", | ||
"Utaka", | ||
"umami", | ||
"assemblyai", | ||
"bitstream", | ||
"zenix", | ||
"openrouter", | ||
"elevenlabs", | ||
"hackclub", | ||
"deepgram", | ||
"libsodium", | ||
"livecrawl", | ||
"grok", | ||
"gork", | ||
"dalle", | ||
"dall", | ||
"arcas", | ||
"techwithanirudh" | ||
] | ||
} | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json", | ||
"dictionaries": ["software-terms", "npm", "fullstack", "redis"], | ||
"files": ["**", ".vscode/**", ".github/**"], | ||
"ignorePaths": ["bun.lock"], | ||
"ignoreRegExpList": ["apiKey='[a-zA-Z0-9-]{32}'"], | ||
"import": [ | ||
"@cspell/dict-redis/cspell-ext.json", | ||
"@cspell/dict-bash/cspell-ext.json" | ||
], | ||
"useGitignore": true, | ||
"version": "0.2", | ||
"words": [ | ||
"anirudh", | ||
"sriram", | ||
"Fellipe", | ||
"Utaka", | ||
"umami", | ||
"assemblyai", | ||
"bitstream", | ||
"zenix", | ||
"openrouter", | ||
"elevenlabs", | ||
"hackclub", | ||
"deepgram", | ||
"libsodium", | ||
"livecrawl", | ||
"grok", | ||
"gork", | ||
"dalle", | ||
"dall", | ||
"arcas", | ||
"techwithanirudh" | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,9 @@ indent_size = 2 | |
end_of_line = crlf | ||
charset = utf-8 | ||
trim_trailing_whitespace = false | ||
insert_final_newline = true | ||
quote_type = single | ||
Comment on lines
+9
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive)
Custom keys are ignored by most EditorConfig parsers. 🤖 Prompt for AI Agents
|
||
|
||
[*.md] | ||
trim_trailing_whitespace = true | ||
insert_final_newline = false |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
{ | ||
"env": { | ||
"es2021": true, | ||
"node": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:import-x/recommended", | ||
"plugin:import-x/typescript", | ||
"prettier" | ||
], | ||
"plugins": ["@typescript-eslint", "import-x"], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"semi": ["warn", "always"], | ||
"arrow-parens": ["warn", "always"], | ||
"no-unused-vars": "warn", | ||
"no-console": "off", | ||
"import/prefer-default-export": "off" | ||
}, | ||
"settings": { | ||
"import/resolver": { | ||
// You will also need to install and configure the TypeScript resolver | ||
// See also https://github.com/import-js/eslint-import-resolver-typescript#configuration | ||
"typescript": true, | ||
"node": true | ||
} | ||
} | ||
} | ||
{ | ||
"env": { | ||
"es2021": true, | ||
"node": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:import-x/recommended", | ||
"plugin:import-x/typescript", | ||
"prettier" | ||
], | ||
"plugins": ["@typescript-eslint", "import-x"], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"semi": ["warn", "always"], | ||
"arrow-parens": ["warn", "always"], | ||
"no-unused-vars": "warn", | ||
"no-console": "off", | ||
"import/prefer-default-export": "off" | ||
}, | ||
"settings": { | ||
"import/resolver": { | ||
// You will also need to install and configure the TypeScript resolver | ||
// See also https://github.com/import-js/eslint-import-resolver-typescript#configuration | ||
"typescript": true, | ||
"node": true | ||
Comment on lines
+28
to
+31
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) JSON comments & trailing commas can break strict parsers
Two options:
Pick whichever keeps the tool-chain simplest. 🤖 Prompt for AI Agents
|
||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
github: techwithanirudh | ||
buy_me_a_coffee: techwithanirudh | ||
github: techwithanirudh | ||
buy_me_a_coffee: techwithanirudh |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,42 @@ | ||
name: Check setup | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Setup bun | ||
uses: oven-sh/setup-bun@v2 | ||
|
||
- name: Get Bun cache directory | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=${HOME}/.bun/install/cache" >> $GITHUB_ENV | ||
|
||
- name: Setup Bun cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-bun- | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: bun install | ||
|
||
- name: Create environment variables file | ||
shell: bash | ||
run: | | ||
cat << EOF > .env.local | ||
DISCORD_TOKEN=your_discord_token_here | ||
DISCORD_CLIENT_ID=your_discord_client_id_here | ||
DISCORD_OWNER_ID=your_discord_owner_id_here | ||
DISCORD_DEFAULT_GUILD_ID=your_discord_default_guild_id_here | ||
OPENAI_API_KEY=sk-your_openai_api_key_here | ||
UPSTASH_REDIS_REST_URL=https://your_upstash_redis_rest_url.upstash.io | ||
UPSTASH_REDIS_REST_TOKEN=your_upstash_redis_rest_token | ||
LOG_LEVEL=INFO | ||
LOG_DIRECTORY=logs | ||
MEM0_API_KEY=m0-api_key_here | ||
DEEPGRAM_API_KEY=your_deepgram_api_key_here | ||
ELEVENLABS_API_KEY=your_elevenlabs_api_key_here | ||
EXA_API_KEY=your_exa_api_key_here | ||
EOF | ||
name: Check setup | ||
|
||
runs: | ||
Comment on lines
+1
to
+3
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) CRLF line endings flagged by yamllint
🧰 Tools🪛 YAMLlint (1.37.1)[error] 1-1: wrong new line character: expected \n (new-lines) 🤖 Prompt for AI Agents
|
||
using: composite | ||
steps: | ||
- name: Setup bun | ||
uses: oven-sh/setup-bun@v2 | ||
|
||
- name: Get Bun cache directory | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=${HOME}/.bun/install/cache" >> $GITHUB_ENV | ||
|
||
- name: Setup Bun cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-bun- | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: bun install | ||
|
||
- name: Create environment variables file | ||
shell: bash | ||
run: | | ||
cat << EOF > .env.local | ||
DISCORD_TOKEN=your_discord_token_here | ||
DISCORD_CLIENT_ID=your_discord_client_id_here | ||
DISCORD_OWNER_ID=your_discord_owner_id_here | ||
DISCORD_DEFAULT_GUILD_ID=your_discord_default_guild_id_here | ||
OPENAI_API_KEY=sk-your_openai_api_key_here | ||
UPSTASH_REDIS_REST_URL=https://your_upstash_redis_rest_url.upstash.io | ||
UPSTASH_REDIS_REST_TOKEN=your_upstash_redis_rest_token | ||
LOG_LEVEL=INFO | ||
LOG_DIRECTORY=logs | ||
DEEPGRAM_API_KEY=your_deepgram_api_key_here | ||
ELEVENLABS_API_KEY=your_elevenlabs_api_key_here | ||
EXA_API_KEY=your_exa_api_key_here | ||
EOF |
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,25 +1,25 @@ | ||||||||||||||||
### Description | ||||||||||||||||
|
||||||||||||||||
<!-- Describe your changes in detail. What problem does this PR solve? --> | ||||||||||||||||
|
||||||||||||||||
### Type of Change | ||||||||||||||||
|
||||||||||||||||
<!-- Put an 'x' in all boxes that apply --> | ||||||||||||||||
|
||||||||||||||||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||||||||||||||||
- [ ] New feature (non-breaking change which adds functionality) | ||||||||||||||||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||||||||||||||||
- [ ] Refactor (non-breaking change that doesn't fix a bug or add a feature) | ||||||||||||||||
- [ ] Documentation update | ||||||||||||||||
|
||||||||||||||||
### Pre-flight Checklist | ||||||||||||||||
|
||||||||||||||||
<!-- Put an 'x' in all boxes that apply --> | ||||||||||||||||
|
||||||||||||||||
- [ ] Changes are limited to a single feature, bugfix or chore (split larger changes into separate PRs) | ||||||||||||||||
- [ ] `bun check` without any issues | ||||||||||||||||
- [ ] I have reviewed [contributor guidelines](https://github.com/techwithanirudh/discord-ai-bot/blob/main/CONTRIBUTING.md) | ||||||||||||||||
|
||||||||||||||||
### Additional Notes | ||||||||||||||||
|
||||||||||||||||
<!-- Add any additional notes for reviewers --> | ||||||||||||||||
### Description | ||||||||||||||||
|
||||||||||||||||
<!-- Describe your changes in detail. What problem does this PR solve? --> | ||||||||||||||||
Comment on lines
+1
to
+3
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Optional: add a top-level heading to satisfy markdownlint (MD041). +# # Pull Request 📝 Committable suggestion
Suggested change
🧰 Tools🪛 markdownlint-cli2 (0.17.2)1-1: First line in a file should be a top-level heading (MD041, first-line-heading, first-line-h1) 🤖 Prompt for AI Agents
|
||||||||||||||||
|
||||||||||||||||
### Type of Change | ||||||||||||||||
|
||||||||||||||||
<!-- Put an 'x' in all boxes that apply --> | ||||||||||||||||
|
||||||||||||||||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||||||||||||||||
- [ ] New feature (non-breaking change which adds functionality) | ||||||||||||||||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||||||||||||||||
- [ ] Refactor (non-breaking change that doesn't fix a bug or add a feature) | ||||||||||||||||
- [ ] Documentation update | ||||||||||||||||
|
||||||||||||||||
### Pre-flight Checklist | ||||||||||||||||
|
||||||||||||||||
<!-- Put an 'x' in all boxes that apply --> | ||||||||||||||||
|
||||||||||||||||
- [ ] Changes are limited to a single feature, bugfix or chore (split larger changes into separate PRs) | ||||||||||||||||
- [ ] `bun check` without any issues | ||||||||||||||||
- [ ] I have reviewed [contributor guidelines](https://github.com/techwithanirudh/discord-ai-bot/blob/main/CONTRIBUTING.md) | ||||||||||||||||
|
||||||||||||||||
### Additional Notes | ||||||||||||||||
|
||||||||||||||||
<!-- Add any additional notes for reviewers --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick (assertive)
Redundant glob patterns in
files
array"**"
already includes.vscode/**
and.github/**
; listing them separately adds noise without changing behaviour. Unless you’re overriding an exclusion elsewhere, the array can be simplified to just"**"
.🤖 Prompt for AI Agents