Incorrect Markdown returns

Hi everyone! The issue with markdown that returned from gpt-40. Part of the response looks like this:

  • [UNESCO World Heritage Centre](
    link here with closing parentheses in the end =>)
  • . How to fix it? I want to receive either the correct markdown for parsing, or plain text without these ugly brackets etc. Sending parameters: model: model,
    “messages”: [{ “role”: “user”, “content”: prompt }],
    max_tokens: 1500,
    temperature: 0 request completions endpoint.

    Hi,

    [some text](some text)

    is valid markdown, it’s how you get hyperlinks with text like his

    this is some text that links to the openai website

    and it looks like this

    [this is some text that links to the openai website](https://openai.com)

    4 Likes

    I know how a valid markdown is look like. Example: what I expect to receive => [Taj Mahal](https:// Taj Mahal - Wikipedia). What I received: [Taj Mahal](https:// en.wikipedia.org/wiki/Taj_Mahal). No closing ) at the end of the link tag. Incorrect links with closing ) at the end of each one

    Hi @kovalskaya.anastasiy

    You may add in your prompt this:

    When you need to display links from websites, generate a Markdown link to the [page name] on [website name]. The format should be [page name - website name](URL).
    

    This is the output of the chat in text:

    When you need to display links from websites, generate a Markdown link to the [page name] on [website name]. The format should be [page name - website name](URL).
      
    ###  
      
    List Seven Wonders of the Ancient World from Wikipedia
    
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    Here are the Seven Wonders of the Ancient World listed on Wikipedia:
    
    1.  [Great Pyramid of Giza - Wikipedia](https://en.wikipedia.org/wiki/Great_Pyramid_of_Giza)
    2.  [Hanging Gardens of Babylon - Wikipedia](https://en.wikipedia.org/wiki/Hanging_Gardens_of_Babylon)
    3.  [Statue of Zeus at Olympia - Wikipedia](https://en.wikipedia.org/wiki/Statue_of_Zeus_at_Olympia)
    4.  [Temple of Artemis at Ephesus - Wikipedia](https://en.wikipedia.org/wiki/Temple_of_Artemis)
    5.  [Mausoleum at Halicarnassus - Wikipedia](https://en.wikipedia.org/wiki/Mausoleum_at_Halicarnassus)
    6.  [Colossus of Rhodes - Wikipedia](https://en.wikipedia.org/wiki/Colossus_of_Rhodes)
    7.  [Lighthouse of Alexandria - Wikipedia](https://en.wikipedia.org/wiki/Lighthouse_of_Alexandria)
    
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    List tools that are used on Salesforce.
    
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    Here are some tools commonly used on Salesforce:
    
    1.  [Salesforce Flow - Salesforce](https://trailhead.salesforce.com/content/learn/modules/business_process_automation/overview)
    2.  [Salesforce Einstein - Salesforce](https://www.salesforce.com/products/einstein/overview/)
    3.  [Salesforce AppExchange - Salesforce](https://appexchange.salesforce.com/)
    4.  [Salesforce Lightning - Salesforce](https://www.salesforce.com/products/platform/lightning/)
    5.  [Salesforce Shield - Salesforce](https://www.salesforce.com/products/shield/overview/)
    6.  [Salesforce Heroku - Salesforce](https://www.salesforce.com/products/platform/heroku/overview/)
    7.  [Salesforce Data Loader - Salesforce](https://help.salesforce.com/s/articleView?id=sf.data_loader.htm&type=5)
    
    These tools help users customize, automate, and enhance their Salesforce experience.