Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions shared/epistula.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import asyncio
import json
import random
import time
from hashlib import sha256
from math import ceil
Expand Down Expand Up @@ -207,6 +208,7 @@ async def make_openai_query(
uid: int,
stream: bool = False,
) -> tuple[ChatCompletion, list, list] | AsyncGenerator:
body["seed"] = body.get("seed", random.randint(0, 1000000))
axon_info = metagraph.axons[uid]
miner = openai.AsyncOpenAI(
base_url=f"http://{axon_info.ip}:{axon_info.port}/v1",
Expand Down
Empty file added test.md
Empty file.