Skip to content

Commit

Permalink
refactor: Lint agents-api (CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
alt-glitch authored and github-actions[bot] committed May 1, 2024
1 parent 39b118b commit 0b77d71
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions agents-api/agents_api/model_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
AgentModelNotValid,
MissingAgentModelAPIKeyError,
)
from openai import AsyncOpenAI
import litellm
from litellm.utils import get_valid_models
from agents_api.env import model_inference_url, model_api_key

GPT4_MODELS: Dict[str, int] = {
# stable model names:
Expand Down Expand Up @@ -117,7 +115,6 @@ def validate_configuration(model: str):
raise MissingAgentModelAPIKeyError(model)



def load_context(init_context: list[ChatML], model: str):
"""
Converts the message history into a format supported by the model.
Expand Down
2 changes: 1 addition & 1 deletion agents-api/agents_api/routers/sessions/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ async def generate(
response_format=settings.response_format,
api_base=api_base,
api_key=api_key,
**extra_body
**extra_body,
)
return res

Expand Down

0 comments on commit 0b77d71

Please sign in to comment.