Logo
Explore Help
Register Sign In
yujunjun/haystack
1
0
Fork 0
You've already forked haystack
mirror of https://github.com/deepset-ai/haystack.git synced 2025-07-15 21:10:46 +00:00
Code Issues Packages Projects Releases Wiki Activity
haystack/test/components/generators/chat/conftest.py

12 lines
266 B
Python
Raw Normal View History

feat: Add `HuggingFaceTGIChatGenerator` Haystack 2.x component (#6199) * Add ChatHuggingFaceTGIGenerator * Add release note --------- Co-authored-by: Daria Fokina <daria.fokina@deepset.ai> Co-authored-by: Stefano Fiorucci <44616784+anakin87@users.noreply.github.com>
2023-11-06 09:48:45 +01:00
import pytest
Fix all tests
2023-11-24 14:48:43 +01:00
from haystack.dataclasses import ChatMessage
feat: Add `HuggingFaceTGIChatGenerator` Haystack 2.x component (#6199) * Add ChatHuggingFaceTGIGenerator * Add release note --------- Co-authored-by: Daria Fokina <daria.fokina@deepset.ai> Co-authored-by: Stefano Fiorucci <44616784+anakin87@users.noreply.github.com>
2023-11-06 09:48:45 +01:00
@pytest.fixture
def chat_messages():
return [
ChatMessage.from_system("You are a helpful assistant speaking A2 level of English"),
ChatMessage.from_user("Tell me about Berlin"),
]
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 102ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API