Skip to content

Commit

Permalink
Link to docments in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
slava-vishnyakov committed Aug 1, 2024
1 parent d5de007 commit f2c4462
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
.python-string { color: #ce9178; }
.python-function { color: #dcdcaa; }
.python-comment { color: #6a9955; }
.python-comment a { color: #8be661; text-decoration: underline; }

/* Dark mode styles */
.dark body {
Expand Down Expand Up @@ -163,7 +164,7 @@ <h1 class="text-3xl font-bold mb-6 text-center text-gray-800">Chatlet Demo</h1>
) -> dict: <span class="python-comment"># Get the current weather in a given location</span>
<span class="python-keyword">return</span> {<span class="python-string">"temperature"</span>: <span class="python-number">22</span>, <span class="python-string">"unit"</span>: unit, <span class="python-string">"condition"</span>: <span class="python-string">"Sunny"</span>}

<span class="python-comment"># Note: All comments are passed to the model via <a href="https://fastcore.fast.ai/docments.html#docments" class="text-blue-500 underline" target="_blank">docments</a></span>
<span class="python-comment"># Note: All comments are passed to the model via <a href="https://fastcore.fast.ai/docments.html#docments" target="_blank">docments</a></span>

chat = Chatlet()
response = chat(<span class="python-string">"What's the weather like in New York City?"</span>,
Expand Down

0 comments on commit f2c4462

Please sign in to comment.