DeepSeek

Hello Is it possible to insert DeepSeeck API ?

1 Like

I assume its this one?

1 Like

Yes sorry for mistake : deepseek.com

1 Like

When will deepseek be added to KM Or how to add it now?

1 Like

I will add straico first, then I can come back and look at this.

But since this is openAI compatible, you can just enter in API urls into open ai - alt 1

https://www.deepseek.com registrations are being restricted, so its going be sometime for API to be implemented.

I need a test account in order to implement the API.

Added deep seek model

Deep seek appears as selection

image

I am unable to test the API as their service is under some considerable load.

image

However, it uses the openAI spec, so I just copied the current openai implementation for deep seek.

Please report any bugs!

1 Like

Awesome thank you

1 Like

HI @Tim

I am using R1 in local and connected as openAI Alt 1

It is working fine but it also print the as content output

How to avoid it?

Can you provide screenshot of the error?

I just checked my previous reply, the forum changed my words

I meant, it is also printing the thinking part of response

Might have to use regex to remove it.

It can remove the tags, but I think need extra processing to remove everything inbetween the think tags.

Are the think tags closed with </think>

In the screenshot you provided the think tag is never closed, so SCM won’t know where the thinking stops and content starts.

It Supposed to close and it does sometimes but not always … I am using same thing in AnythinLLM as well and they managed to identify the thinking part and show it best suiatable way.

in SCM case, not sure why <think> wont close sometimes.

You don’t have any content filters enabled right?

So just raw output from deepseek is not closing the tag?

I was able to run it via LM Studio to test the output.

image

I added a regex to remove all the think content.

Now it returns only the answer.

Added now and working