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

Support multiple LLMs: ChatGPT, Claude and Gemini✨ #271

Merged
merged 8 commits into from
Dec 30, 2023
Merged

Conversation

uezo
Copy link
Owner

@uezo uezo commented Dec 30, 2023

✅ChatGPT, Claude (Anthropic API) and Gemini
✅Multi-modal and Function calling (ChatGPT and Gemini)
✅WebGL support

To use this feature add LLMRouter and LLMContentSkill in newly added ChatdollKit.LLM to your ChatdollKit game object.
And, choose LLM you want to use from ChatGPT, Claude or Gemini and set *Service (and *ServiceWebGL) to game object.
Make sure that IsEnabled is true on the inspector of *Service you want to use if you attached multiple LLMServices.

Add abstract interfaces and base classes for handling LLM responses, utterance processing, expression processing, and FunctionCalling. Implementing ILLMService allows for compatibility with specific LLMs such as ChatGPT and Gemini.
Also support multimodal🖼️

Going forward, we will be updating this component. The ChatGPT-related components in the ChatdollKit.Dialog.Processor package are planned to be deprecated in the future.
✅Chat
✅FunctionCalling
✅Multimodal
This is for Anthropic API. Not AWS Bedrock that is not support Message API.
NOTE: Anthropic API checks CORS. Disable for testing and make API proxy server for making it public.
Just set IsEnable = true to LLMService you want to use. Configuration runs automatically. You can switch LLM (e.g. ChatGPT -> Claude) even on runtime.
@uezo uezo merged commit 9c355a8 into master Dec 30, 2023
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

Successfully merging this pull request may close these issues.

None yet

1 participant