Support function calling for Grok

This commit is contained in:
Mark Backman
2024-10-23 16:45:56 -04:00
parent e0ca4a9c23
commit e39f7e965b

View File

@@ -533,6 +533,7 @@ class OpenAIAssistantContextAggregator(LLMAssistantContextAggregator):
self._context.add_message(
{
"role": "assistant",
"content": "", # content field required for Grok function calling
"tool_calls": [
{
"id": frame.tool_call_id,