File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # AIMLAPI -haystack
1+ # aimlapi -haystack
22
33[ ![ PyPI - Version] ( https://img.shields.io/pypi/v/aimlapi-haystack.svg )] ( https://pypi.org/project/aimlapi-haystack )
44[ ![ PyPI - Python Version] ( https://img.shields.io/pypi/pyversions/aimlapi-haystack.svg )] ( https://pypi.org/project/aimlapi-haystack )
88
99---
1010
11- ## Installation
12-
13- ``` bash
14- pip install aimlapi-haystack
15- ```
16-
17- ## Usage
18-
19- ``` python
20- from haystack_integrations.components.generators.aimlapi import AIMLAPIChatGenerator
21- from haystack.dataclasses import ChatMessage
22-
23- generator = AIMLAPIChatGenerator(model = " openai/gpt-5-chat-latest" )
24- result = generator.run([ChatMessage.from_user(" What's the capital of France?" )])
25- print (result[" replies" ][0 ].content)
26- ```
27-
2811## Contributing
2912
3013Refer to the general [ Contribution Guidelines] ( https://github.com/deepset-ai/haystack-core-integrations/blob/main/CONTRIBUTING.md ) .
You can’t perform that action at this time.
0 commit comments