Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “If you are using a different shell configuration file, replace ~/.bashrc
with the appropriate file (for example, ., ~/.zshrc
or ~/.profile
).”
A block of code is set as follows:
import requests url = "http://localhost:8001/v1/chat/completions" headers = {"Content-Type": "application/json"} data = { "messages": [{"content": "Analyze the Incident Response Plan for key strategies"}], "use_context": True, "context_filter": None, "include_sources": False, "stream": False } response = requests.post(url, headers=headers, json=data) result = response.json() print(result)
Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: “In the System Properties window, click the Environment Variables button.”
Tips or important notes
Appear like this.