You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I apologize if this is already covered by the docs and I haven't seen it. I have seen that langserve.server.add_routes has enable_public_trace_link_endpoint, which enables a public link for the trace. What I'd like is to make it possible for a chat on a private server to have each message be able to link to its run id(s) from when they ran on the server invoked by langserve. Is this supported?
withcallbacks.collect_runs() ascb:
forchunkinchain.stream({"input": "What is the GIL?"}):
print(chunk.content, end="", flush=True)
run_id=cb.traced_runs[0].id
But how do I get LangServe to do this for me and return it to the client so I can link to it in such a way that people in our LangSmith organization can view it but nobody else can?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I apologize if this is already covered by the docs and I haven't seen it. I have seen that
langserve.server.add_routes
hasenable_public_trace_link_endpoint
, which enables a public link for the trace. What I'd like is to make it possible for a chat on a private server to have each message be able to link to its run id(s) from when they ran on the server invoked by langserve. Is this supported?I've seen examples related to this in the langsmith docs; for example, hub-examples/runnable-prompt/edit-in-playground.ipynb has this:
But how do I get LangServe to do this for me and return it to the client so I can link to it in such a way that people in our LangSmith organization can view it but nobody else can?
Beta Was this translation helpful? Give feedback.
All reactions