RdR1024 / prolog2gpt

SWI Prolog library to interface to the GPT API
MIT License
18 stars 3 forks source link

library module not updated #3

Open hornkim opened 2 months ago

hornkim commented 2 months ago

Hi, I loaded the code locally using ['prolog2gpt.pro'], and all worked fine.

However, tried the library below and it is calling the wrong URL, it should be /vi/chat/completions ?

?- use_module(library(prolog2gpt)). true.

?- init_gptkey. true.

?- gpt_completions('gpt-4o','Hello',Answer,[]). ERROR: url `'https://api.openai.com/v1/completions'' does not exist (status(404,Not Found))

Kim

RdR1024 commented 1 month ago

Thanks for letting me know, Kim. Unfortunately, I am not able to attend the code right now, due to other commitments.

Cheers,

RdR

On Thu, 19 Sept 2024, 13:23 hornkim, @.***> wrote:

Hi, I loaded the code locally using ['prolog2gpt.pro'], and all worked fine.

However, tried the library below and it is calling the wrong URL, it should be /vi/chat/completions ?

?- use_module(library(prolog2gpt)). true.

?- init_gptkey. true.

?- gpt_completions('gpt-4o','Hello',Answer,[]). ERROR: url `'https://api.openai.com/v1/completions'' does not exist (status(404,Not Found))

Kim

— Reply to this email directly, view it on GitHub https://github.com/RdR1024/prolog2gpt/issues/3, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKXA6Z6FUJVU3DKLOIGTADZXI7RHAVCNFSM6AAAAABOO66B5SVHI2DSMVQWIX3LMV43ASLTON2WKOZSGUZTKMJYHAZDMMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>