Comments (9)
I believe this is not related to the library, but with your local computer trying to access the OpenAI API. From your screenshot, my guess is that you are using an old Windows version?
OpenAI seems to use Let's Encrypt certificate, so I guess you are hitting this issue:
https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/
from openai-delphi.
Sorry, this https://github.com/fpiette/DelphiChatGPT project works like a charm.
And there is one more both work fine
from openai-delphi.
The mentioned project uses a different library to perform HTTP requests.
I don't know what is the "one more" you mentioned.
This library doesn't do anything regarding HTTP request. It just uses the built-in Delphi classes, which in turn uses WinHTTP as far as I know.
Maybe you are hitting the TLS 1.2 issue then, you can try this:
from openai-delphi.
I have the same problem. Windows 8.1 upgraded to Windows server 2012 R2.
from openai-delphi.
@mikelustosa Have you tried the fixes suggested in the link I posted?
from openai-delphi.
@mikelustosa Have you tried the fixes suggested in the link I posted?
Yes. Not work. 😕
from openai-delphi.
So, you installed the root certificate manually, and also enabled TLS 1.2 and TLS 1.3, and neither work?
What is the exact error message you get?
from openai-delphi.
I Made my own. I took 2 projects one that works and the other that
does not (certificate problem) but has a great screen and merged them
It is a VCL and FMX merged together
from openai-delphi.
There is now an option to use Indy to connect to OpenAI API. You can switch to it using a code like this:
uses {...}, OpenApiRest, OpenApiIndy, IdHTTP;
procedure TMainDataModule.IndyClientCreated(Client: TIdHTTP);
begin
// Set extra Client properties here
end;
procedure TMainDataModule.DataModuleCreate(Sender: TObject);
var
Factory: TIndyRestRequestFactory;
begin
// At the beginning of your application, set the DefaultRequestFactory
Factory := TIndyRestRequestFactory.Create;
DefaultRequestFactory := Factory;
Factory.OnClientCreated := IndyClientCreated;
end;
More info in this link: https://github.com/landgraf-dev/openapi-delphi-generator#client-compatibility
This change will probably allow the client to work better on old Windows versions which don't support the latest ciphers used by the API server.
from openai-delphi.
Related Issues (12)
- Example for local server Gpt4All HOT 4
- Rotas Fine Tunning foram alteradas, valide na documentação para ver se estou correto nas afirmações que postei abaixo HOT 1
- deprecated OpenAI models - FYI HOT 3
- Audio transcription function, possible?
- error on lazarus HOT 2
- I provided API key, but got error HOT 2
- How to get total/unused balance OpenAI? HOT 3
- no "gpt-3.5-turbo" support HOT 10
- concept of a session/conversation? HOT 2
- Incredible Code... Possible Demo? HOT 1
- OpenAI Oragnization Name HOT 2
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 openai-delphi.