Skip to content

Commit

Permalink
Format files
Browse files Browse the repository at this point in the history
  • Loading branch information
kxtran committed Jun 20, 2024
1 parent 35ab758 commit f31e295
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion log10/_httpx_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,4 +768,4 @@ def async_new_init(instance, *args, **kwargs):
async def finalize():
pending = asyncio.all_tasks()
pending.remove(asyncio.current_task())
await asyncio.gather(*pending)
await asyncio.gather(*pending)
7 changes: 1 addition & 6 deletions log10/completions/completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,7 @@ def _get_llm_repsone(
ret["content"] = response.choices[0].message.content
ret["usage"] = response.usage.dict()
elif "claude-3" in model:
import anthropic
from anthropic import Anthropic

from log10.load import log10

log10(anthropic)
from log10.load import Anthropic

system_messages = [m["content"] for m in messages if m["role"] == "system"]
other_messages = [m for m in messages if m["role"] != "system"]
Expand Down

0 comments on commit f31e295

Please sign in to comment.