Coder Social home page Coder Social logo

Comments (6)

liqul avatar liqul commented on June 26, 2024

Haven't tested this endpoint before. Could you firstly try if you can access the endpoint using a simple script with the openai module? then, we can rule out the possibilities of any configuration errors.

from taskweaver.

HuggingTech avatar HuggingTech commented on June 26, 2024

Haven't tested this endpoint before. Could you firstly try if you can access the endpoint using a simple script with the openai module? then, we can rule out the possibilities of any configuration errors.

"We use Docker images and pass OpenRouter parameters through environment variables, which works fine. Currently, we are running the code from the main branch, and the same parameters are causing the above error."

from taskweaver.

HuggingTech avatar HuggingTech commented on June 26, 2024

"I also encounter the same error when running the LLM_API_test unit test."

from taskweaver.

HuggingTech avatar HuggingTech commented on June 26, 2024

"I rewrote an independent test and connected to OpenRouter, which was successful. However, I could not connect using TaskWeaver, possibly due to a defect in the TaskWeaver code, and the reason has not yet been identified."

image

from taskweaver.

liqul avatar liqul commented on June 26, 2024

I just registered and try a random query with the following configurations:

  "llm.api_base": "https://openrouter.ai/api/v1",
  "llm.api_key": "sk-or-v1-2bb53d5f2774e4e4a6d....",
  "llm.model": "openchat/openchat-7b",

Everything went well. I got the following output:

 TaskWeaver ▶  I am TaskWeaver, an AI assistant. To get started, could you please enter your request?
    Human   ▶  Hi
 ╭───< Planner >askWeaver] preparing          <=�=>
 ├─► [init_plan] 1. Respond to the user's greeting    <=�=>      
 ├─► [plan] 1. Respond to the user's greeting      <=�=>     
 ├─► [current_plan_step] 1. Respond to the user's greetinghe u         <=�=> 
 ├──● Hello, what can I help you?o, what can    <=�=>        
 ├─► [board]
 │   I have drawn up a plan: 
 │   1. Respond to the user's greeting
 │   
 │   Please proceed with this step of this plan: Hello, what can I help you?
 ╰──● sending message to User
 TaskWeaver ▶  Hello, what can I help you?

So, I'm not sure what is the problem in your case.

from taskweaver.

HuggingTech avatar HuggingTech commented on June 26, 2024

3q

from taskweaver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.