Huge refactoring
This commit is contained in:
9
util_scripts/gigachat_get_models.sh
Executable file
9
util_scripts/gigachat_get_models.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
if [ -n "$SBER_TOKEN" ]; then
|
||||
curl https://api.giga.chat/v1/models -k \
|
||||
-H 'Accept: application/json' \
|
||||
-H "Authorization: Bearer $SBER_TOKEN"
|
||||
else
|
||||
echo "Please set SBER_TOKEN envvar"
|
||||
fi
|
||||
Reference in New Issue
Block a user