|
|
|
|
@ -13,8 +13,7 @@ After installing the SDK, you can use it in your project like this:
|
|
|
|
|
import { LangGeniusClient, ChatClient, CompletionClient } from 'langgenius-client'
|
|
|
|
|
|
|
|
|
|
const API_KEY = 'your-api-key-here';
|
|
|
|
|
const APP_ID = 'your-app-id-here';
|
|
|
|
|
const user = `user_${APP_ID}:user_id`:
|
|
|
|
|
const user = `random-user-id`:
|
|
|
|
|
|
|
|
|
|
// Create a completion client
|
|
|
|
|
const completionClient = new CompletionClient(API_KEY)
|
|
|
|
|
@ -44,4 +43,4 @@ langGeniusClient.messageFeedback(messageId, rating, user)
|
|
|
|
|
Replace 'your-api-key-here' with your actual LangGenius API key.Replace 'your-app-id-here' with your actual LangGenius APP ID.
|
|
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
This SDK is released under the MIT License.
|
|
|
|
|
This SDK is released under the MIT License.
|
|
|
|
|
|