Skip to content

Instantly share code, notes, and snippets.

@gpt-partners
gpt-partners / fireworks.js
Last active October 22, 2025 06:38
Inference
import { Agent } from "undici";
const DEFAULT_BASE_URL = "https://api.fireworks.ai/inference/v1";
const httpAgent = new Agent({
keepAliveTimeout: 120_000,
});
export async function chat(opts) {
const {
@gpt-partners
gpt-partners / chat-widget.css
Last active October 21, 2025 06:24
Chat Shopping widget (Shopify)
/* Chat bubble (always visible bottom right) */
:root {
--chat-offset: 24px;
}
#chat-bubble {
position: fixed;
right: 24px;
bottom: 24px;
width: 56px;