Skip to content

Commit a73dc58

Browse files
committed
fix: rm duplicate example
1 parent c78f1fa commit a73dc58

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

README.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -75,31 +75,6 @@ receiver.verify(
7575
)
7676
```
7777

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-
10378
#### Publish a JSON message to LLM Using Custom Providers
10479

10580
```python

0 commit comments

Comments
 (0)