You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Create a JSON payload using jq to handle special characters
110
125
json_payload=$(jq -n --arg input "$input" '{
111
-
model: "'$OPENAI_MODEL'",
126
+
model: "'$MODEL_NAME'",
112
127
messages: [
113
128
{
114
129
role: "system",
115
-
content: "You are LocalAI-bot. Write a short, twitter message to notify everyone about the new model from the git diff. Make it informal and really short, less than 250 characters. An example can include: the name, and a brief description of the model if exists. Also add an hint on how to install it in LocalAI. For example: local-ai run model_name_here"
130
+
content: "You are LocalAI-bot. Write a twitter message to notify everyone about the new model from the git diff. Make it informal and really short. An example can include: the name, and a brief description of the model if exists. Also add an hint on how to install it in LocalAI. For example: local-ai run model_name_here"
116
131
},
117
132
{
118
133
role: "user",
@@ -121,16 +136,16 @@ jobs:
121
136
]
122
137
}')
123
138
124
-
# Send the request to OpenAI API
125
-
response=$(curl -s -X POST $OPENAI_BASE_URL/chat/completions \
0 commit comments