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

AI Proxy Wasm Plugin Integration with GitHub Models #1304

Closed
imp2002 opened this issue Sep 12, 2024 · 2 comments · Fixed by #1362
Closed

AI Proxy Wasm Plugin Integration with GitHub Models #1304

imp2002 opened this issue Sep 12, 2024 · 2 comments · Fixed by #1362
Assignees

Comments

@imp2002
Copy link
Contributor

imp2002 commented Sep 12, 2024

https://docs.github.com/en/github-models/prototyping-with-ai-models
https://github.com/marketplace/models/azure-openai/gpt-4o

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?"
            }
        ],
        "model": "gpt-4o"
    }'

ref: #940

@johnlanni
Copy link
Collaborator

Are you interested in implementing this? It doesn't seem complicated.

@hackerYHT
Copy link
Contributor

这个对接任务,我这边来开发吧 麻烦帮忙分配下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants