File size: 1,687 Bytes
881510e
 
8df0f23
881510e
8df0f23
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
HEADER_MD = """# ๐Ÿ’ฌ BaseChat: Chat with Base LLMs by URIAL
[๐Ÿ“‘ Paper](https://arxiv.org/abs/2312.01552) | [๐Ÿ›œ Website](https://allenai.github.io/re-align/) | [๐Ÿ’ป GitHub](https://github.com/Re-Align/urial) | [๐Ÿฆ X-1](https://x.com/billyuchenlin/status/1799885923045568531) [๐Ÿฆ X-2](https://x.com/billyuchenlin/status/1759541978881311125) | ๐Ÿ“ฎ Contact: [Yuchen Lin](https://yuchenlin.xyz/)

**Talk with __BASE__ LLMs which are not fine-tuned at all. The used URIAL prompt is [here](https://github.com/Re-Align/URIAL/blob/main/urial_prompts/inst_1k_v4.help.txt.md).** 
"""

js_code_label = """
function addApiKeyLink() {
    // Select the div with id 'api_key'
    const apiKeyDiv = document.getElementById('api_key');

    // Find the span within that div with data-testid 'block-info'
    const blockInfoSpan = apiKeyDiv.querySelector('span[data-testid="block-info"]');

    // Create the new link element
    const newLink = document.createElement('a');
    newLink.href = 'https://api.together.ai/settings/api-keys';
    newLink.textContent = ' View your keys here.';
    newLink.target = '_blank'; // Open link in new tab
    newLink.style = 'color: #007bff; text-decoration: underline;';

    // Create the additional text
    const additionalText = document.createTextNode(' (new account will have free credits to use.)');

    // Append the link and additional text to the span
    if (blockInfoSpan) {
        // add a br 
        apiKeyDiv.appendChild(document.createElement('br'));
        apiKeyDiv.appendChild(newLink);
        apiKeyDiv.appendChild(additionalText);
    } else {
        console.error('Span with data-testid "block-info" not found');
    }
}
"""