Spaces:
Running
Running
Ian Davenport Copilot commited on
Fix typo in docs.
Browse filesCo-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- 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
|
| 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
|