![]() |
#4
|
|||
|
|||
![]()
Thanks for helping me.
I will try to give your prompt reply to all your questions. The endpoint to which I am trying to connect is "https://api.openai.com/v1/texts/generations" I suppose I thought that I will simplify my Issue for reproduction with adding non-existing endpoint, but seems that is not the case. You can sign up for an OpenAI API key at the following link: https://beta.openai.com/signup. Regarding your references question, I think I have included all necessary, but could be mistaken. I don't have any JSON file for testing, doing this first time too. An example path might look something like this: The user selects some text in a Word document and runs the VBA macro. The VBA macro sends a POST request to the OpenAI Vinci API endpoint, along with a prompt that instructs the API to generate a summary of the selected text. The OpenAI Vinci API receives the request and processes it using the specified model. The API returns a response with the generated summary in JSON format. The VBA macro parses the JSON response and extracts the generated summary. The VBA macro inserts the generated summary into the Word document at the current cursor position. |
Tags |
api, office 2016, vba word |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is it possible to call a common vba macro on a commandbutton ? | josh2008 | Word VBA | 2 | 02-08-2019 02:02 AM |
Find word then call signature macro | Dave T | Word VBA | 4 | 03-28-2016 11:18 PM |
![]() |
arjfca | Word | 2 | 12-04-2014 12:53 AM |
![]() |
Paulsh | Word VBA | 1 | 11-01-2011 03:15 AM |
![]() |
KramerJ | Excel | 2 | 05-11-2009 11:33 AM |