Closed johnd0e closed 10 months ago
Fixed by changing "session_id": "session-ID"
to "session_id": ""
But still, this exception is bug.
Instructions and example codes are now clearly fixed and available right now.
Indeed, you fixed instructions. But not the code - in case of wrong (or outdated) token value we still get exception. It would be better to handle it, and return clear error message.
But again - it is not clear why we may need to specify the value already present in Config.conf?
It would be more useful to have ability to continue some previous conversation, specifying it's id.
I still don't understand how to get this session key.
The format is still not correct. When I copy all the values it appears like this:
File "/usr/local/lib/python3.10/dist-packages/browser_cookie3/__init__.py", line 195, in __enter__
self.__connection = open_dbus_connection()
File "/usr/lib/python3/dist-packages/jeepney/io/blocking.py", line 332, in open_dbus_connection
bus_addr = get_bus(bus)
File "/usr/lib/python3/dist-packages/jeepney/bus.py", line 53, in get_bus
return find_session_bus()
File "/usr/lib/python3/dist-packages/jeepney/bus.py", line 42, in find_session_bus
addr = os.environ['DBUS_SESSION_BUS_ADDRESS']
File "/usr/lib/python3.10/os.py", line 680, in __getitem__
raise KeyError(key) from None
KeyError: 'DBUS_SESSION_BUS_ADDRESS'
You only need sessionKey.
When using
http://127.0.0.1:8000/claude
Output in server console:
P.S. I was testing with curl. But
example_claude.py
is ok