Code Monkey home page Code Monkey logo

Comments (3)

bluecoconut avatar bluecoconut commented on May 12, 2024

One thing you can do is set SKETCH_ENDPOINT_URL to some fake url eg. os.environ['SKETCH_ENDPOINT_URL'] = 'broken', this should cause (when using remote lambdaprompt) an error.

I just checked with a new notebook, and the code you included worked for me (just copy pasted from your question).

image

Note that it will say (with newest version of sketch, run pip install -U sketch) something along the lines of
No backend set for [completion], setting to default of OpenAI when running off of your own key rather than sending to the endpoint_url, so if you don't see that print statement the first time you run something, then you know there is probably an issue with spelling one of the env vars or something.

Additionally, you can check if a local backend was set up for lambdaprompt by doing

import lambdaprompt as lp
print(lp.backends.backends)

in the case that you are still using remote, lp.backends.backends will be an empty dictionary.

Going to close since this seems like it works, but if you can give me more examples of how its failing you I can re-open the issue.

from sketch.

nortline avatar nortline commented on May 12, 2024

image

from sketch.

bluecoconut avatar bluecoconut commented on May 12, 2024

Looks like its working to me. The fact that it says no backend set means that it defaulted to open-ai and then it finished the completion in local mode.

It shouldn't pop up that warning anymore after that.

from sketch.

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.