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 { createOpenAICompatible } from '@ai-sdk/openai-compatible'; | |
| import { generateText } from "ai"; | |
| import "dotenv/config"; | |
| function gaiaFetch(input, init) { | |
| const headers = new Headers(init?.headers ?? {}); | |
| // Set headers only if they are not already present | |
| if (!headers.has("accept")) { | |
| headers.set("accept", "application/json"); |
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
| { | |
| "address": "", | |
| "chat": "https://huggingface.co/gaianet/Qwen3-0.6B-GGUF/resolve/main/Qwen3-0.6B-Q5_K_M.gguf", | |
| "chat_batch_size": "128", | |
| "chat_ctx_size": "2048", | |
| "chat_name": "Qwen3-0.6B-Q5_K_M", | |
| "chat_ubatch_size": "128", | |
| "context_window": "1", | |
| "description": "Gaia node config with Qwen3-0.6B-Q5_K_M model", | |
| "domain": "gaia.domains", |
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
| { | |
| "address": "", | |
| "chat": "https://huggingface.co/gaianet/gemma-3-4b-it-GGUF/resolve/main/gemma-3-4b-it-Q5_K_M.gguf", | |
| "chat_batch_size": "64", | |
| "chat_ctx_size": "8192", | |
| "chat_name": "gemma-3-4b-it-Q5_K_M", | |
| "context_window": "1", | |
| "description": "A custom gaia node running gemma-3-4b-it model.", | |
| "domain": "gaia.domains", | |
| "embedding": "https://huggingface.co/gaianet/gte-Qwen2-1.5B-instruct-GGUF/resolve/main/gte-Qwen2-1.5B-instruct-f16.gguf", |
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 os | |
| import pandas as pd | |
| from sentence_transformers import SentenceTransformer | |
| from qdrant_client import QdrantClient | |
| from qdrant_client.models import PointStruct, Distance, VectorParams | |
| # Configuration | |
| CSV_FILE = "snippets.csv" # Update with your csv path | |
| QDRANT_HOST = "localhost" # Change if using a remote Qdrant instance | |
| QDRANT_PORT = 6333 |
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
| """ | |
| # GitIngest Code Extractor | |
| ## Description | |
| This script parses text files containing code snippets extracted from gitingest.com | |
| and converts them into a CSV format for easier analysis and manipulation. | |
| ## Purpose | |
| When downloading code from gitingest.com, files are often consolidated into a single | |
| text file with delimiters separating each code file. This script identifies these |
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 | |
| from langchain_core.prompts import ChatPromptTemplate | |
| from langchain_core.output_parsers import StrOutputParser | |
| from langchain_core.runnables import RunnablePassthrough | |
| import json | |
| # Initialize the chat model with Gaia's endpoint | |
| llm = ChatOpenAI( | |
| model="llama3b", | |
| openai_api_key="gaia", |
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
| /** | |
| * Easily add roles from Discord users when they add a specific reactions using discord.js v14.14.1. (discord.js 14+) | |
| */ | |
| const { Client, Events, GatewayIntentBits, Partials } = require('discord.js'); | |
| const client = new Client({ | |
| intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMessageReactions], | |
| partials: [Partials.Message, Partials.Channel, Partials.Reaction], | |
| }); |
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
| /** | |
| * Easily remove roles from Discord users when they remove specific reactions using discord.js v14.14.1. (discord.js 14+) | |
| */ | |
| const { Client, Events, GatewayIntentBits, Partials } = require('discord.js'); | |
| const client = new Client({ | |
| intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMessageReactions], | |
| partials: [Partials.Message, Partials.Channel, Partials.Reaction], | |
| }); |
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
| /* | |
| * Custom thank you message after order is placed to show to the customer in woocommerce. | |
| */ | |
| add_filter( 'woocommerce_thankyou_order_received_text', 'holikau_custom_ty_msg' ); | |
| function holikau_custom_ty_msg ( $thank_you_msg ) { | |
| $thank_you_msg = 'Thank you for placing an order with us! Our Customer Care Executive will review your order & get in touch with you shortly regarding your date & time of delivery. Incase you want to make changes to your order please call +91-9849427575!'; | |
| return $thank_you_msg; | |
| } |
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
| sudo code --user-data-dir="~/.vscode-root" |
NewerOlder