Skip to content

Commit 02a8230

Browse files
Added tools on the second call to Claude for avoiding error 400. (modelcontextprotocol#136)
1 parent 41e683d commit 02a8230

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

quickstart/client.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ async def process_query(self, query: str) -> str:
200200
model="claude-3-5-sonnet-20241022",
201201
max_tokens=1000,
202202
messages=messages,
203+
tools=available_tools
203204
)
204205

205206
final_text.append(response.content[0].text)

0 commit comments

Comments
 (0)