Git Product home page Git Product logo

centaur's Introduction

Story Centaur

A Human Computer Interface for few shot learning aimed at creative writers.

In order to use the OpenAI GPT-X models, which this is set up to do by default, you will need to provide the url you want to call and your API key. You can do this by creating a file in src/environments/ called environments.ts, and in it define a variable like this

export const environment = { OPEN_AI_KEY:----, OPEN_AI_URL:----, };

with the ----'s filled in with the right values.

To run this tool locally, just clone the repo and run "npm install" followed by "ng serve". If you don't have angular installed, you'll need to run "npm install -g @angular/cli" first.

centaur's People

Contributors

pwnr8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

centaur's Issues

An unhandled exception occurred: readConfiguration is not a function

Hi,
"ng serve" did not output anything. I tried several uninstall and reinstalling libraries, at least I get this error:


This is a simple server for use in testing or debugging Angular applications locally.
It hasn't been reviewed for security issues.

DON'T USE IT FOR PRODUCTION!


An unhandled exception occurred: readConfiguration is not a function
See "/private/var/folders/0_/97m79v9s7333j0461kw94x7c0000gn/T/ng-o6EPg2/angular-errors.log" for further details.

here is my local settings:

Angular CLI: 15.1.3
Node: 18.13.0
Package Manager: npm 8.19.3
OS: darwin arm64

Angular: 15.1.2
... core

Package Version

@angular-devkit/architect 0.1501.3
@angular-devkit/build-angular 15.1.3
@angular-devkit/core 15.1.3
@angular-devkit/schematics 15.1.3
@angular/animations 9.1.7
@angular/cdk 9.2.3
@angular/cli 15.1.3
@angular/common 9.1.7
@angular/compiler 9.1.7
@angular/compiler-cli 9.1.7
@angular/fire 6.0.0
@angular/forms 9.1.7
@angular/material 9.2.3
@angular/platform-browser 9.1.7
@angular/platform-browser-dynamic 9.1.7
@angular/router 9.1.7
@schematics/angular 15.1.3
rxjs 6.5.5
typescript 3.8.3

Do you have any ideas what to do to fix?

Module parse failed: Unexpected token (1:111)

Running ng serve I get an error:

ERROR in ./src/environments/environments 1:111
Module parse failed: Unexpected token (1:111)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
export const environment = { OPEN_AI_KEY:-------, OPEN_AI_URL:https://api.openai.com/v1/completions, };

(i deleted my real key here, but the error shows it).

Any idea?
Thanks

No completion coming - what's URL parameter?

Hi,

I succeeded in running the app. The issue i meet is that no completion is provided when I click the robot button.
In browser console I can see this error:
core.js:6260 ERROR Error: Uncaught (in promise): HttpErrorResponse: {"headers":{"normalizedNames":{},"lazyUpdate":null},"status":400,"statusText":"OK","url":"https://api.openai.com/v1/completions","ok":false,"name":"HttpErrorResponse","message":"Http failure response for https://api.openai.com/v1/completions: 400 OK","error":{"error":{"message":"you must provide a model parameter","type":"invalid_request_error","param":null,"code":null}}}

I suspect I did not get what "OPEN_AI_URL" parameter in environments.ts is expected to contain. I did put "https://api.openai.com/v1/completions" but I also tried other values, but nothing works.

Regards
michele

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.