You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
calling anthropic/claude-3-haiku-20240307 with openai sdk using litellm proxy models throws
stop_sequences: each stop sequence must contain non-whitespace
construnner=awaitllmClient.chat.completions.create({model: "haiku",// alias for anthropic/claude-3-haiku-20240307messages: [{role: "system",content: SYSTEM_PROMPT,},{role: "user",content: prompt,},],max_tokens: 150,temperature: 0.7,stop: ["\n"],});
Relevant log output
BadRequestError: 400 AnthropicException - AnthropicException - {"type":"error","error":{"type":"invalid_request_error","message":"stop_sequences: each stop sequence must contain non-whitespace"}}
at Function.generate (D:\Techno Culture\ella-backend\backend\mock-gpt\node_modules\openai\src\error.ts:67:14)
at OpenAI.makeStatusError (D:\Techno Culture\ella-backend\backend\mock-gpt\node_modules\openai\src\core.ts:381:21)
at OpenAI.makeRequest (D:\Techno Culture\ella-backend\backend\mock-gpt\node_modules\openai\src\core.ts:444:24)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async D:\Techno Culture\ella-backend\backend\mock-gpt\src\index.ts:258:18 {
atus: 400,
aders: {
connection: 'keep-alive',
'content-length': '248',
'content-type': 'application/json',
date: 'Thu, 25 Apr 2024 04:19:01 GMT',
'strict-transport-security': 'max-age=15724800; includeSubDomains'
ror: {
message: 'AnthropicException - AnthropicException - {"type":"error","error":{"type":"invalid_request_error","message":"stop_sequences: each stop sequence must contain non-whitespace"}}',
type: null,
param: null,
code: 400
de: 400,
ram: null,
pe: null
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered:
krrishdholakia
changed the title
[Bug]: Support for cluaude-3 haiku using same api (openai api)
[Bug]: anthropic stop_sequences: each stop sequence must contain non-whitespace
Apr 25, 2024
What happened?
calling anthropic/claude-3-haiku-20240307 with openai sdk using litellm proxy models throws
stop_sequences: each stop sequence must contain non-whitespace
Relevant log output
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered: