fix: completion.py for visualizing output of /v1/completion

r0.3
Meng Zhang 2023-10-13 17:36:44 -07:00
parent dfa6ed76b1
commit f9b5c44087
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ language = st.text_input("Language", "rust")
query = st.text_area("Query", "to_owned")
if query:
r = requests.post("http://localhost:8080/v1/completions", json=dict(segments=dict(prefix=query), language=language, debug=dict(enabled=True)))
r = requests.post("http://localhost:8080/v1/completions", json=dict(segments=dict(prefix=query), language=language, debug_options=dict(enabled=True)))
json = r.json()
debug = json["debug_data"]
snippets = debug.get("snippets", [])