-
Notifications
You must be signed in to change notification settings - Fork 632
Description
Describe the bug
Welcome to aichat 0.30.0
Type ".help" for additional help.
hi
Error: Failed to call chat-completions api
Caused by:
Invalid Authentication (type: invalid_authentication_error)
To Reproduce
get an api key from moonshot.ai and follow the process to create a config file and select moonshot and enter the api key
Expected behavior
Invalid authentication
Logs
Screenshots
Configuration
➜ ~ aichat --info
model moonshot:kimi-latest
temperature null
top_p null
use_tools null
max_output_tokens null
save_session null
compress_threshold 4000
rag_reranker_model null
rag_top_k 5
dry_run false
function_calling true
stream true
save false
keybindings emacs
wrap no
wrap_code false
highlight true
theme dark
config_file /Users/akshatsharma/Library/Application Support/aichat/config.yaml
env_file /Users/akshatsharma/Library/Application Support/aichat/.env
roles_dir /Users/akshatsharma/Library/Application Support/aichat/roles
sessions_dir /Users/akshatsharma/Library/Application Support/aichat/sessions
rags_dir /Users/akshatsharma/Library/Application Support/aichat/rags
macros_dir /Users/akshatsharma/Library/Application Support/aichat/macros
functions_dir /Users/akshatsharma/Library/Application Support/aichat/functions
messages_file /Users/akshatsharma/Library/Application Support/aichat/messages.md
Environment (please complete the following information):
- os version: [e.g. Ubuntu 20.04]
- aichat version: [e.g. 0.9.0]
- terminal version: [e.g. GNOME Terminal 3.44.0]
Additional context
To fix it users who have moonshot.ai key need to change the api base in config file from .cn to .ai .