-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug_fix_test.txt
More file actions
147 lines (141 loc) · 7.3 KB
/
debug_fix_test.txt
File metadata and controls
147 lines (141 loc) · 7.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
python : D:\Automated
Technical Interviewer\backe
nd\app\services\llm_service
.py:1: FutureWarning:
At line:1 char:1
+ python
debug_llm_service.py >
debug_fix_test.txt 2>&1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~
~
+ CategoryInfo
: NotSpecified: (D:\
Automated Te...FutureW
arning: :String) [], R
emoteException
+ FullyQualifiedErrorI
d : NativeCommandError
All support for the
`google.generativeai`
package has ended. It will
no longer be receiving
updates or bug fixes.
Please switch to the
`google.genai` package as
soon as possible.
See README for more
details:
https://github.com/google-g
emini/deprecated-generative
-ai-python/blob/main/README
.md
import
google.generativeai as
genai
Traceback (most recent
call last):
File "D:\Automated
Technical Interviewer\backe
nd\app\services\llm_service
.py", line 26, in
generate_text
response = model.genera
te_content(prompt)
^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^
File "C:\Users\Lenovo\App
Data\Local\Programs\Python\
Python311\Lib\site-packages
\google\generativeai\genera
tive_models.py", line 331,
in generate_content
response = self._client
.generate_content(
^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^
File "C:\Users\Lenovo\App
Data\Local\Programs\Python\
Python311\Lib\site-packages
\google\ai\generativelangua
ge_v1beta\services\generati
ve_service\client.py",
line 835, in
generate_content
response = rpc(
^^^^
File "C:\Users\Lenovo\App
Data\Local\Programs\Python\
Python311\Lib\site-packages
\google\api_core\gapic_v1\m
ethod.py", line 131, in
__call__
return
wrapped_func(*args,
**kwargs)
^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^
File "C:\Users\Lenovo\App
Data\Local\Programs\Python\
Python311\Lib\site-packages
\google\api_core\retry\retr
y_unary.py", line 294, in
retry_wrapped_func
return retry_target(
^^^^^^^^^^^^^
File "C:\Users\Lenovo\App
Data\Local\Programs\Python\
Python311\Lib\site-packages
\google\api_core\retry\retr
y_unary.py", line 156, in
retry_target
next_sleep =
_retry_error_helper(
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Lenovo\App
Data\Local\Programs\Python\
Python311\Lib\site-packages
\google\api_core\retry\retr
y_base.py", line 214, in
_retry_error_helper
raise final_exc from
source_exc
File "C:\Users\Lenovo\App
Data\Local\Programs\Python\
Python311\Lib\site-packages
\google\api_core\retry\retr
y_unary.py", line 147, in
retry_target
result = target()
^^^^^^^^
File "C:\Users\Lenovo\App
Data\Local\Programs\Python\
Python311\Lib\site-packages
\google\api_core\timeout.py
", line 130, in
func_with_timeout
return func(*args,
**kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Lenovo\App
Data\Local\Programs\Python\
Python311\Lib\site-packages
\google\api_core\grpc_helpe
rs.py", line 77, in
error_remapped_callable
raise exceptions.from_g
rpc_error(exc) from exc
google.api_core.exceptions.
NotFound: 404 models/gemini
-2.0-flash-exp is not
found for API version
v1beta, or is not
supported for
generateContent. Call
ListModels to see the list
of available models and
their supported methods.
Testing generate_text from llm_service...
DEBUG: Generating text with model models/gemini-2.0-flash-exp...
Gemini API Error: 404 models/gemini-2.0-flash-exp is not found for API version v1beta, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.
Response: Sorry, I am having trouble thinking right now.