File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
sources/platform/integrations/ai Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ The latest news on LLM is as follows:
175175
176176<details >
177177<summary >Complete example of real-time search data for OpenAI Assistant</summary >
178+
178179``` python
179180import json
180181from typing import TYPE_CHECKING
@@ -254,6 +255,7 @@ print("Assistant response:")
254255for m in client.beta.threads.messages.list(thread_id = run.thread_id):
255256 print (m.content[0 ].text.value)
256257```
258+
257259</details >
258260
259261## Save data into OpenAI Vector Store and use it in the assistant
@@ -363,6 +365,7 @@ You can scrape a website using Apify by following these steps:
363365
364366<details >
365367<summary >Complete example of saving data into OpenAI Vector Store and using it in the assistant</summary >
368+
366369``` python
367370from apify_client import ApifyClient
368371from openai import OpenAI
@@ -418,6 +421,7 @@ print("Assistant response:")
418421for m in client.beta.threads.messages.list(thread_id = run.thread_id):
419422 print (m.content[0 ].text.value)
420423```
424+
421425</details >
422426
423427## Resources
You can’t perform that action at this time.
0 commit comments