mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-18 04:41:56 +00:00
Merge pull request #26048 from stephenschoettler/fix/discord-e2e-history-mock
test: unblock post-25957 shared CI
This commit is contained in:
commit
9e67c8e8be
2 changed files with 5 additions and 0 deletions
|
|
@ -66,6 +66,9 @@ def _ensure_discord_mock():
|
|||
discord_mod.DMChannel = type("DMChannel", (), {})
|
||||
discord_mod.Thread = type("Thread", (), {})
|
||||
discord_mod.ForumChannel = type("ForumChannel", (), {})
|
||||
discord_mod.Forbidden = type("Forbidden", (Exception,), {})
|
||||
discord_mod.MessageType = SimpleNamespace(default=0, reply=19)
|
||||
discord_mod.Object = lambda *, id: SimpleNamespace(id=id)
|
||||
discord_mod.Interaction = object
|
||||
discord_mod.app_commands = SimpleNamespace(
|
||||
describe=lambda **kwargs: (lambda fn: fn),
|
||||
|
|
|
|||
|
|
@ -61,6 +61,8 @@ def _make_agent(monkeypatch, provider, api_mode="chat_completions", base_url="ht
|
|||
)
|
||||
if model:
|
||||
kwargs["model"] = model
|
||||
elif provider == "nous":
|
||||
kwargs["model"] = "gpt-5"
|
||||
base_url="https://openrouter.ai/api/v1",
|
||||
api_key="test-key",
|
||||
base_url="https://openrouter.ai/api/v1",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue