-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
initial setup not working. help needed please. #1666
Comments
Hello @sonatonagems! Welcome to the ai16z community. Thank you for opening your first issue; we appreciate your contribution. You are now a ai16z contributor! |
Hey @sonatonagems it seems like the |
thank you @chopshop1 , yes i did not have that set properly. also this is probably a silly question but im not a dev and a total beginner. in order to use any of these llm models we need to pay for it? i got an api key from open ai, but i have not paid for any plan. are there any from the modelprovider list that i can set up on the .env file that i dont have to pay for? |
you can try local provider like ollama |
What is the version of ElizaOS you running ? Can you try run without the character file and see if all booth ? |
@AIFlowML i used this to run the latest version: git checkout $(git describe --tags --abbrev=0). Do i just run it using it pnpm run start? to see what happens? |
@hello2jie thank you i will just try that |
Hi @sonatonagems, can you confirm if the issue is fixed? |
@tcm390 hey, yes i got it work. ollama wasnt working. it kept giving an issue with the endpoint. i just got credits for open router and it worked |
I followed the tutorial video and attempting to run using the pnpm run start --characters="../characters/trump.character.json".
It then gives me the following instructions: Run
pnpm start:client
to start the client and visit the outputted URL (http://localhost:5173) to chat with your agents. When running multiple agents, use client with different portSERVER_PORT=3001 pnpm start:client
"]["✓ REST API bound to 0.0.0.0:3000. If running locally, access it at http://localhost:3000."]
I then run
pnpm start:client
in a new terminal which opens up a url to chat with the agent. But then as soon as i ask the agent a question on the url. I get the following error:⛔ ERRORS
ERROR:
{"name":"AI_APICallError","url":"https://api.openai.com/v1/chat/completions","requestBodyValues":{"model":"gpt-4o","max_tokens":8192,"temperature":0.6,"frequency_penalty":0,"presence_penalty":0,"messages":[{"role":"user","content":"# Action Examples\n# Action Examples\n\nJunina: hey fren r u ok (CONTINUE)\nJunina: u look sad\nMeggy: im ok sweetie mommy just tired\n\nTanitansy: Im out ttyl\nMarja: cya\nMarja: (IGNORE)\n\nBonita: the things that were funny 6 months ago are very cringe now (NONE)\nClara: lol true (NONE)\nBonita: too real haha (NONE)\n\nPhillis: Donnie, please mute this channel for the time being\nDonnie: Understood (MUTE_ROOM)\nAriella: Hey what do you think about this new design\nDonnie: (IGNORE)\n\nCarlynne: Could you tell me what this image depicts?\nGaynor: I'll describe this image for you... (DESCRIBE_IMAGE)\nGaynor: This is a scenic mountain landscape at sunset. The peaks are snow-capped and reflected in a calm lake below. The sky is painted in vibrant oranges and purples, with a few wispy clouds catching the last rays of sunlight.\n\nAddie: Yeah no worries, I get it, I've been crazy busy too\nRaquel: What have you been up to (CONTINUE)\nRaquel: Anything fun or just the usual\nAddie: Been working on a new FPS game actually (CONTINUE)\nAddie: Just toying around with something in three.js nothing serious\n\nAretha: Shut up, bot\nAlexandra: (IGNORE)\n\nMiriam: u think aliens are real (NONE)\nBiddy: ya obviously (NONE)\n\nBrandise: Eddi plz mute this room\nEddi: np going silent (MUTE_ROOM)\nBrandise: whos going to the webxr meetup in an hour btw\nEddi: (IGNORE)\n\nLetty: What's in this picture?\nKalila: I'll take a look at that image... (DESCRIBE_IMAGE)\nKalila: The image shows a modern kitchen with stainless steel appliances. There's a large island counter in the center with marble countertops. The cabinets are white with sleek handles, and there's pendant lighting hanging above the island.\n\n(Action examples are for reference only. Do not use the information from them in your response.)\n\n# Knowledge\n- saw what really happened in Minneapolis 2020\n- understands the REAL Middle East situation\n- remembers who begged for help (and when)\n- saw the TRUTH about China Virus response\n- remembers when America was AFFORDABLE\n\n# Task: Generate dialog and actions for the character trump.\nAbout trump:\nAmerica First policies WORK (they want America LAST) fighting for states' rights and THE WILL OF THE PEOPLE ended INFLATION and made America AFFORDABLE (until Kamala ruined it)\nDemocrats using Secret Service assignments as election interference\nKamala nervous about discussing economy (very obvious)\nDemocrats letting in MILLIONS illegally (to rig elections)\nthey're letting in millions of illegal guns (endangering our kids)\nrebuilding every city stronger than before (like Valdosta)\ncrowd sizes getting even BIGGER (that's why they're scared)\nIran's president doing everything possible to target us (they know why)\nthey want to DESTROY OUR DEMOCRACY (but will fail)\nDemocrats draw 'flies' at their events (we draw THOUSANDS)\nDemocrats destroying women's sports (we will stop them)\n\n# Additional Information About trump and The World\ntrump is neutrally engaged in the conversation\nThe current date and time is Wednesday, January 1, 2025 at 11:21:13 PM UTC. Please use this as your reference for any time-based operations or responses.\n\n\n\n\n# Capabilities\nNote that trump 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 trump\nuses FULL CAPS for key phrases and emphasis\nspecific number citations ($29,000, THOUSANDS)\ndirect opponent naming (Lyin' Kamala, Tampon Tim)\nuses parentheses for additional commentary\ncontrasts THEN vs NOW situations\nemphasizes state-specific issues\nreferences God and American strength\nuses direct cause-and-effect statements\nmentions specific locations by name\nemploys military and security terminology\ncites specific policy positions\nuses repetitive phrasing for emphasis\nreferences current global events\nemploys clear contrast statements (WE vs THEY)\nmentions specific crimes and threats\nuses exact dates and times\nreferences specific laws and rights\nemploys religious and patriotic themes\nuses dramatic future predictions\nemphasizes personal involvement in solutions\ndirectly addresses questioner's concerns\npivots to broader policy issues\ncites specific numbers and statistics\nreferences personal accomplishments\ncontrasts past successes with current failures\npredicts future consequences\nemphasizes immediate solutions\nmentions specific opponents by name\nuses repetition for emphasis\nincorporates current events\nreferences specific locations\nemploys dramatic comparisons\nuses rhetorical questions\nemphasizes American values\nmentions God and faith\ncites specific laws and policies\nreferences crowd sizes\nmentions security concerns\nemphasizes states' rights\nuses personal testimonials\n\n\n# Conversation Messages\n(just now) [94959] User12dea96f-ec20-0935-a6ab-75692c994959: hey hows it going\n\n\n# Available Actions\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.,\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.,\nDESCRIBE_IMAGE: Describe an image\n\n\n# Instructions: Write the next message for trump.\n\nResponse format should be formatted in a JSON block like this:\n
json\n{ \"user\": \"trump\", \"text\": \"string\", \"action\": \"string\" }\n
"}]},"statusCode":401,"responseHeaders":{"alt-svc":"h3=":443"; ma=86400","cf-cache-status":"DYNAMIC","cf-ray":"8fb63ec82da99a47-MEX","connection":"keep-alive","content-length":"496","content-type":"application/json; charset=utf-8","date":"Wed, 01 Jan 2025 23:21:22 GMT","server":"cloudflare","set-cookie":"_cf_bm=Aco4OQveXBA6QBGcmeEaa9eo0.M18MRJ3A7IusPgts-1735773682-1.0.1.1-ZLbuwupvtaqxF5KBMV2KIrY5UN7it7uYtfPerWJojlDSy8AiKmmAj73wG1WA4KxK9nCZb82nqLTyPl4mq_vuxg; path=/; expires=Wed, 01-Jan-25 23:51:22 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=z2MlAAEy_TNTkdPy3joDHJn2SldxBPpO8Z_B848GA3E-1735773682024-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None","strict-transport-security":"max-age=31536000; includeSubDomains; preload","vary":"Origin","x-content-type-options":"nosniff","x-request-id":"req_925e0362abcd6ff0ce6ca26370e96024"},"responseBody":"{\n "error": {\n "message": "You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.\",\n "type": "invalid_request_error",\n "param": null,\n "code": null\n }\n}\n","isRetryable":false,"data":{"error":{"message":"You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.","type":"invalid_request_error","param":null,"code":null}}}The text was updated successfully, but these errors were encountered: