Skip to content

Commit

Permalink
update response
Browse files Browse the repository at this point in the history
Signed-off-by: Yaliang Wu <[email protected]>
  • Loading branch information
ylwu-amzn committed Feb 29, 2024
1 parent f3ce30b commit a7558cd
Showing 1 changed file with 37 additions and 21 deletions.
58 changes: 37 additions & 21 deletions docs/remote_inference_blueprints/cohere_connector_chat_blueprint.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,31 +137,47 @@ It should return a response similar to this:
{
"output": [
{
"response_id": "f92fdef6-e43c-465f-a2b8-45772b9ef39d",
"text": "The weather on Thursday, February 1, 2018, in London will be an overcast high of 13°C and a low of 10°C. Unfortunately, I cannot give you a detailed weather forecast for the next ten days in London, as it varies considerably across different sources. Would you like to know more about the weather on any particular day within the next ten?",
"generation_id": "76e5c68c-a3ca-40a0-91a9-20315f52b4c4",
"name": "response",
"dataAsMap": {
"response_id": "b0f6eaf6-3f63-418b-9178-a5db8431e55e",
"text": """Here is the current weather and forecast for London, UK:

**Current Weather:**

- Temperature: 26.0°C (79°F)
- Conditions: Cloudy with occasional sunny spells
- Humidity: 62%
- Wind: 3 mph (5 km/h) (NW)
- Visibility: 10 km (6 miles)

**Forecast for the next few days:**

The weather in London will continue to be moderately warm for the next few days with temperatures reaching 27°C (81°F) on Saturday. The coming days will be mostly cloudy with occasional sunny spells and chances of light rain throughout the weekend.

Make sure to carry an umbrella if you are going outside, and consider using sunscreen as and when required.

If you would like a more detailed or specific weather forecast for London, let me know, and I'll be happy to provide it!""",
"generation_id": "89c59a14-f099-4100-95b0-7d0d68104f4b",
"finish_reason": "COMPLETE",
"token_count": {
"prompt_tokens": 1523,
"response_tokens": 74,
"total_tokens": 1597,
"billed_tokens": 81
"prompt_tokens": 70,
"response_tokens": 189,
"total_tokens": 259,
"billed_tokens": 248
},
"meta": {
...
},

"documents": [
...
],
"search_results": [
...
],
"tool_inputs": null,
"search_queries": [
...
]
"api_version": {
"version": "1"
},
"billed_units": {
"input_tokens": 59,
"output_tokens": 189
}
}
}
}
]
],
"status_code": 200
}
]
}
Expand Down

0 comments on commit a7558cd

Please sign in to comment.