Comments (1)
The library is thread safe, so you can perform requests in a separate thread, via TThread or via TTask
TTask.Run(
procedure
begin
var Response := OpenAI.Audio.CreateSpeech(
procedure(Params: TAudioSpeechParams)
begin
...
end, StreamData);
end);
from delphiopenai.
Related Issues (20)
- Can the chat remember the chat history? HOT 6
- Possible bug in TFineTuningCreateParams HOT 3
- Does the "Regenerate" function in ChatGPT is simply resend the original prompt to ChatGPT server again? HOT 2
- Is the first Choice has the highest probablity? HOT 4
- Timeout error? HOT 5
- How to deal with the OpenAI exceptions? HOT 4
- Can OpenAI.Chat.Create works asynchronously? HOT 2
- Add-on to use Vision in this version HOT 4
- OpenAI.Audio.CreateTranscription with SRT format causes OpenAIExceptionInvalidResponse HOT 1
- OpenAI.assistants modifications HOT 3
- Can I set a model in TImageCreateParams? HOT 3
- DallE3 does not support generate multiple images? HOT 1
- Stream mode HOT 2
- Support to text to speech model? HOT 2
- Frequenly get error "The input prompt cannot be handled by the engine" when calling Dalle-3 model HOT 1
- Problems in Delphi 11 HOT 2
- Completion return 'The model `text-davinci-003` has been deprecated, HOT 1
- TFinishReasonHelper.Create procedure give incorrect TFinishReason? HOT 2
- Function calling working, but not Tools HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from delphiopenai.