Removed unneccesary delete
This commit is contained in:
@@ -213,7 +213,6 @@ def get_audio(UUID: UUID4):
|
||||
raise HTTPException(status_code=404, detail="Audio not found")
|
||||
if isinstance(PENDING_AUDIO[UUID], str):
|
||||
audio_text = PENDING_AUDIO[UUID]
|
||||
del PENDING_AUDIO[UUID]
|
||||
response = openai_client.audio.speech.create(
|
||||
model="tts-1",
|
||||
voice="alloy",
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
|
||||
> For the demo, language ∈ {EN_JA, EN_ZH-CN}
|
||||
|
||||
POST /ai-mark {
|
||||
question: str,
|
||||
user_answer: str,
|
||||
expected: str,
|
||||
chapter: str,
|
||||
language: str
|
||||
}
|
||||
-> {correct: bool, reason: str}
|
||||
|
||||
POST /human-chat {
|
||||
target_name: str,
|
||||
target_hobbies: list\[str],
|
||||
history: list\[{from\_me: bool, msg: str}],
|
||||
language: str
|
||||
}
|
||||
-> {msg: str}
|
||||
|
||||
> Chat histories will be stored in localStorage
|
||||
|
||||
POST /recognize (Body is an audio file)
|
||||
-> {text: str}
|
||||
|
||||
POST /character-chat {
|
||||
character: str
|
||||
history: list\[{from_me: bool, msg: str}]
|
||||
language: str
|
||||
}
|
||||
-> {msg: str, audio: UUID}
|
||||
|
||||
GET /audio/{UUID}
|
||||
Reference in New Issue
Block a user