Todos Nuevo

user:thomas gists creados por el usuario

title:mygist gists con el título indicado

filename:myfile.txt gists que contienen archivos con el nombre indicado

extension:yml gists que contienen archivos con la extensión indicada

language:go gists que contienen archivos con el lenguaje indicado

topic:homelab gists with given topic

Iniciar sesión


Todos Nuevo Iniciar sesión

All gists matching topic chatbot

Recientemente creado
Menos reciente creado
Recientemente actualizado
Menos reciente actualizado

timmy / 🤖 Typebot Docker 部署懶人包:資料儲存 + SMTP + MinIO 一次到位

0 gustos
0 bifurcaciones
3 archivos
Última actividad 8 months ago
整合 PostgreSQL、Redis、MinIO、SMTP 與環境變數設定,支援 https、自動掛載資料夾、支援 Typebot Builder & Viewer,還有一鍵重啟腳本 🚀
chatbot docker docker-compose minio postgresql redis self-hosted smtp typebot
1 # Secret key for encryption
2 ENCRYPTION_SECRET=KPOUyIj9sZIafK2s+M61IDQOT5e6bYC6
3
4 # PostgreSQL connection string
5 DATABASE_URL=postgresql://postgres:typebot@typebot-db:5432/typebot
6
7 # Optimize Node.js memory usage
8 NODE_OPTIONS=--no-node-snapshot
9
10 # Typebot URLs

timmy / 使用 litellm 呼叫 LLM API 生成回應

0 gustos
0 bifurcaciones
1 archivos
Última actividad 9 months ago
litellm 提供一個統一的介面來呼叫不同的 LLM(如 OpenAI、Anthropic、Azure OpenAI 等),簡化 API 介接,適用於聊天機器人、AI 助理或內容生成應用。
ai api chatbot litellm llm openai python
1 import os
2 from litellm import completion
3
4 # 設定 API 金鑰(建議使用環境變數)
5 os.environ["OPENAI_API_KEY"] = "your-api-key"
6
7 # 發送請求至 LLM
8 response = completion(
9 model="gpt-3.5-turbo",
10 messages=[{"role": "user", "content": "Hello, how are you?"}]
Siguiente Anterior

Desarrollado por Opengist ⋅ Load: 27ms⋅

Español
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文