Skip to content

Commit 3533006

Browse files
committed
fast reponse
1 parent 6433361 commit 3533006

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

assistantweb/src/App.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function App() {
137137
console.error("The run has failed");
138138
} else if (runStatus === "queued" || runStatus === "in_progress") {
139139
console.log("Retrying to check run status...");
140-
setTimeout(() => checkRunStatus(runId, currentThreadId), 80000); // Réessayez en passant le bon threadId
140+
setTimeout(() => checkRunStatus(runId, currentThreadId), 3000); // Réessayez en passant le bon threadId
141141
}
142142
} catch (error) {
143143
console.error("Error while checking run status:", error);
@@ -151,7 +151,7 @@ function App() {
151151
const newThreadId = await createThreadAndRun(); // Await and receive newThreadId
152152
if (newThreadId !== null) {
153153
setIsLoading(true);
154-
await new Promise((resolve) => setTimeout(resolve, 5000));
154+
await new Promise((resolve) => setTimeout(resolve, 2000));
155155
console.log("Thread ID créé:", newThreadId);
156156
setThreadId(newThreadId);
157157
fetchMessages(newThreadId);

assistantweb/src/ConfigForm.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const ConfigForm: React.FC<ConfigFormProps> = ({
130130
<div className="form-container">
131131
<form onSubmit={handleSubmit} className="config-form">
132132
<label>
133-
<span>API Key:</span>
133+
<span>Clef OpenAi :</span>
134134
<input
135135
type="text"
136136
value={apiKey}

0 commit comments

Comments
 (0)