Skip to content
Discussion options

You must be logged in to vote

Sure, here's a very simple example of using the KoboldCpp API to continue a conversation between the user and Gordon Ramsay, the AI will generate his next response

{"n":1,"max_context_length":2048,"max_length":150,"rep_pen":1.07,"temperature":0.7,"top_p":0.92,"top_k":100,"trim_stop":true,"prompt":"[The following is an interesting chat message log between User and Gordon Ramsay.]\n\nUser: Hi.\nGordon Ramsay: Hello.\nUser: What do you think of pineapple on a pizza?\nGordon Ramsay:","stop_sequence":["User:","\nUser ","\nGordon Ramsay: "],"use_default_badwordsids":false,"bypass_eos":false}

You can test it at http://localhost:5001/api and also view the swagger api documentation

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@LIDERCREW
Comment options

@LostRuins
Comment options

Answer selected by AmyTeaCode
@LIDERCREW
Comment options

@LostRuins
Comment options

@LIDERCREW
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants