Skip to content

Instantly share code, notes, and snippets.

View rhymiz's full-sized avatar
💭
hungry

Lemi Boyce rhymiz

💭
hungry
View GitHub Profile
@rhymiz
rhymiz / forked_stream.py
Last active August 9, 2024 04:16
Forked AsyncStream processing for OpenAI
import asyncio
from typing import Any, AsyncGenerator, Literal, Union
from openai import AsyncStream
from openai.types.chat.chat_completion_chunk import ChatCompletionChunk
oai = OpenAI()
async def _fork_stream(

Keybase proof

I hereby claim:

  • I am rhymiz on github.
  • I am lemuelboyce (https://keybase.io/lemuelboyce) on keybase.
  • I have a public key ASAx3180HyhWPtyb9wm6y4mq6nrYRQkEAtCoJz1OF0LKYAo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am rhymiz on github.
* I am rhymiz (https://keybase.io/rhymiz) on keybase.
* I have a public key ASCqjIZxx4UiDa-mIywa0sjPYHaIO29JIqlDaQXnxDLdqwo
To claim this, I am signing this object:
@rhymiz
rhymiz / displaylink-installer.sh
Created October 21, 2015 12:04
Display Link Installer Patch - Ubuntu/Elementary OS