Files
herolib/lib/clients/openai
mariobassem 67fc3b4a99 feat: improve OpenAI client
- Updated the OpenAI client to use environment variables for API keys.
- Improved the configuration and management of OpenAI clients.
- Added retry mechanism to HTTP requests for improved reliability.

Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
2025-01-12 16:33:48 +02:00
..
2024-12-31 11:00:02 +01:00
2024-12-29 18:01:27 +02:00
2025-01-12 16:33:48 +02:00
2024-12-31 11:00:02 +01:00
2024-12-31 11:00:02 +01:00
2024-12-31 11:00:02 +01:00
2024-12-31 11:00:02 +01:00
2024-12-31 11:00:02 +01:00
2024-12-29 14:10:27 +02:00
2024-12-31 11:00:02 +01:00
2024-12-29 18:01:27 +02:00
2024-12-29 14:10:27 +02:00
2024-12-29 14:10:27 +02:00
2025-01-12 16:33:48 +02:00
2025-01-12 16:33:48 +02:00
2024-12-29 18:01:27 +02:00

openai

To get started




import freeflowuniverse.herolib.clients. openai

mut client:= openai.get()!

client...




example heroscript

!!openai.configure
    secret: '...'
    host: 'localhost'
    port: 8888