Prerequisites
- Create an API key to authorize requests to Nebius Token Factory.
-
Save the API key into a
NEBIUS_API_KEYenvironment variable: -
Install the
camelaipackage:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Camel AI + Nebius Token Factory
NEBIUS_API_KEY environment variable:
export NEBIUS_API_KEY="<API_key>"
camelai package:
# core library
pip install 'camel-ai'
# all features and dependencies
pip install 'camel-ai[all]'
from camel.models import ModelFactory
from camel.types import ModelPlatformType, ModelType
from camel.configs import NebiusConfig
from camel.agents import ChatAgent
model = ModelFactory.create(
model_platform=ModelPlatformType.NEBIUS,
model_type=ModelType.NEBIUS_GPT_OSS_120B,
model_config_dict=NebiusConfig(temperature=0.2).as_dict(),
)
agent = ChatAgent(
system_message="You are a helpful assistant.",
model=model
)
response = agent.step("Say hi to CAMEL AI community.")
print(response.msgs[0].content)
Was this page helpful?