We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c78f1fa commit a73dc58Copy full SHA for a73dc58
README.md
@@ -75,31 +75,6 @@ receiver.verify(
75
)
76
```
77
78
-#### Publish a JSON message to LLM
79
-
80
-```python
81
-from qstash import QStash
82
-from qstash.chat import openai
83
84
-client = QStash("<QSTASH_TOKEN>")
85
86
-res = client.message.publish_json(
87
- api={"name": "llm", "provider": openai("<OPENAI_API_KEY>")},
88
- body={
89
- "model": "gpt-3.5-turbo",
90
- "messages": [
91
- {
92
- "role": "user",
93
- "content": "What is the capital of Turkey?",
94
- }
95
- ],
96
- },
97
- callback="https://example-cb.com",
98
-)
99
100
-print(res.message_id)
101
-```
102
103
#### Publish a JSON message to LLM Using Custom Providers
104
105
```python
0 commit comments