Skip to content

Instantly share code, notes, and snippets.

View cloudwithax's full-sized avatar
🔒
locked in

clxud cloudwithax

🔒
locked in
View GitHub Profile
@cloudwithax
cloudwithax / server.py
Created October 3, 2023 02:02
openai api to ollama api translator
import httpx
from fastapi import FastAPI, HTTPException
from pydantic import BaseModel
app = FastAPI()
# Define a Pydantic model for request input
class GenerateRequest(BaseModel):
model: str
prompt: str
@cloudwithax
cloudwithax / README.md
Last active May 15, 2023 04:47
Spotify Music Cog for Wavelink

Spotify Music Cog for Wavelink

This is a drop-in Wavelink music cog with Spotify support. Queue up tracks, albums, and playlists with the power of Python.

This requires that you have spotify.py installed from this repo

Feel free to add/edit any other commands and features, like pausing, skipping, queue management and more!

If you would like to revise anything here, feel free to comment/pull request.