Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run precommit #525

Closed
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: 1 addition & 1 deletion .env.api.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ API_PORT = "42170" # Port for the API server
API_HOST = "0.0.0.0" # Host for the API server
SCORING_KEY = "123" # The scoring key for the validator (must match the scoring key in the .env.validator file)
SCORE_ORGANICS = True # Whether to score organics
VALIDATOR_API = "0.0.0.0:8094" # The validator API to forward responses to for scoring
VALIDATOR_API = "0.0.0.0:8094" # The validator API to forward responses to for scoring
2 changes: 1 addition & 1 deletion api_keys.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{}
{}
2 changes: 1 addition & 1 deletion prompting/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

from prompting.api.miner_availabilities.api import router as miner_availabilities_router
from prompting.api.scoring.api import router as scoring_router
from shared.settings import shared_settings
from prompting.rewards.scoring import task_scorer
from shared.settings import shared_settings

app = FastAPI()
app.include_router(miner_availabilities_router, prefix="/miner_availabilities", tags=["miner_availabilities"])
Expand Down
5 changes: 3 additions & 2 deletions validator_api/chat_completion.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import asyncio
import json
import random
from typing import AsyncGenerator, List, Optional, Tuple
from typing import AsyncGenerator, List, Optional

import httpx
from fastapi import HTTPException
from fastapi.responses import StreamingResponse
from loguru import logger
import httpx

from shared.epistula import make_openai_query
from shared.settings import shared_settings
Expand Down
Loading