fix delete chat bug

This commit is contained in:
Xin Wang
2026-01-08 17:36:04 +08:00
parent f1bd12353a
commit a4713456ad
5 changed files with 118 additions and 57 deletions

View File

@@ -209,47 +209,47 @@ async def get_chat_records():
async def main():
"""Run all examples."""
# print("=== Simple Chat ===")
# try:
# await simple_chat()
# except Exception as e:
# print(f"Error: {e}")
print("=== Simple Chat ===")
try:
await simple_chat()
except Exception as e:
print(f"Error: {e}")
# print("\n=== Streaming Chat ===")
# try:
# await streaming_chat()
# except Exception as e:
# print(f"Error: {e}")
print("\n=== Streaming Chat ===")
try:
await streaming_chat()
except Exception as e:
print(f"Error: {e}")
# print("\n=== Chat with Context ===")
# try:
# await chat_with_context()
# except Exception as e:
# print(f"Error: {e}")
print("\n=== Chat with Context ===")
try:
await chat_with_context()
except Exception as e:
print(f"Error: {e}")
# print("\n=== Get Histories ===")
# try:
# await get_histories()
# except Exception as e:
# print(f"Error: {e}")
print("\n=== Get Histories ===")
try:
await get_histories()
except Exception as e:
print(f"Error: {e}")
# print("\n=== Get App Analytics ===")
# try:
# await get_app_analytics()
# except Exception as e:
# print(f"Error: {e}")
print("\n=== Get App Analytics ===")
try:
await get_app_analytics()
except Exception as e:
print(f"Error: {e}")
# print("\n=== Multiple Requests (Concurrent) ===")
# try:
# await multiple_requests()
# except Exception as e:
# print(f"Error: {e}")
print("\n=== Multiple Requests (Concurrent) ===")
try:
await multiple_requests()
except Exception as e:
print(f"Error: {e}")
# print("\n=== Chat with Variables ===")
# try:
# await chat_with_variables()
# except Exception as e:
# print(f"Error: {e}")
print("\n=== Chat with Variables ===")
try:
await chat_with_variables()
except Exception as e:
print(f"Error: {e}")
print("\n=== Get Chat Records ===")
try: