Skip to content

UnityGameStudio/DeepSeek-Unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

DeepSeek-Unity

Currently, this plugin is only suported on versions of Unity 2022.x and above

Installation

This plugin is provided as a custom Unity package that you can import into any existing project with the Unity version 2022.x and above.

Once you've downloaded the Unity package, you can import the Example scene inside the DeepSeek folder.


Setup

DeepSeek provides an alternative to ChatGPT for Unity developers. Here's a quick guide to setting up DeepSeek:

Step 1: Login to your DeepSeek account and copy your secret key

To get started you will first need to fetch your DeepSeek API key, which can be found the DeepSeek Platform under Get API Key (or through this direct link). Here, you can create a new secret key and copy the value (you will need to your secret key for the next step).

Step 2: Open the Unity Editor, configure the package, and start using DeepSeek

Inside the package, you will find an Example Scene. Inside this scene, there is a game object with a UnityAndDeepSeek.cs script attach to it. Add your API Secret Key inside the API Key field. And, you can start using DeepSeek.

Functions

This plugin provides one main function called ChatWithDeepSeek. This function contains an IEnumerator, IEnumerator SendDeepSeekRequest(), which firstly appends a List of chats, then sends that list to the DeepSeek API and prints the response to the console by calling Debug.Log().

Unity connects with DeepSeek API.

Usage

The unity package was made to directly use the function with a User Interface. Therefore, the best way to interact with it, it is through the Example Scene. After hitting on play, the Example Scene grabs the text you put inside the Input field, and sends it to the DeepSeek API when hitting the button "Send Message".

You must purchase credits in your DeepSeek account to use the API. Nevertheless, they might be cheaper than ChatGPT API.

Note that DeepSeek is a paid API, I recommend using Gemini instead, which is free upon certain amount of requests.

About

A plugin that allows DeepSeek to be used inside Unity. An alternative tool to ChatGPT API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •