mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
chore(openrouter): update URL/title (#36204)
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
'ChatOpenRouter',
|
||||
]),
|
||||
'kwargs': dict({
|
||||
'app_title': 'langchain',
|
||||
'app_url': 'https://docs.langchain.com/oss',
|
||||
'app_title': 'LangChain',
|
||||
'app_url': 'https://docs.langchain.com',
|
||||
'max_retries': 2,
|
||||
'max_tokens': 100,
|
||||
'model_name': 'openai/gpt-4o-mini',
|
||||
|
||||
@@ -320,8 +320,8 @@ class TestChatOpenRouterInstantiation:
|
||||
api_key=SecretStr("test-key"),
|
||||
)
|
||||
call_kwargs = mock_cls.call_args[1]
|
||||
assert call_kwargs["http_referer"] == ("https://docs.langchain.com/oss")
|
||||
assert call_kwargs["x_title"] == "langchain"
|
||||
assert call_kwargs["http_referer"] == ("https://docs.langchain.com")
|
||||
assert call_kwargs["x_title"] == "LangChain"
|
||||
|
||||
def test_user_attribution_overrides_defaults(self) -> None:
|
||||
"""Test that user-supplied attribution overrides the defaults."""
|
||||
|
||||
Reference in New Issue
Block a user