Skip to content

Commit

Permalink
update openai + azure
Browse files Browse the repository at this point in the history
  • Loading branch information
ccurme committed Jul 11, 2024
1 parent 111f2f7 commit 94868d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
from typing import Type

import pytest
from langchain_core.language_models import BaseChatModel
from langchain_standard_tests.integration_tests import ChatModelIntegrationTests

Expand Down Expand Up @@ -30,3 +31,7 @@ def chat_model_params(self) -> dict:
"azure_endpoint": OPENAI_API_BASE,
"api_key": OPENAI_API_KEY,
}

@pytest.mark.xfail(reason="Not yet supported.")
def test_usage_metadata_streaming(self, model: BaseChatModel) -> None:
super().test_usage_metadata_streaming(model)
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def chat_model_class(self) -> Type[BaseChatModel]:

@property
def chat_model_params(self) -> dict:
return {"model": "gpt-4o"}
return {"model": "gpt-4o", "stream_usage": True}

@property
def supports_image_inputs(self) -> bool:
Expand Down

0 comments on commit 94868d9

Please sign in to comment.