groq: Add tool calling support (#19971)

**Description:** Add with_structured_output to groq chat models
**Issue:** 
**Dependencies:** N/A
**Twitter handle:** N/A
This commit is contained in:
Graden Rea
2024-04-03 14:40:20 -07:00
committed by GitHub
parent 6f20f140ca
commit 88cf8a2905
5 changed files with 551 additions and 19 deletions

View File

@@ -16,7 +16,8 @@ from langchain_core.messages import (
from langchain_groq.chat_models import ChatGroq, _convert_dict_to_message
os.environ["GROQ_API_KEY"] = "fake-key"
if "GROQ_API_KEY" not in os.environ:
os.environ["GROQ_API_KEY"] = "fake-key"
def test_groq_model_param() -> None: