Skip to content

Instantly share code, notes, and snippets.

View Raibows's full-sized avatar
👀
Exploring

Chi Zuo Raibows

👀
Exploring
View GitHub Profile
@Raibows
Raibows / dispatch_openai_requests.py
Created May 8, 2023 09:10 — forked from neubig/dispatch_openai_requests.py
A simple script to get results from the OpenAI Asynchronous API
import openai
import asyncio
from typing import Any
async def dispatch_openai_requests(
messages_list: list[list[dict[str,Any]]],
model: str,
temperature: float,
max_tokens: int,
top_p: float,