Ian Davenport Copilot commited on
Commit
8dcb38e
·
unverified ·
1 Parent(s): a5dd87c

Fix typo in docs.

Browse files

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Files changed (1) hide show
  1. docs/servers/context.mdx +1 -1
docs/servers/context.mdx CHANGED
@@ -228,7 +228,7 @@ async def analyze_sentiment(text: str, ctx: Context) -> dict:
228
  # Create a sampling prompt asking for sentiment analysis
229
  prompt = f"Analyze the sentiment of the following text as positive, negative, or neutral. Just output a single word - 'positive', 'negative', or 'neutral'. Text to analyze: {text}"
230
 
231
- # Send the sampling request to the clients LLM (provide a hint for the model you want to use)
232
  response = await ctx.sample(prompt, model_preferences="claude-3-sonnet")
233
 
234
  # Process the LLM's response
 
228
  # Create a sampling prompt asking for sentiment analysis
229
  prompt = f"Analyze the sentiment of the following text as positive, negative, or neutral. Just output a single word - 'positive', 'negative', or 'neutral'. Text to analyze: {text}"
230
 
231
+ # Send the sampling request to the client's LLM (provide a hint for the model you want to use)
232
  response = await ctx.sample(prompt, model_preferences="claude-3-sonnet")
233
 
234
  # Process the LLM's response