Before you start, ensure you have installed the Aider-Composer extension from the Visual Studio Code Marketplace:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from langchain_openai import ChatOpenAI | |
| model=ChatOpenAI( | |
| temperature=0.5, | |
| model='codellama/CodeLlama-34b-Instruct-hf', | |
| base_url='https://api-inference.huggingface.co/v1/', | |
| api_key='<KEY>' | |
| ) | |
| response=model.invoke(input=[{"role": "user", "content": "What is color of flamingo?"}]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from langchain_openai import ChatOpenAI | |
| llm = ChatOpenAI( | |
| model="gemini-1.5-flash-002", | |
| api_key='<KEY>', | |
| base_url="https://generativelanguage.googleapis.com/v1beta/", | |
| temperature=0, | |
| max_tokens=None, | |
| timeout=None, | |
| max_retries=2, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt update && apt dist-upgrade -y && apt install curl htop neofetch git watch wget nano tmux tree jq -y | |
| curl -Lk 'https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64' --output vscode_cli.tar.gz | |
| tar -xf vscode_cli.tar.gz | |
| chmod +x code |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| openai-api-key: <KEY> | |
| openai-api-base: https://api.hyperbolic.xyz/v1 | |
| model: openai/deepseek-ai/DeepSeek-V2.5 | |
| architect: true | |
| weak-model: openai/meta-llama/Meta-Llama-3.1-8B-Instruct | |
| editor-model: openai/Qwen/Qwen2.5-72B-Instruct | |
| show-model-warnings: false | |
| # Repomap Settings: | |
| # Suggested number of tokens to use for repo map, use 0 to disable (default: 1024) | |
| map-tokens: 2048 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # install_terraform.sh | |
| # Exit immediately if a command exits with a non-zero status | |
| set -e | |
| # Update the package index | |
| echo "Updating package index..." | |
| sudo apt-get update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ollama | |
| import json | |
| show_message_tool: dict = { | |
| "name": "show_message", | |
| "description": "Display a greeting message with the given parameter", | |
| "parameters": [ | |
| { | |
| "name": "param", | |
| "description": "The parameter to include in the greeting message", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # %% | |
| # !pip install sqlite-vec | |
| ### [Ref Link](https://alexgarcia.xyz/blog/2024/sqlite-vec-stable-release/index.html) | |
| import sqlite3 | |
| import sqlite_vec | |
| import numpy as np | |
| import struct |