fix TODO
This commit is contained in:
parent
bcb89a3c23
commit
c61a2ac772
@ -199,14 +199,9 @@ async def stream_code(websocket: WebSocket):
|
|||||||
params, valid_stack, code_generation_model, validated_input_mode
|
params, valid_stack, code_generation_model, validated_input_mode
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
# TODO(*): This should use variantIndex
|
await throw_error(
|
||||||
await websocket.send_json(
|
"Error assembling prompt. Contact support at support@picoapps.xyz"
|
||||||
{
|
|
||||||
"type": "error",
|
|
||||||
"value": "Error assembling prompt. Contact support at support@picoapps.xyz",
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
await websocket.close()
|
|
||||||
raise
|
raise
|
||||||
|
|
||||||
pprint_prompt(prompt_messages) # type: ignore
|
pprint_prompt(prompt_messages) # type: ignore
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user