Skip to content

Instantly share code, notes, and snippets.

View connyay's full-sized avatar
🦀

Connor Hindley connyay

🦀
View GitHub Profile

Keybase proof

I hereby claim:

  • I am connyay on github.
  • I am connyay (https://keybase.io/connyay) on keybase.
  • I have a public key whose fingerprint is 18A9 F274 2D71 810E 50C5 9473 53CD 10ED B633 71AE

To claim this, I am signing this object:

@connyay
connyay / Bookmarklet.js
Last active December 31, 2016 19:47
/u/ProudMod Bookmarklet
(function(messageNum) {
var messages = {
1: ["Warning Subject", "Yo! Knock it off.\n\nYou are not respecting the rules."],
2: ["Last Chance Subject", "This is your last chance!\n\nPlease review [the rules](https://www.reddit.com/r/ProudMod/wiki)"]
}
if (/reddit\.com\/user\/*/.test(location.href)) {
if (!messageNum) {
messageNum = prompt("Which message would you like to compose?");
}
var message = messages[messageNum];
13.108.238.128/28,13.108.238.144/28,13.108.254.128/28,13.108.254.144/28,13.110.6.176/28,13.110.6.192/28,13.110.6.208/28,13.110.6.224/28,13.110.14.176/28,13.110.14.192/28,13.110.14.208/28,13.110.14.224/28,13.110.74.224/28,13.110.74.208/28,13.110.78.224/28,13.110.78.208/28,136.147.46.176/28,136.147.46.192/28,136.147.62.176/28,136.147.62.224/28,136.147.46.192/28,136.147.62.192/28,136.147.46.192/28,136.147.62.192/28,138.68.240.22/28
{
"Ansi 6 Color" : {
"Red Component" : 2.9028859671598184e-07,
"Color Space" : "sRGB",
"Blue Component" : 0.83137255907058716,
"Alpha Component" : 1,
"Green Component" : 0.73725491762161255
},
"Tags" : [
// Package http provides an HTTP service using FastHTTP that exposes endpoints
// for text completions, chat completions, and embeddings using various AI model providers (OpenAI, Anthropic, Bedrock, Mistral, Ollama, etc.).
//
// The HTTP service provides three main endpoints:
// - /v1/text/completions: For text completion requests
// - /v1/chat/completions: For chat completion requests
// - /v1/embeddings: For text embedding requests
// - /v1/mcp/tool/execute: For MCP tool execution requests
//
// Configuration is handled through a JSON config file and environment variables:
use std::future::Future;
use crate::worker_sys::Context as JsContext;
use crate::Result;
use serde::de::DeserializeOwned;
use wasm_bindgen::JsValue;
use wasm_bindgen_futures::future_to_promise;
/// A context bound to a `fetch` event.