Skip to content

WERTIFY#156

Open
ivko123123 wants to merge 2 commits into
abridged:masterfrom
ivko123123:master
Open

WERTIFY#156
ivko123123 wants to merge 2 commits into
abridged:masterfrom
ivko123123:master

Conversation

@ivko123123

Copy link
Copy Markdown

Uploading image.gif…

@ivko123123 ivko123123 left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from openai import OpenAI

client = OpenAI(
api_key=XAI_API_KEY,
base_url="https://api.x.ai/v1",
)

completion = client.chat.completions.create(
model="grok-3",
messages=[
{"role": "user", "content": "What is the meaning of life?"}
]
)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant