Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change chat format with API #425

Open
Empyreal96 opened this issue Jan 9, 2024 · 1 comment
Open

Change chat format with API #425

Empyreal96 opened this issue Jan 9, 2024 · 1 comment

Comments

@Empyreal96
Copy link

Empyreal96 commented Jan 9, 2024

I'm trying to default to the "Chat Mode" format, I'm able to send generate requests as shown in the API docs, but if I replicate with my own client application the JSON that is sent in Chat Mode sessions I get Body Err: b, yet if I use the exact same JSON with the "Try it out" function it sends correctly

Here is the error:
Body Err: b'{"n": 1, "max_context_length": 1600, "max_length": 120, "rep_pen": 1.1, "temperature": 0.7, "top_p": 0.92, "top_k": 100, "top_a": 0, "typical": 1, "tfs": 1, "rep_pen_range": 320, "rep_pen_slope": 0.7, "sampler_order": [6, 0, 1, 3, 4, 2, 5], "memory": "", "genkey": "KCPP6833", "min_p": 0, "presence_penalty": 0, "logit_bias": {}, "prompt": "[The following is an interesting chat message log between You and KoboldAI.]\n\nYou: Hi.\nKoboldAI: Hello.\nYou: What is KoboldAI?\nKoboldAI:", "quiet": true, "stop_sequence": ["You:", "\nYou ", "\nKoboldAI: "], "use_default_badwordsids": false}'

Any ideas whi it doesn't work in my application but it does with the "Try it out" function?

image_2024-01-09_18-24-54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@Empyreal96 and others