-
Github Models
I signed up to the beta to get an API key to use with this package. In the curl example, a request is sent to "https://models.inference.ai.azure.com/chat/completions": curl -X POST "https://models.inference.ai.azure.com/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $GITHUB_TOKEN" \
-d '{
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "What is the capital of France?"
},
{
"role": "assistant",
"content": "The capital of France is Paris."
},
{
"role": "user",
"content": "What about Spain?"
}
],
"model": "gpt-4o"
}' |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
UPDATE: I got it! It was as simple as setting the host to "models.inference.ai.azure.com", and the endpoint to "/chat/completions/"! (gptel-make-openai "Github Models"
:host "models.inference.ai.azure.com"
:endpoint "/chat/completions"
:stream t
:key "$GITHUB_TOKEN"
:models '("gpt-4o")) I'll open up a PR as soon as possible! |
Beta Was this translation helpful? Give feedback.
UPDATE: I got it! It was as simple as setting the host to "models.inference.ai.azure.com", and the endpoint to "/chat/completions/"!
I'll open up a PR as soon as possible!