Giter Club home page Giter Club logo

openai-assistant-api-chat's Issues

Pirate?!

i have an assistant ID than i added in the .env and when i ask assistant "who are you" it is correct. But When i start/load the promp it always state in the terminal text: { value: 'You are a Pirate! introduce yourself', annotations: [] } i have looked at OpenAI, Assistant and what i can see/know i have nothing naming a pirate. Is there something im missing or how can i remove this and make the prompt act like it should when loading?

Don

Not an issue, just don't know where to ask. I really could use the TTS from eleven labs and Whisper put in this, dunno if you'd be willing to add it for a fee or something but we have some folks here in that don't type too well and it would sure be cool. Please shoot me an email and let me know [email protected] I really hope it's possible cuz the last proton in the universe would decay before I could even think of being able to do that lol. Sorry for the intrusion.

Chat introduction

Would you consider changing the chat introduction from Pirate to Professional or adding a choice for the user to specify as a parameter?

File ID is undefined

got this error

472-dcc473fb6ec49a48.js:1 Error uploading file: Error: File ID is undefined

image image

Availability to support

Great repo, thanks! Do you take on private clients to implement the above and other projects?

Failed to run assistant

Hi when I deploy to vercel with my OPENAI_API_KEY and ASSISTANT_ID I got the error "Failed to run assistant"

Failed to run assistant 500

I see runAssistant() just post a request but how do I fix this error ?

  export const runAssistant = async (assistantId, threadId) => {
    console.log('Running assistant...');
    const response = await fetch('/api/runAssistant', {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({ assistantId, threadId }),
    });
    if (!response.ok) {
      console.error('Failed to run assistant');
      throw new Error('Failed to run assistant');
    }

From the console I saw Thread ID: undefined, maybe this is the reason.

Chat thread created successfully. Thread ID: undefined

报错

image
这个shish是什么问题

Wish to see a CLI version of this

Would love to see a CLI version for this, im not really in to the upload file, just send a question with a specific Assistan role. but to not use a webbrowser and use the CLI instead would be perfect if possible :)

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.