You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ These scripts use the openai Python package to demonstrate how to use the OpenAI
23
23
In increasing order of complexity, the scripts are:
24
24
25
25
1.[`chat.py`](./chat.py): A simple script that demonstrates how to use the OpenAI Responses API to generate a response.
26
-
2.[`chat_stream.py`](./chat_stream.py): Adds `stream=True` to the API call to return a generator that streams the completion as it is being generated.
26
+
2.[`chat_stream.py`](./chat_stream.py): Adds `stream=True` to the API call to return a generator that streams the response text as it is being generated.
27
27
3.[`chat_history.py`](./chat_history.py): Adds a back-and-forth chat interface using `input()` which keeps track of past messages and sends them with each API call.
28
28
4.[`chat_history_stream.py`](./chat_history_stream.py): The same idea, but with `stream=True` enabled.
Copy file name to clipboardExpand all lines: spanish/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Demos de Python con OpenAI
2
2
3
-
Este repositorio contiene una colección de scripts en Python que demuestran cómo usar la API de Responses de OpenAI (y modelos compatibles). 📺 [Video tutorial de como usar este repositorio](https://youtu.be/0WwpMFMHEOo?si=9K4jFdBYdj-kb_GL)
3
+
Este repositorio contiene una colección de scripts en Python que demuestran cómo usar la API de Responses de OpenAI (y modelos compatibles). 📺 [Video tutorial de cómo usar este repositorio](https://youtu.be/0WwpMFMHEOo?si=9K4jFdBYdj-kb_GL)
4
4
5
5
*[Ejemplos](#ejemplos)
6
6
*[Responses de OpenAI](#responses-de-openai)
@@ -19,8 +19,8 @@ Este repositorio contiene una colección de scripts en Python que demuestran có
19
19
### Responses de OpenAI
20
20
21
21
Estos scripts usan el paquete `openai` de Python para demostrar cómo utilizar la API de Responses. En orden creciente de complejidad:
22
-
1.[`chat.py`](chat.py): Script simple que muestra cómo generar un completado de chat.
23
-
2.[`chat_stream.py`](chat_stream.py): Añade `stream=True` para recibir el completado progresivamente.
22
+
1.[`chat.py`](chat.py): Script simple que muestra cómo generar una respuesta.
23
+
2.[`chat_stream.py`](chat_stream.py): Añade `stream=True` para recibir la respuesta progresivamente.
24
24
3.[`chat_history.py`](chat_history.py): Añade un chat bidireccional que conserva el historial y lo reenvía en cada llamada.
25
25
4.[`chat_history_stream.py`](chat_history_stream.py): Igual que el anterior pero además con `stream=True`.
0 commit comments