fix: examples, enums and regenerate (#2)

This commit is contained in:
David Alberto Adler
2025-09-07 21:50:22 +01:00
parent 0fc7236673
commit 2988b5e385
61 changed files with 2568 additions and 1093 deletions
+24
View File
@@ -0,0 +1,24 @@
dependencies = [
"openrouter",
"os",
"asyncio",
]
import os
import asyncio
from openrouter import OpenRouter
async def main():
sdk = OpenRouter(
api_key=os.getenv("OPENROUTER_API_KEY"),
)
result = await sdk.chat.complete_async(
messages=[
{"role": "user", "content": "Hello, world!"},
],
model="openai/gpt-3.5-turbo",
)
print("Basic async completion:", result)
if __name__ == "__main__":
asyncio.run(main())