Skip to content

Commit

Permalink
fix: completion.py for visualizing output of /v1/completion
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed Oct 14, 2023
1 parent dfa6ed7 commit f9b5c44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion experimental/scheduler/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
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", [])
Expand Down

0 comments on commit f9b5c44

Please sign in to comment.