Skip to content

Commit f837d26

Browse files
authored
fix: Update OpenRouterChatGenerator to work with haystack-ai>=2.18.0 (#2295)
* Fix by adding openai_endpoint * Formatting
1 parent b13df87 commit f837d26

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • integrations/openrouter/src/haystack_integrations/components/generators/openrouter/chat

integrations/openrouter/src/haystack_integrations/components/generators/openrouter/chat/chat_generator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,5 @@ def _prepare_api_call(
199199
**openai_tools,
200200
"extra_body": {**generation_kwargs},
201201
"extra_headers": {**extra_headers},
202+
"openai_endpoint": "create",
202203
}

0 commit comments

Comments
 (0)