Stepfun
StepFun #
Bases: OpenAILike
The StepFun class is a subclass of OpenAILike and is used to interact with the StepFun model.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model
|
str
|
The name of the Stepfun model to use. See https://platform.stepfun.com/docs/llm/modeloverview for options. |
DEFAULT_MODEL
|
context_window
|
int
|
The maximum size of the context window for the model. See https://platform.stepfun.com/docs/llm/modeloverview for options. |
required |
is_chat_model
|
bool
|
Indicates whether the model is a chat model. |
required |
Attributes:
Name | Type | Description |
---|---|---|
model |
str
|
The name of the Stepfun model to use. |
context_window |
int
|
The maximum size of the context window for the model. |
is_chat_model |
bool
|
Indicates whether the model is a chat model. |
Source code in llama-index-integrations/llms/llama-index-llms-stepfun/llama_index/llms/stepfun/base.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
|