Spaces:
Sleeping
Sleeping
Commit
·
27e1425
1
Parent(s):
87ff9a1
Update custom_llm.py
Browse files- custom_llm.py +3 -2
custom_llm.py
CHANGED
@@ -1,11 +1,12 @@
|
|
|
|
1 |
import cohere
|
2 |
from langchain.llms.base import LLM
|
3 |
|
4 |
-
co = cohere.Client('
|
5 |
|
6 |
# 24222433-2a40-410c-af5c-65a5422282fb-ft
|
7 |
class CustomLLM(LLM):
|
8 |
-
model: str = '
|
9 |
|
10 |
@property
|
11 |
def _llm_type(self) -> str:
|
|
|
1 |
+
import os
|
2 |
import cohere
|
3 |
from langchain.llms.base import LLM
|
4 |
|
5 |
+
co = cohere.Client(os.environ['COHERE_API_KEY']) # This is my trial API key
|
6 |
|
7 |
# 24222433-2a40-410c-af5c-65a5422282fb-ft
|
8 |
class CustomLLM(LLM):
|
9 |
+
model: str = os.environ['CODE_GEN_MODEL_ID'] # The custom model we used.
|
10 |
|
11 |
@property
|
12 |
def _llm_type(self) -> str:
|