FeiLiu36 / EoH

Evolution of Heuristics
MIT License
60 stars 8 forks source link

llm_api_endpoint #5

Closed chuzixizi closed 1 month ago

chuzixizi commented 1 month ago

I set the url, but there is a bug, what the correct llm_api_endpoint should be like image

FeiLiu36 commented 1 month ago

In your case, could you test the endpoint api.openai.com?

chuzixizi commented 1 month ago

yes, i already test the api_key, which can normally return

FeiLiu36 commented 1 month ago

I mean the llm_api_endpoint should be set to "api.openai.com" instead of "https://api.openai.com/v1/chat/completions".

chuzixizi commented 1 month ago

It didn`t work

FeiLiu36 commented 1 month ago

Could I have the detailed settings and the terminal response.

chuzixizi commented 1 month ago

ubuntu 22.04 python 3.11 openai 1.25.0 model gpt-3.5-turbo image

FeiLiu36 commented 1 month ago

It is weird, I can run it with Openai API using the same endpoint setting and model. I suggest the following solutions:

  1. double check the network and VPN (if any), sometimes a proxy leads to network errors.
  2. use other APIs.
chuzixizi commented 1 month ago

thanks