mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-23 05:31:23 +00:00
add client marker tag on aux inference requests
This commit is contained in:
parent
58e2109f10
commit
94d9db72ba
1 changed files with 2 additions and 2 deletions
|
|
@ -382,7 +382,7 @@ _AI_GATEWAY_HEADERS = {
|
||||||
# Nous Portal extra_body for product attribution.
|
# Nous Portal extra_body for product attribution.
|
||||||
# Callers should pass this as extra_body in chat.completions.create()
|
# Callers should pass this as extra_body in chat.completions.create()
|
||||||
# when the auxiliary client is backed by Nous Portal.
|
# when the auxiliary client is backed by Nous Portal.
|
||||||
NOUS_EXTRA_BODY = {"tags": ["product=hermes-agent"]}
|
NOUS_EXTRA_BODY = {"tags": ["product=hermes-agent", "client=aux"]}
|
||||||
|
|
||||||
# Set at resolve time — True if the auxiliary client points to Nous Portal
|
# Set at resolve time — True if the auxiliary client points to Nous Portal
|
||||||
auxiliary_is_nous: bool = False
|
auxiliary_is_nous: bool = False
|
||||||
|
|
@ -4026,7 +4026,7 @@ def _build_call_kwargs(
|
||||||
# Provider-specific extra_body
|
# Provider-specific extra_body
|
||||||
merged_extra = dict(extra_body or {})
|
merged_extra = dict(extra_body or {})
|
||||||
if provider == "nous" or auxiliary_is_nous:
|
if provider == "nous" or auxiliary_is_nous:
|
||||||
merged_extra.setdefault("tags", []).extend(["product=hermes-agent"])
|
merged_extra.setdefault("tags", []).extend(NOUS_EXTRA_BODY["tags"])
|
||||||
if merged_extra:
|
if merged_extra:
|
||||||
kwargs["extra_body"] = merged_extra
|
kwargs["extra_body"] = merged_extra
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue