Skip to content

Commit

Permalink
fix more typing stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
abraham-leal committed Dec 16, 2024
1 parent f6f56bc commit 87d0fcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions weave/integrations/langchain/langchain_nvidia_ai_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def post_process_to_openai_format(output: Any) -> dict:
## Need a separate stream variant as the passed objects don't provide an indication
def process_inputs_to_openai_format_stream(
func: Op, args: tuple, kwargs: dict
) -> ProcessedInputs | None:
) -> ProcessedInputs:
from langchain_core.messages import convert_to_openai_messages

original_args = args
Expand Down Expand Up @@ -146,7 +146,7 @@ def process_inputs_to_openai_format_stream(

def process_inputs_to_openai_format(
func: Op, args: tuple, kwargs: dict
) -> ProcessedInputs | None:
) -> ProcessedInputs:
from langchain_core.messages import convert_to_openai_messages

original_args = args
Expand Down

0 comments on commit 87d0fcf

Please sign in to comment.