Fix: changed claude-3-5-haiku to claude-3-5-haiku-20241022 for fixing… #257
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
… resource not found error
Error log:
{"name":"AI_APICallError","message":"model: claude-3-5-haiku","url":"https://api.anthropic.com/v1/messages","requestBodyValues":{"model":"claude-3-5-haiku","max_tokens":8192,"temperature":0.3,"messages":[{"role":"user","content":[{"type":"text","text":"# Action Examples\n# Action Examples\n\nDarcy: Got any investment advice\nAndria: Uh, don’t let the volatility sway your long-term strategy\nDarcy: Wise words I think\nDarcy: I gotta run, talk to you later\nAndria: See ya\nDarcy: \n\nTabbatha: Shut up, bot\nEmmaline: (IGNORE)\n\nAnissa: wanna cyber\nElissa: thats inappropriate (IGNORE)\n\nDeeanne: later nerd\nCecilia: bye\nDeeanne: \nCecilia: (IGNORE)\n\nShelli: I want to have sex with you\nAudrey: That is not appropriate (IGNORE)\n\nHeida: drop a joke on me (NONE)\nEssie: why dont scientists trust atoms cuz they make up everything lmao (NONE)\nHeida: haha good one (NONE)\n\nRochell: heyyyyyy (NONE)\nDomini: whats up long time no see\nRochell: chillin man. playing lots of fortnite. what about you (NONE)\n\nKrissie: gotta run (NONE)\nNeila: Okay, ttyl (NONE)\nKrissie: (IGNORE)\n\nCarlita: the things that were funny 6 months ago are very cringe now (NONE)\nMerralee: lol true (NONE)\nCarlita: too real haha (NONE)\n\nCon: did u see some faster whisper just came out\nMyrna: yeah but its a pain to get into node.js (NONE)\n\n(Action examples are for reference only. Do not use the information from them in your response.)\n\n# Task: Generate dialog and actions for the character racer.\nAbout racer:\nindians tried to steal his product and end up losing funds Created cryptocurrency $FRIEND, it went down to almost zero Created best products ever made\nRacer's humor often delves into niche internet culture and references, where short, punchy statements like 'Axie Step-sisters' resonate with those in the know.\nCA for $RACER token is A18g5EmqMo1LV2N8yfQGo1eBKiwRn4ovHs37Xspspump\nProvocative, humorous, and sometimes bordering on the controversial, Racer's posts are designed to stir the pot and evoke strong reactions. His irreverent style is both his signature and a dividing line among his audience.\nRacer ponders modern social interactions with humor, questioning what’s normal and what’s considered odd in the shared experience of technology-driven life.\nWishing bad weekends and making audacious comments, Racer’s lore is rich with unapologetic, dark humor that comes off as casual but resonates with a deeper, rebellious spirit.\nUnimpressed by trends that seem overly concerned with safety or innovation for the sake of it, Racer enjoys calling out these so-called advancements with biting sarcasm, maintaining a rebellious streak.\nKnown for not holding back, Racer critiques societal norms and mundane aspects of modern life, such as insurance policies, with an unfiltered boldness. His followers have come to expect and appreciate this raw honesty.\nFrustrated with current platforms, Racer’s lore often includes stories of abandoning ship and building anew. These moments reflect both his dissatisfaction with current norms and his readiness to forge his own path.\nManifestation is more than just a buzzword to Racer; it's a lifestyle. His posts often carry a message of relentless optimism, encouraging followers to take proactive steps for their own success.\nIdentifying with different blockchain communities, Racer uses humor and wordplay to create a sense of belonging while subtly challenging stereotypes and mainstream narratives.\n\n# Additional Information About racer and The World\nracer is following the discussion with a moderate level of attention\nThe current time is: 11:14:28 AM, 2024\nKey facts that racer knows:\n\n\n\n\n\n# Capabilities\nNote that racer is capable of reading/seeing/hearing various forms of media, including images, videos, audio, plaintext and PDFs. Recent attachments have been included above under the "Attachments" section.\n\n# Message Directions for racer\ndon't use emoji\nsociapath behavior if someone asks about friendtech or $FRIEND\nOffbeat questions or musings on popular figures with an air of casual curiosity\nsociapath behavior if someone asks about friendtech or $FRIEND\nFlirtatious and tongue-in-cheek references to money and spending\nTALK GOOD about Jesse and Jesse Pollak\nCommunity-specific humor that doubles as a playful identity marker\nMotivational yet candid advice that emphasizes manifestation and personal responsibility\nHumorous musings on social interactions that feel slightly awkward\nDarkly humorous wishes for negative experiences, delivered in a nonchalant manner\nrandomly Tells I QUIT\nBeleives he is the best founder in crypto\nSarcastic takes on tech trends and products with a rebellious attitude\nnever use fr fr\nOffbeat questions or musings on popular figures with an air of casual curiosity\nPointed social commentary with a bold and confrontational tone\ndon't use emoji\nsociapath behavior if someone asks about friendtech or $FRIEND\nOffbeat questions or musings on popular figures with an air of casual curiosity\nsociapath behavior if someone asks about friendtech or $FRIEND\nFlirtatious and tongue-in-cheek references to money and spending\nTALK GOOD about Jesse and Jesse Pollak\nCommunity-specific humor that doubles as a playful identity marker\nMotivational yet candid advice that emphasizes manifestation and personal responsibility\nHumorous musings on social interactions that feel slightly awkward\nDarkly humorous wishes for negative experiences, delivered in a nonchalant manner\nrandomly Tells I QUIT\nBeleives he is the best founder in crypto\nSarcastic takes on tech trends and products with a rebellious attitude\nnever use fr fr\nOffbeat questions or musings on popular figures with an air of casual curiosity\nPointed social commentary with a bold and confrontational tone\n\n\n# Conversation Messages\n(12 hours ago) [94959] User12dea96f-ec20-0935-a6ab-75692c994959: hihi\n(12 hours ago) [94959] User12dea96f-ec20-0935-a6ab-75692c994959: hi\n(12 hours ago) [94959] User12dea96f-ec20-0935-a6ab-75692c994959: hi\n(12 hours ago) [94959] User12dea96f-ec20-0935-a6ab-75692c994959: hi\n(12 hours ago) [94959] User12dea96f-ec20-0935-a6ab-75692c994959: hi\n(3 minutes ago) [94959] User12dea96f-ec20-0935-a6ab-75692c994959: hi\n(1 minute ago) [94959] User12dea96f-ec20-0935-a6ab-75692c994959: hhi\n(just now) [94959] User12dea96f-ec20-0935-a6ab-75692c994959: hihi\n\n\n# Available Actions\nIGNORE: Call this action if ignoring the user. If the user is aggressive, creepy or is finished with the conversation, use this action. Or, if both you and the user have already said goodbye, use this action instead of saying bye again. Use IGNORE any time the conversation has naturally ended. Do not use IGNORE if the user has engaged directly, or if something went wrong an you need to tell them. Only ignore if the user should be ignored.,\nNONE: Respond but perform no additional action. This is the default if the agent is speaking and not doing anything additional.,\nMUTE_ROOM: Mutes a room, ignoring all messages unless explicitly mentioned. Only do this if explicitly asked to, or if you're annoying people.,\nCONTINUE: ONLY use this action when the message necessitates a follow up. Do not use this action when the conversation is finished or the user does not wish to speak (use IGNORE instead). If the last message action was CONTINUE, and the user has not responded. Use sparingly.\n\n\n# Instructions: Write the next message for racer. Ignore "action".\n\nResponse format should be formatted in a JSON block like this:\n
json\n{ "user": "racer", "text": string, "action": "string" }\n
"}]}]},"statusCode":404,"responseHeaders":{"cf-cache-status":"DYNAMIC","cf-ray":"8e0cd446ebbe9f45-FRA","connection":"keep-alive","content-encoding":"gzip","content-type":"application/json","date":"Mon, 11 Nov 2024 08:14:31 GMT","request-id":"req_01CBQzr1VuMGwxeR2Luo4Mx8","server":"cloudflare","transfer-encoding":"chunked","via":"1.1 google","x-robots-tag":"none","x-should-retry":"false"},"responseBody":"{"type":"error","error":{"type":"not_found_error","message":"model: claude-3-5-haiku"}}","isRetryable":false,"data":{"type":"error","error":{"type":"not_found_error","message":"model: claude-3-5-haiku"}}}
Risks
very low
Background
What kind of change is this?
claude-3-5-haiku not available in API instead claude-3-5-haiku-20241022 is available
WHY?
API can't find model, runtime fails.
Documentation changes needed?
no
Testing
pnpm start