SHARINGAN pokerfreak-splash d5b9a6f (git archive vom Spielrechner, 03.12.)

This commit is contained in:
2026-12-03 16:07:37 +01:00
commit c606235731
425 changed files with 76414 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
"""LLMBot with ANY provider: you pass a function str -> str. No API keys live in the SDK."""
import os
from sharingan import run
from sharingan.bots import LLMBot
def complete(prompt: str) -> str:
# e.g. with the anthropic SDK:
# import anthropic; c = anthropic.Anthropic()
# return c.messages.create(model=os.environ["MODEL"], max_tokens=300,
# messages=[{"role": "user", "content": prompt}]).content[0].text
raise NotImplementedError("plug in your provider")
run(LLMBot(complete), os.environ["ARENA_URL"], os.environ["ARENA_TOKEN"])