<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic PROC HTTP and Plug-ins in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-HTTP-and-Plug-ins/m-p/878010#M346887</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm working on a sas macro that calls in ChatGPT into a SAS enviroment. I'm using this code whcih works successfully&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; data _null_;
    file in;
    put "{";
    put '"model": "gpt-3.5-turbo", "messages": [{"role": "user", "content"'}']'; 
    put "}";
    run;&lt;/PRE&gt;
&lt;PRE&gt; /* Reference that file as IN= parm in PROC HTTP POST */
    filename resp "%sysfunc(getoption(WORK))/echo.json";

    /* Send the request and payload */
    proc http 
        method = "POST"
        url    = "https://api.openai.com/v1/chat/completions"
        ct     = "application/json"
        in     = in
        out    = resp;
        headers "Authorization" = "Bearer &amp;amp;api_key.";
    run;    &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question is how do I alter this so I can explore some of the beta plug-ins that were introduced?. I do have a chatgpt 4 subscription so this is not an issue. is it better to create a separate macro for plug in specific requests as it would be a separate url or can it be altered within a single macro call?&lt;/P&gt;</description>
    <pubDate>Mon, 29 May 2023 11:40:49 GMT</pubDate>
    <dc:creator>smackerz1988</dc:creator>
    <dc:date>2023-05-29T11:40:49Z</dc:date>
    <item>
      <title>PROC HTTP and Plug-ins</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-HTTP-and-Plug-ins/m-p/878010#M346887</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm working on a sas macro that calls in ChatGPT into a SAS enviroment. I'm using this code whcih works successfully&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; data _null_;
    file in;
    put "{";
    put '"model": "gpt-3.5-turbo", "messages": [{"role": "user", "content"'}']'; 
    put "}";
    run;&lt;/PRE&gt;
&lt;PRE&gt; /* Reference that file as IN= parm in PROC HTTP POST */
    filename resp "%sysfunc(getoption(WORK))/echo.json";

    /* Send the request and payload */
    proc http 
        method = "POST"
        url    = "https://api.openai.com/v1/chat/completions"
        ct     = "application/json"
        in     = in
        out    = resp;
        headers "Authorization" = "Bearer &amp;amp;api_key.";
    run;    &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question is how do I alter this so I can explore some of the beta plug-ins that were introduced?. I do have a chatgpt 4 subscription so this is not an issue. is it better to create a separate macro for plug in specific requests as it would be a separate url or can it be altered within a single macro call?&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 11:40:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-HTTP-and-Plug-ins/m-p/878010#M346887</guid>
      <dc:creator>smackerz1988</dc:creator>
      <dc:date>2023-05-29T11:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: PROC HTTP and Plug-ins</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-HTTP-and-Plug-ins/m-p/879314#M347388</link>
      <description>Which parameter do you want to change?</description>
      <pubDate>Tue, 06 Jun 2023 10:12:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-HTTP-and-Plug-ins/m-p/879314#M347388</guid>
      <dc:creator>rudfaden</dc:creator>
      <dc:date>2023-06-06T10:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC HTTP and Plug-ins</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-HTTP-and-Plug-ins/m-p/881626#M348342</link>
      <description>&lt;P&gt;I guess what I'm trying to ascertain is can PROC HTTP be used to bring in plug ins associated with applications such as ChatGPT? Such as PDF Reader?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 22:59:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-HTTP-and-Plug-ins/m-p/881626#M348342</guid>
      <dc:creator>smackerz1988</dc:creator>
      <dc:date>2023-06-20T22:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: PROC HTTP and Plug-ins</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-HTTP-and-Plug-ins/m-p/896232#M354115</link>
      <description>&lt;P&gt;No. Proc http can get data from websites&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 11:54:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-HTTP-and-Plug-ins/m-p/896232#M354115</guid>
      <dc:creator>rudfaden</dc:creator>
      <dc:date>2023-09-28T11:54:44Z</dc:date>
    </item>
  </channel>
</rss>

